Metabase MCP Server
Published · Updated
At a glance
- Category
- Data & analytics
- GitHub repository
- imlewc/metabase-server
- Watch out for
- A community project, not a Metabase product.
metabase-server by imlewc is a community MCP server for Metabase, the open-source business intelligence tool. It is written in TypeScript and gives an assistant access to your Metabase dashboards, saved questions (cards) and databases.
The tool set is small and focused on getting answers. list_dashboards, list_cards and list_databases show what exists. get_dashboard_cards lists the questions on a dashboard. execute_card runs a saved question and returns its results, and execute_query runs SQL against one of the databases Metabase is connected to. Dashboards, cards and databases are also available as MCP resources with metabase:// addresses.
The most practical use is asking questions that your team has already answered with a saved question. Running an existing card reuses the logic your analysts built, which is more trustworthy than having the model write fresh SQL. execute_query is the more powerful and more risky tool: it runs whatever SQL the model writes, with the permissions of the Metabase user, against the underlying database. Using a Metabase user that only has access to the right collections and databases, and preferring execute_card for regular questions, keeps it safer.
How it connects
Your AI app
An assistant or agent that supports MCP
Metabase MCP Server
Runs as
- npx (Node.js)
Gives the agent
- Browse
- Dashboards
- Run saved questions
- Run SQL
- Resources
Metabase
Signs in with
- API key
What it can do
- Browse
- list_dashboards, list_cards and list_databases show what is in Metabase.
- Dashboards
- get_dashboard_cards lists the questions that make up a dashboard.
- Run saved questions
- execute_card runs a saved question and returns its results.
- Run SQL
- execute_query runs a SQL query against a connected database.
- Resources
- Dashboards, cards and databases are available as metabase:// resources in JSON.
Setting it up
Set METABASE_URL to your Metabase instance and either METABASE_API_KEY (preferred) or METABASE_USERNAME and METABASE_PASSWORD; the server uses the API key when it is set and falls back to username and password otherwise. Install it by cloning and building the repository, through Smithery, or by running npx -y @imlewc/metabase-server, which is what the README's Claude Code CLI example uses. Create an API key or user with access limited to the collections and databases the assistant should see.
Where each client keeps its MCP config file, and the JSON it expects (cheat sheet)
Where it helps
- Answering a metric question by running an existing saved question
- Listing what is on a dashboard before a meeting
- Running an ad hoc SQL query against a connected database
- Finding which saved questions exist for a topic
Limitations and things to watch
- A community project, not a Metabase product.
- execute_query runs arbitrary SQL with the Metabase user's database access.
- Large query results go into the model's context; use limits.
- There are no tools for creating or editing dashboards and questions.
Sources
Written from the project's own documentation, checked November 2026.
- github.com /imlewc/metabase-server
- metabase.com /docs/latest/people-and-groups/api-keys
- metabase.com /docs/latest/api
- registry.npmjs.org /@imlewc/metabase-server
How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.