PlugWiki
Metabase MCP (headless) logo

Metabase MCP Server (Headless): Setup for Claude, Cursor and Other Apps

CommunityLocal
Getnpm@serdnaley/metabase-mcpserdnaley/metabase-mcp

Not the official Metabase MCP server. This one is built by the community. Metabase makes its own: Metabase →

Lets Claude, Cursor and other assistants query your Metabase data and manage dashboards, questions, users and settings with an API key.

This is a community server for Metabase, not the one Metabase publishes. It runs on your computer and signs in to your Metabase with an API key or an email and password, so there is no browser sign-in step.

It covers far more than querying. It also reaches dashboards, users, permissions, settings and database connections. Turn on read-only mode, or load only the groups of tools you need, before you give it a key with wide rights.

Good for

  • Analysts who want to ask questions of Metabase data in plain language
  • Teams who build and tidy dashboards and collections from chat
  • Metabase admins who manage users, groups, permissions and settings
  • Developers who need Metabase in CI jobs or servers with no browser sign-in

Works in

12 should work

Tap an app to see how to set it up and any known problems.

Install Metabase MCP (headless)

Claude Code

  1. 1

    Copy this prompt.

    Add the Metabase MCP (headless) server to Claude Code. Run this command:
    
    claude mcp add metabase-headless -e METABASE_URL=<METABASE_URL> -e METABASE_API_KEY=<METABASE_API_KEY> -- npx -y @serdnaley/metabase-mcp
    
    Ask me for METABASE_URL, METABASE_API_KEY and only put the values in that config, nowhere else.
    
    Then check that it loaded and tell me if I need to sign in or restart.
  2. 2

    Paste it into Claude Code. It shows the change and asks before running it.

Requires Node.js.

Built from the package data we hold. Not yet tested by us.

Tools

  • Finds questions, dashboards, collections and tables by keyword

    Searches across everything in Metabase. You can limit it to certain types such as dashboards or tables, or to one collection, and include archived items.

    Try: “Find every dashboard that mentions revenue.”

    Read · search

  • Lists the databases Metabase is connected to

    Returns the databases your Metabase account can see.

    Try: “Which databases does our Metabase have?”

    Read · list_databases

  • Shows details for one database

    Returns the settings and details of a single connected database.

    Try: “Show me the details of database 2.”

    Read · get_database

  • Lists a database's tables, columns and links between them

    Returns the full structure of a database: tables, fields, their types and how tables relate.

    Try: “Show the tables and columns in the sales database.”

    Read · get_database_metadata

  • Lists the schemas in a database

    Returns the schema names inside one database.

    Try: “What schemas does database 2 have?”

    Read · list_database_schemas

  • Lists the tables in one schema

    Returns the tables that sit in a given schema of a database.

    Try: “List the tables in the public schema of database 2.”

    Read · get_database_schema

  • Adds a new database connection to Metabase

    Creates a connection to a new database from the details you give, such as engine and credentials.

    Try: “Connect Metabase to our new Postgres analytics database.”

    Write · create_database

  • Changes an existing database connection

    Updates the settings of a connected database, such as its name or connection details.

    Try: “Rename database 3 to Warehouse (prod).”

    Write · update_database

  • Removes a database connection from Metabase

    Deletes a database connection. Saved questions that depend on it will stop working.

    Try: “Remove the old staging database from Metabase.”

    Delete · delete_database

  • Tests connection details before you save them

    Checks whether Metabase can connect with the given details, without saving anything.

    Try: “Test whether these Postgres credentials work.”

    Write · validate_database

  • Tells Metabase to re-read a database's tables

    Starts a resync so Metabase picks up tables or columns added or changed after the last sync.

    Try: “I added a table yesterday. Resync database 2.”

    Write · sync_database_schema

  • Shows one table and its fields

    Returns a table's details and the fields it contains.

    Try: “Show me the orders table.”

    Read · get_table

Read from the source code

Permissions

high risk · 6 things to watch

High risk

It can read your data, change dashboards and settings, and delete things, and it can run any SQL you or the assistant write. Turn on read-only mode and use a Metabase key whose database access is read-only.

What it can do

Watch out for

  • It can delete data and connections

    Tools delete databases, questions, dashboards, groups, API keys and more, and all tools are on by default. Turn on read-only mode, or disable them with METABASE_TOOLS_DISABLE=delete_*. github.com

  • It runs any SQL you give it, even read-only

    The query tools send SQL as written and stay available in read-only mode. Use a Metabase key whose database access is read-only to block changes. github.com

  • It can change who has access

    Admin tools edit users, groups, permissions and API keys, and can regenerate a key so the old one stops working. Use a key from a non-admin account unless you need these. github.com

  • It can share data publicly and send messages

    Tools create public links and send real emails or Slack messages. Keep approval prompts on in your assistant. github.com

  • Exports can write files to your computer

    Export tools can save to a path you name, and do not overwrite an existing file unless asked. Check the path before approving. github.com

  • Shared server mode needs a strong token

    In HTTP mode, anyone with the token acts as your Metabase key. Keep it on localhost, or put it behind TLS. github.com

Security advisories

No published security advisories as of Nov 1, 2026.

Technical details
Turning on read-onlySet METABASE_READ_ONLY_MODE=true. It hides all 99 write tools; read tools stay. Read-only mode beats the enable and disable lists.
Talks toYour Metabase server (METABASE_URL)
Sign-in and keysThe key or login is read from environment variables on your machine and sent only to your Metabase. Nothing is stored by the server.
Scopes
  • Metabase API key, or the email and password of a Metabase account

Questions

Is this the official Metabase MCP server?

No. It is a community project by Serdnaley. Metabase has its own server, described on the Metabase page, which signs in through the browser and needs an admin to switch it on.

What do I need to run it?

Node.js, your Metabase address and an API key. Create the key in the Metabase admin area and put it in the setting shown in the install box. An email and password also work.

Can it run read-only?

Yes. Set METABASE_READ_ONLY_MODE to true and all 99 write tools disappear. The query tools stay, so also give the Metabase key read-only database access.

Can I load fewer tools?

Yes. METABASE_TOOLSETS takes group names or the presets query, content and admin. METABASE_TOOLS_ENABLE and METABASE_TOOLS_DISABLE add or drop single tools.

Does it run locally or in the cloud?

Locally by default, on your computer, talking to your Metabase. It can also run as a shared HTTP service with a bearer token, or as a container, as the README describes.

Does it work with Metabase open source?

Yes. The README says it works with the free and paid editions, tested on versions 0.59 and 0.64. A few tools need a paid plan or a newer version, as their descriptions say.

Information

updated Nov 2, 2026

Publisher
Community
Package
@serdnaley/metabase-mcp
Registry
npm
Transport
stdio
Auth
API key
Version
0.4.0
License
MIT
Last commit
Oct 31, 2026
Open issues
0
Listed in
Official MCP registry

WebsiteGitHubnpmOfficial MCP RegistryChangelogIssues

Other Metabase MCP servers

Sources

Docs, issue trackers and discussions this page is built from. Issues, quotes and findings above link to their own source.

Show all 2
  1. README.md · github.com
  2. metabase-mcp · npmjs.com

Facts from the official MCP registry, GitHub, npm, PyPI and the Docker catalog. Updated Nov 2, 2026.