Skip to content
MCP server
Registry

Metabase MCP Server

Query and manage Metabase dashboards, cards, and data via Claude

Metabase scores 70 (Good), licensed MIT and written in TypeScript. It installs as a local process. It does not declare tools yet. Filed under Databases, AI and memory. GitHub shows 6 stars. Package registries report about 733 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.

by 1luvc0d3MITTypeScript6 stars
Trust score
70Good
Trust score 70 of 100, Good

Good trust

70 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 70 comes from

22 + 20 + 7 + 10 + 4 + 7 = 70. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity7 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 7 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs7 / 10

A real summary, a README with depth, listed tools.

Docs: 7 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "1luvc0d3-metabase-mcp": {      "command": "npx",      "args": [        "-y",        "@ai-1luvc0d3/metabase-mcp@2.0.2"      ],      "env": {        "METABASE_URL": "",        "METABASE_API_KEY": "YOUR_METABASE_API_KEY",        "MCP_MODE": "read",        "ANTHROPIC_API_KEY": "YOUR_ANTHROPIC_API_KEY",        "MCP_REDACT_COLUMNS": "",        "MCP_REDACT_MODE": "mask"      }    }  }}

Environment variables

NameRequiredNotes
METABASE_URLRequiredYour Metabase instance URL
METABASE_API_KEYSecretRequiredMetabase API key (Admin > Settings > API Keys)
MCP_MODEOptionalServer mode: read, write, or full
ANTHROPIC_API_KEYSecretOptionalEnables NLQ and AI insight tools
MCP_REDACT_COLUMNSOptionalComma-separated column names to redact from query results (case-insensitive, * wildcard), e.g. email,phone*,*_ssn
MCP_REDACT_MODEOptionalmask replaces values with [REDACTED]; drop removes the columns entirely

Tools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.

About

metabase-mcp

npm version npm downloads CI License: MIT Node Glama score Metabase MCP on mcprush

An MCP server for Metabase with API-key auth and production guardrails. It lets Claude and other AI agents query, explore and build in Metabase on any edition and any version, including from CI and behind a VPN.

https://github.com/user-attachments/assets/154d1602-4a0a-4e08-96d5-3ba49326f407

Two minutes of real Claude Code sessions: asking a question, building a dashboard, SQL guardrails, per-tool gating, column redaction, and one shared server with a per-person audit log.

Why this one?

Metabase ships an official MCP server. It's good, and if it fits your setup you should use it. This server is for the setups it doesn't fit, mostly open-source and Starter Metabase:

  • Headless on any plan. Authenticates with a Metabase API key, so it works for agents, CI and VPN'd self-hosted instances. The official server's headless auth is Pro/Enterprise only.
  • Governance without an upgrade. Read/write/full modes, per-tool allow/deny lists, column redaction, SQL guardrails, tiered rate limits and a risk-scored audit log, on any edition.
  • Composition. batch_execute runs up to 20 operations in parallel; run_workflow chains steps with output references.
  • AI in the server. NLQ-to-SQL, SQL explain/optimize, insights and trend analysis with your own Anthropic key.
  • Any Metabase version, including pre-v0.60 instances that can't run the official MCP.

Choose the official server if you want OAuth per-user permissions, structured (MBQL) queries or inline charts, or if you're on Pro/Enterprise. → Full comparison

Quick start

You need a Metabase URL and an API key (Admin > Settings > API Keys > Create API Key).

Claude Desktop (one-click): download metabase-mcp-*.mcpb from the latest release, double-click it, and enter your URL and key. They're stored in the OS keychain.

Claude Code:

claude mcp add metabase \
  -e METABASE_URL=https://your-metabase.example.com \
  -e METABASE_API_KEY=mb_your_api_key_here \
  -- npx -y @ai-1luvc0d3/metabase-mcp

Any MCP client (for example claude_desktop_config.json):

{
  "mcpServers": {
    "metabase": {
      "command": "npx",
      "args": ["-y", "@ai-1luvc0d3/metabase-mcp"],
      "env": {
        "METABASE_URL": "https://your-metabase.example.com",
        "METABASE_API_KEY": "mb_your_api_key_here",
        "MCP_MODE": "read"
      }
    }
  }
}

Shared server for a team (Docker): run one container and either share one Metabase API key (each person gets a token) or let each person bring their own Metabase credential so Metabase permissions apply per person (MCP_AUTH_MODE=passthrough). Policy, audit log and rate limits live on the server. → docs/docker.md

docker run -d -p 3000:3000 -e METABASE_URL=... -e METABASE_API_KEY=... \
  -e MCP_AUTH_TOKENS=alice:<token>,bob:<token> ghcr.io/1luvc0d3/metabase-mcp:latest
claude mcp add --transport http metabase http://<host>:3000/mcp --header "Authorization: Bearer <token>"

Then ask something like "What dashboards do we have about customer retention?"

Configuration

VariableDefaultDescription
METABASE_URLrequiredYour Metabase instance URL
METABASE_API_KEYrequiredMetabase API key (or METABASE_SESSION_TOKEN)
MCP_MODEreadread, write or full (see below)
ANTHROPIC_API_KEY-Enables the NLQ and insight tools
MCP_TOOLS_ALLOW / MCP_TOOLS_DENY-Expose only, or never expose, these tools
MCP_REDACT_COLUMNS-Columns to mask in query results, e.g. email,phone*,*_ssn

All options, including timeouts, row limits, rate limits and redaction details: docs/configuration.md.

Tools

ModeToolsAdds
read (default)12Dashboards, cards, databases, collections, search, SELECT-only SQL, batch_execute, run_workflow
write22Create, update and delete cards, dashboards and collections
full30AI insights, metric comparison and trend analysis

With ANTHROPIC_API_KEY set, every mode also gets nlq_to_sql, explain_sql, optimize_sql and validate_sql.

Workflows chain tools in one call, passing results between steps:

{
  "steps": [
    { "name": "find", "tool": "search_content", "args": { "query": "revenue", "type": "dashboard" } },
    { "name": "dash", "tool": "get_dashboard", "args": { "dashboard_id": "$find.results[0].id" } },
    { "name": "data", "tool": "execute_card", "args": { "card_id": "$dash.dashcards[0].card_id" } }
  ]
}

Full tool list and more examples: docs/tools.md.

Security

  • SQL guardrails: only SELECT/WITH; DDL, DML and injection patterns are rejected
  • Access control: server modes plus per-tool allow/deny lists, enforced inside batches and workflows too
  • Column redaction: sensitive columns are masked before results reach the AI
  • Rate limits: separate read, write and LLM tiers
  • Audit log: every operation logged with a risk level
  • Secret handling: API keys never reach tool handlers, Metabase errors are sanitized, and auth headers are never forwarded on redirects

Details and limits: docs/security.md. Report vulnerabilities via SECURITY.md.

Privacy policy

  • Collected: nothing. No telemetry, analytics or usage data. Your Metabase URL and keys stay on your machine (in the OS keychain when installed as a Claude Desktop extension).
  • Transmitted: Metabase API calls go straight from your machine to your own Metabase instance. The NLQ and insight tools send your question, schema context and query result samples to the Anthropic API (privacy policy); without an Anthropic key, nothing is sent to Anthropic. Columns in MCP_REDACT_COLUMNS are redacted first.
  • Retained: nothing. Audit logs (if enabled with AUDIT_LOG_FILE) are written only to your local filesystem, with owner-only (0600) permissions.
  • See also the Metabase privacy policy.

Troubleshooting

Connection errors, blocked SQL, rate limits and missing tools: docs/troubleshooting.md.

Contributing

npm install && npm run build   # build
npm test                       # unit + integration tests
npm run lint && npm run type-check

See CONTRIBUTING.md and the Code of Conduct. Bugs and feature requests go in Issues; questions, feedback and production stories in Discussions. If it's useful to you, a ⭐ helps.

License

MIT

Frequently asked questions

What is Metabase MCP Server?

Query and manage Metabase dashboards, cards, and data via Claude

How do I install Metabase MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Metabase MCP Server runs locally from the npm package @ai-1luvc0d3/metabase-mcp with the command npx -y @ai-1luvc0d3/metabase-mcp@2.0.2.

Is Metabase MCP Server free and open source?

Yes. Metabase MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does Metabase MCP Server support remote (HTTP) connections?

No remote endpoint is listed for Metabase MCP Server. It runs locally on your machine over stdio, started by your MCP client.

How is Metabase MCP Server's trust score calculated?

Metabase MCP Server scores 70 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server