npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@sqlbi/daxformatter-mcp

v0.1.4-beta

Published

Model Context Protocol (MCP) server for the DAX Formatter service.

Readme

@sqlbi/daxformatter-mcp

A Model Context Protocol (MCP) server that formats and validates DAX from any MCP-enabled AI client — Claude Code, Claude Desktop, Cursor, VS Code, and others — using the SQLBI DAX Formatter service.

Installation guide

The server runs locally on your machine — no install step, no account, no API key, no login. It exposes a single tool, format_dax. Find your app below and follow the short steps; afterwards, just ask your assistant to "format this DAX".

Visual Studio Code

Install in VS Code Install in VS Code Insiders

Click a badge above — VS Code opens and asks you to confirm. That's it.

code --add-mcp "{\"name\":\"DaxFormatter\",\"type\":\"stdio\",\"command\":\"npx\",\"args\":[\"-y\",\"@sqlbi/daxformatter-mcp\"]}"

Claude

Claude Desktop — add it through the config file:

  1. Open Settings → Developer → Edit Config to reveal claude_desktop_config.json.
  2. Inside mcpServers, add the standard DaxFormatter entry shown in Any MCP client below.
  3. Restart Claude Desktop, then confirm the server appears under Settings → Developer.

The format_dax tool is now available in chat. The same connector is automatically shared with Claude Code, so you set it up once for both.

# -s user enables it in every project; omit -s for the current project only
claude mcp add -s user DaxFormatter -- npx -y @sqlbi/daxformatter-mcp

# check it was added
claude mcp get DaxFormatter

Codex

In the Codex app:

  1. Open Settings → Integrations → MCP servers → Add.
  2. Choose the command (STDIO) type and give it a name (e.g. DaxFormatter).
  3. Set the command to npx, then use Add argument to add the two arguments separately: first -y, then @sqlbi/daxformatter-mcp.
  4. Click Save.

The format_dax tool is now available in your threads. The app and the CLI share the same settings, so this also covers the Codex CLI and IDE extension.

Add it from the terminal:

# add it to the user-level Codex configuration (available in every project)
codex mcp add DaxFormatter -- npx -y @sqlbi/daxformatter-mcp

# check it was added
codex mcp get DaxFormatter
codex mcp list

Both the app and the CLI write the same entry to ~/.codex/config.toml (Windows: %USERPROFILE%\.codex\config.toml), which you can also edit by hand:

[mcp_servers.DaxFormatter]
command = "npx"
args = ["-y", "@sqlbi/daxformatter-mcp"]

To scope the server to one repository, put the same table in a project-scoped .codex/config.toml at the repo root instead. Codex loads it only for trusted projects and prompts for trust on first use.

Any MCP client

Don't see your app above? Most MCP-aware tools read a standard JSON config. Add this entry to your client's configuration file — or to a .mcp.json at the root of a project to share it with everyone working on that repo:

{
  "mcpServers": {
    "DaxFormatter": {
      "command": "npx",
      "args": ["-y", "@sqlbi/daxformatter-mcp"]
    }
  }
}

What it does

The server exposes a single tool, format_dax — just ask your assistant to format or check some DAX and it will use it:

  • Formats one or more DAX expressions in a single call.
  • Reports syntax errors with their line and column, so the same call both formats and validates (an expression that can't be parsed comes back unformatted, with the errors).
  • Optional formatting controls: line style, spacing, and the list/decimal separators.

Privacy

Your DAX is sent to the DAX Formatter web service (daxformatter.com), where the formatting happens. If you provide server or database names, they are SHA-256 hashed before being sent — they never leave your machine in clear text.

License

MIT