Listed from the MCP registry; nobody on Odel publishes it.
Query and manage Metabase dashboards, cards, and data via Claude
Runs on your machine from its package; the steps are below.
At most: creates or changes data: records, files, settings.
Odel charges nothing per call. The publisher may charge for its own service.
Runs locally over stdio
This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).
Run
npx -y @ai-1luvc0d3/metabase-mcp
MCP client config
{
"mcpServers": {
"metabase": {
"command": "npx",
"args": [
"-y",
"@ai-1luvc0d3/metabase-mcp"
]
}
}
}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.
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:
batch_execute runs up to 20 operations in parallel; run_workflow chains steps with output references.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
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?"
| Variable | Default | Description |
|---|---|---|
METABASE_URL | required | Your Metabase instance URL |
METABASE_API_KEY | required | Metabase API key (or METABASE_SESSION_TOKEN) |
MCP_MODE | read | read, 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.
| Mode | Tools | Adds |
|---|---|---|
read (default) | 12 | Dashboards, cards, databases, collections, search, SELECT-only SQL, batch_execute, run_workflow |
write | 22 | Create, update and delete cards, dashboards and collections |
full | 30 | AI 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.
SELECT/WITH; DDL, DML and injection patterns are rejectedDetails and limits: docs/security.md. Report vulnerabilities via SECURITY.md.
MCP_REDACT_COLUMNS are redacted first.AUDIT_LOG_FILE) are written only to your local filesystem, with owner-only (0600) permissions.Connection errors, blocked SQL, rate limits and missing tools: docs/troubleshooting.md.
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.