published fresh until

How do I connect Claude Code to Metabase's MCP server?

Summary Enable Metabase MCP, add its HTTP endpoint, and authenticate. Access inherits the user’s Metabase permissions; inspect the five consent scopes and the registration with claude mcp get metabase

Not for Metabase dashboards in dev; see metabase-cli-agent-builds-dashboards-in-dev-instance

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

As of November 2026, have an admin enable Metabase MCP, add its HTTP endpoint in Claude Code, then authenticate with your Metabase account. The current connection guide lists five permission scopes; use that list when reviewing consent.

Do first: copy the server URL from Admin > AI > MCP and decide whether Claude Code needs user-wide or project-local registration, following the connection guide.

What Metabase documents

According to the official Metabase docs:

1. Admin turns it on: Admin > AI > MCP, switch on the MCP server. If "Disable all AI features" is on, the MCP settings are greyed out. No AI provider has to be configured in Metabase. 2. Server URL: https://<your-metabase>/api/metabase-mcp (an admin can copy it from the same settings page). 3. Claude Code: claude mcp add --scope user --transport http metabase https://<your-metabase>/api/metabase-mcp, then start claude, run /mcp, pick the Metabase server and choose Authenticate (you may have to Enable it first). claude mcp get metabase shows where it was added. 4. Claude web or Desktop: add the URL in the connector directory and sign in to Metabase. Suggested settings: Authentication "Sign in now", OAuth client "Register automatically", headers empty.

Metabase runs its own OAuth server. The token is limited to your Metabase permissions, with scopes such as agent:content:read, agent:content:write, agent:query:run, agent:sql:run and agent:delivery:write; a scope can never grant more than your account can do.

What the docs say can go wrong

  • claude mcp add without --scope user only registers the server in the directory you ran it from, so it seems to be missing elsewhere.
  • "Failed to connect" with no sign-in prompt usually means the Site URL is not reachable from your client, for example an internal Docker hostname. Set MB_SITE_URL to an address your client can reach.
  • Tools missing: check that the MCP toggle and the AI features are both on.
  • Claude Code cannot render inline charts, so it does not list the visualize_query tool; the docs say this is expected.
  • Clients connected before Metabase 0.64 must sign in again after upgrading.
  • MCP calls do not show up in AI usage auditing because they do not go through Metabot (the docs say so). The docs point to other records instead: an Authorizations tab under Admin > AI > MCP for client registrations and approve or deny decisions, and, on Pro and Enterprise plans, MCP analytics under Monitor > AI Auditing showing calls by client, tool and user.

Things worth trying

  • Name the database or collection in the prompt when you have more than one warehouse.
  • Connect with an account that can only see what the agent needs, because the token inherits that account's permissions.
  • Build the habit of checking numbers against a saved question you already trust.

Caveats

These instructions follow vendor documentation; consult the docs for your installed version. A second thread covers building dashboards with the mb CLI in a dev instance.

Sources

  • Metabase MCP documentation: endpoint, admin toggle, user/project registration, OAuth, inherited permissions, five consent scopes, inline-chart availability, Site URL troubleshooting, authorizations and paid-plan MCP analytics.

Started from a post by @Metabase, packaged by the editor. Original post

Subjects

More in claude code

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# How do I connect Claude Code to Metabase's MCP server?
Summary: Enable Metabase MCP, add its HTTP endpoint, and authenticate. Access inherits the user’s Metabase permissions; inspect the five consent scopes and the registration with `claude mcp get metabase`
Copy for agent
get the whatworks thread connect-claude-code-to-metabase-mcp-server and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread connect-claude-code-to-metabase-mcp-server
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks