M

Metabase MCP

by Serdnaley · io.github.Serdnaley/metabase-mcp

Headless MCP server for Metabase: 161 tools for queries, dashboards, admin and more. Plain API-key auth with no OAuth or browser, stdio or HTTP, works on any Metabase version and tier.

npm Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-serdnaley-metabase-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@serdnaley/metabase-mcp"
      ],
      "env": {
        "METABASE_URL": "<VALUE>",
        "METABASE_API_KEY": "<YOUR_VALUE>",
        "METABASE_EMAIL": "<VALUE>",
        "METABASE_PASSWORD": "<YOUR_VALUE>",
        "METABASE_READ_ONLY_MODE": "<VALUE>",
        "METABASE_TOOLSETS": "<VALUE>",
        "METABASE_TOOLS_ENABLE": "<VALUE>",
        "METABASE_TOOLS_DISABLE": "<VALUE>",
        "METABASE_CUSTOM_HEADERS": "<YOUR_VALUE>",
        "MCP_HTTP_HOST": "127.0.0.1",
        "MCP_HTTP_PORT": "3333",
        "MCP_TRANSPORT": "stdio",
        "MCP_HTTP_TOKEN": "<VALUE>",
        "MCP_HTTP_ALLOW_NO_AUTH": "<VALUE>"
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-serdnaley-metabase-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@serdnaley/metabase-mcp"
      ],
      "env": {
        "METABASE_URL": "<VALUE>",
        "METABASE_API_KEY": "<YOUR_VALUE>",
        "METABASE_EMAIL": "<VALUE>",
        "METABASE_PASSWORD": "<YOUR_VALUE>",
        "METABASE_READ_ONLY_MODE": "<VALUE>",
        "METABASE_TOOLSETS": "<VALUE>",
        "METABASE_TOOLS_ENABLE": "<VALUE>",
        "METABASE_TOOLS_DISABLE": "<VALUE>",
        "METABASE_CUSTOM_HEADERS": "<YOUR_VALUE>",
        "MCP_HTTP_HOST": "127.0.0.1",
        "MCP_HTTP_PORT": "3333",
        "MCP_TRANSPORT": "stdio",
        "MCP_HTTP_TOKEN": "<VALUE>",
        "MCP_HTTP_ALLOW_NO_AUTH": "<VALUE>"
      }
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-serdnaley-metabase-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@serdnaley/metabase-mcp"
      ],
      "env": {
        "METABASE_URL": "<VALUE>",
        "METABASE_API_KEY": "<YOUR_VALUE>",
        "METABASE_EMAIL": "<VALUE>",
        "METABASE_PASSWORD": "<YOUR_VALUE>",
        "METABASE_READ_ONLY_MODE": "<VALUE>",
        "METABASE_TOOLSETS": "<VALUE>",
        "METABASE_TOOLS_ENABLE": "<VALUE>",
        "METABASE_TOOLS_DISABLE": "<VALUE>",
        "METABASE_CUSTOM_HEADERS": "<YOUR_VALUE>",
        "MCP_HTTP_HOST": "127.0.0.1",
        "MCP_HTTP_PORT": "3333",
        "MCP_TRANSPORT": "stdio",
        "MCP_HTTP_TOKEN": "<VALUE>",
        "MCP_HTTP_ALLOW_NO_AUTH": "<VALUE>"
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-serdnaley-metabase-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@serdnaley/metabase-mcp"
      ],
      "env": {
        "METABASE_URL": "<VALUE>",
        "METABASE_API_KEY": "<YOUR_VALUE>",
        "METABASE_EMAIL": "<VALUE>",
        "METABASE_PASSWORD": "<YOUR_VALUE>",
        "METABASE_READ_ONLY_MODE": "<VALUE>",
        "METABASE_TOOLSETS": "<VALUE>",
        "METABASE_TOOLS_ENABLE": "<VALUE>",
        "METABASE_TOOLS_DISABLE": "<VALUE>",
        "METABASE_CUSTOM_HEADERS": "<YOUR_VALUE>",
        "MCP_HTTP_HOST": "127.0.0.1",
        "MCP_HTTP_PORT": "3333",
        "MCP_TRANSPORT": "stdio",
        "MCP_HTTP_TOKEN": "<VALUE>",
        "MCP_HTTP_ALLOW_NO_AUTH": "<VALUE>"
      }
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-serdnaley-metabase-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@serdnaley/metabase-mcp"
      ],
      "env": {
        "METABASE_URL": "<VALUE>",
        "METABASE_API_KEY": "<YOUR_VALUE>",
        "METABASE_EMAIL": "<VALUE>",
        "METABASE_PASSWORD": "<YOUR_VALUE>",
        "METABASE_READ_ONLY_MODE": "<VALUE>",
        "METABASE_TOOLSETS": "<VALUE>",
        "METABASE_TOOLS_ENABLE": "<VALUE>",
        "METABASE_TOOLS_DISABLE": "<VALUE>",
        "METABASE_CUSTOM_HEADERS": "<YOUR_VALUE>",
        "MCP_HTTP_HOST": "127.0.0.1",
        "MCP_HTTP_PORT": "3333",
        "MCP_TRANSPORT": "stdio",
        "MCP_HTTP_TOKEN": "<VALUE>",
        "MCP_HTTP_ALLOW_NO_AUTH": "<VALUE>"
      }
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-serdnaley-metabase-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@serdnaley/metabase-mcp"
      ],
      "env": {
        "METABASE_URL": "<VALUE>",
        "METABASE_API_KEY": "<YOUR_VALUE>",
        "METABASE_EMAIL": "<VALUE>",
        "METABASE_PASSWORD": "<YOUR_VALUE>",
        "METABASE_READ_ONLY_MODE": "<VALUE>",
        "METABASE_TOOLSETS": "<VALUE>",
        "METABASE_TOOLS_ENABLE": "<VALUE>",
        "METABASE_TOOLS_DISABLE": "<VALUE>",
        "METABASE_CUSTOM_HEADERS": "<YOUR_VALUE>",
        "MCP_HTTP_HOST": "127.0.0.1",
        "MCP_HTTP_PORT": "3333",
        "MCP_TRANSPORT": "stdio",
        "MCP_HTTP_TOKEN": "<VALUE>",
        "MCP_HTTP_ALLOW_NO_AUTH": "<VALUE>"
      }
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
METABASE_URL Yes Base URL of your Metabase instance
METABASE_API_KEY secret No API key for authentication (starts with mb_). Either this or both METABASE_EMAIL + METABASE_PASSWORD must be provided; API key is recommended.
METABASE_EMAIL No Email for session-based auth. Required together with METABASE_PASSWORD if METABASE_API_KEY is not provided.
METABASE_PASSWORD secret No Password for session-based auth. Required together with METABASE_EMAIL if METABASE_API_KEY is not provided.
METABASE_READ_ONLY_MODE No Set to `true` to disable write tools
METABASE_TOOLSETS No Comma list of toolsets or presets to load (default: all). Presets: all, query, content, admin.
METABASE_TOOLS_ENABLE No Extra tools to load on top of the toolsets (names or globs, e.g. `get_card,export_*`)
METABASE_TOOLS_DISABLE No Tools never to load (names or globs); always wins over enable
METABASE_CUSTOM_HEADERS secret No Extra HTTP headers sent on every request, including the session login. A JSON object (e.g. {"CF-Access-Client-Id": "xxx.access", "CF-Access-Client-Secret": "yyy"}) or `Name: value` pairs separated by newlines or `;`. A malformed value stops the server at startup.
MCP_HTTP_HOST No HTTP bind address, default `127.0.0.1:3333` (with MCP_HTTP_PORT) Default: 127.0.0.1
MCP_HTTP_PORT No HTTP bind port, default `127.0.0.1:3333` (`PORT` also works) Default: 3333
MCP_TRANSPORT No `stdio` (default) or `http`. `--http` on the command line does the same Default: stdio
MCP_HTTP_TOKEN No Bearer token clients must send (min. 16 chars). Required in HTTP mode.
MCP_HTTP_ALLOW_NO_AUTH No `true` runs HTTP without a token, only on a loopback host

Similar servers