metabase-ai-assistant
MCP server by enessari Community
Connects AI assistants such as Claude, Cursor and ChatGPT to a Metabase instance for SQL generation, dashboards and dbt-linked analysis. Aimed at Metabase users who want assistants to query and manage their BI content.
Install metabase-ai-assistant
Built from the published package, never by AI.
claude mcp add metabase-ai-assistant -e METABASE_URL=YOUR_METABASE_URL -- npx -y metabase-ai-assistantRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"metabase-ai-assistant": {
"env": {
"METABASE_URL": "YOUR_METABASE_URL"
},
"args": [
"-y",
"metabase-ai-assistant"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
Step-by-step: install metabase-ai-assistant in Claude Desktop
{
"mcpServers": {
"metabase-ai-assistant": {
"env": {
"METABASE_URL": "YOUR_METABASE_URL"
},
"args": [
"-y",
"metabase-ai-assistant"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"metabase-ai-assistant": {
"env": {
"METABASE_URL": "YOUR_METABASE_URL"
},
"args": [
"-y",
"metabase-ai-assistant"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add metabase-ai-assistant --env METABASE_URL=YOUR_METABASE_URL -- npx -y metabase-ai-assistant{
"mcpServers": {
"metabase-ai-assistant": {
"env": {
"METABASE_URL": "YOUR_METABASE_URL"
},
"args": [
"-y",
"metabase-ai-assistant"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
Step-by-step: install metabase-ai-assistant in Antigravity CLI
gemini mcp add metabase-ai-assistant npx -y metabase-ai-assistantGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the metabase-ai-assistant block.
About
Metabase AI Assistant is a Model Context Protocol (MCP) server that connects LLMs and AI coding assistants to a Metabase Business Intelligence instance. It covers SQL generation, dashboard building, and dbt and semantic layer work, including dbt project scanning, lineage joins, and pre-aggregation advice. It works with Claude, Cursor, ChatGPT, Gemini, and Google Antigravity.
The server runs through npx or npm and is configured with a Metabase URL and API key in the client's MCP settings. The config example sets METABASE_READ_ONLY_MODE to true. The source also describes governed semantic memory, where rules need approval before activation, and a self-healing SQL engine that attempts automated error recovery over three iterations. It includes PII masking for emails, phone numbers, and credit cards, and targets Metabase users, including enterprise deployments.
Written from the project's README and checked against it.
Tools it gives your assistant
dbt_project_scan_deepScans a dbt project with 9-tier classification and catalog.json table and column profiling.dbt_lineage_joins_graphResolves shortest join paths between dbt models using Dijkstra-based search.dbt_semantic_preagg_advisorGenerates pre-aggregation materialized view DDLs for several SQL dialects.dbt_build_dashboard_from_yamlBuilds Metabase dashboards from meta.metabase and meta.lightdash YAML formatting options.dbt_semantic_export_yamlExports approved business rules as dbt schema.yml and semantic_models.yml code blocks.ai_sql_execute_and_healRuns SQL and attempts automated error recovery over up to three iterations.dbt_inspect_modelsParses dbt manifest.json and MetricFlow semantic models.dbt_prioritize_sourcesRoutes natural language questions to pre-aggregated, tested dimensional and fact tables.semantic_memory_proposeProposes a business rule in PENDING_APPROVAL status.semantic_memory_approveActivates a proposed rule with required data steward comments.
What you need
- A Metabase instance URL
- A Metabase API key
- Node.js with npx or npm
| Setting | Needed | What it is |
|---|---|---|
METABASE_Environment variable | Required | Metabase instance URL (e.g., http://localhost:3000) |
METABASE_Environment variable | Optional | Metabase username for authentication |
METABASE_Environment variable, secret | Optional | Metabase password for authentication |
METABASE_Environment variable, secret | Optional | Metabase API key (alternative to username/password) |
DATABASE_Environment variable | Optional | PostgreSQL database host for direct SQL execution |
DATABASE_Environment variable | Optional | PostgreSQL database port |
DATABASE_Environment variable | Optional | PostgreSQL database name |
DATABASE_Environment variable | Optional | PostgreSQL database user |
DATABASE_Environment variable, secret | Optional | PostgreSQL database password |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Try asking
- Scan my dbt project and list the main gold marts for reporting
- Build a Metabase dashboard from my dbt schema.yml file
- Run this SQL and fix any errors automatically before returning results
Good to know
- The source gives two tool counts, 152 in the header and 143 in the category list.
- Read-only operation is set through the METABASE_READ_ONLY_MODE environment variable in the example config.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to metabase-ai-assistant
All alternatives →Connects Supabase projects to AI assistants such as Cursor, Claude and Windsurf over the Model Context Protocol. It lets assistants manage tables, fetch config and query data in a Supabase project.
ArcadeDB MCP Server is the built-in Model Context Protocol server of the ArcadeDB multi-model database. It lets AI assistants and LLMs work with ArcadeDB's graph, document, time-series, vector and other data models. It suits people who already run ArcadeDB and want assistant access to it.
Connects MCP clients such as Claude Desktop, Cursor and VS Code to PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, ClickHouse and SQLite. It exposes two tools by default, with read-only mode and query timeouts available as guardrails.
MCP Toolbox for Databases is an open source MCP server that connects AI agents, IDEs and applications to enterprise databases. It provides prebuilt tools for exploring schemas and running queries, plus a framework for custom tools. It is aimed at developers building agents that need database access.
Connects AI agents, IDEs and applications to enterprise databases through the Model Context Protocol. Offers prebuilt database tools for MCP clients and a framework for building custom tools for production agents.
MongoDB MCP Server lets AI assistants interact with MongoDB databases and MongoDB Atlas. It is an official server from mongodb-js, run locally with npx or Docker. It works with self-managed deployments and Atlas clusters.
Compare with Supabase, ArcadeDB MCP Server or DBHub
metabase-ai-assistant: common questions
Which AI assistants does Metabase AI Assistant work with?
The source says it works with Claude, Cursor, ChatGPT, Gemini, and Google Antigravity. It also lists Windsurf and VS Code in its client setup section.
Does it support dbt?
Yes. The source describes dbt project scanning, dbt model inspection, lineage joins, and exporting semantic rules to dbt YAML files.
Does it protect personal data?
The source describes a PII masker that sanitizes emails, phone numbers, national IDs, credit cards, IP addresses, and tokens in real time.
How do I install metabase-ai-assistant?
In Claude Code run claude mcp add metabase-ai-assistant -e METABASE_URL=YOUR_METABASE_URL -- npx -y metabase-ai-assistant. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is metabase-ai-assistant the official server?
metabase-ai-assistant is a community project by enessari, not verified by a company domain.
Is metabase-ai-assistant free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is metabase-ai-assistant safe to use?
It scores 64 of 100. Grades: maintenance C, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to metabase-ai-assistant?
Similar MCP servers: Supabase, ArcadeDB MCP Server, DBHub, MCP Toolbox for Databases.
Does metabase-ai-assistant work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
