metabase-ai-assistant
v3.2.0MCP Server for Metabase - 111 tools for SQL generation, dashboards & PostgreSQL
Values you need
| Variable | What it is | |
|---|---|---|
METABASE_URL | required | Metabase instance URL (e.g., http://localhost:3000) |
METABASE_USERNAME | optional | Metabase username for authentication |
METABASE_PASSWORD | optional secret | Metabase password for authentication |
METABASE_API_KEY | optional secret | Metabase API key (alternative to username/password) |
DATABASE_HOST | optional | PostgreSQL database host for direct SQL execution |
DATABASE_PORT | optional | PostgreSQL database port |
DATABASE_NAME | optional | PostgreSQL database name |
DATABASE_USER | optional | PostgreSQL database user |
DATABASE_PASSWORD | optional secret | PostgreSQL database password |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add metabase-ai-assistant -e 'METABASE_URL=<METABASE_URL>' -- npx -y --package=metabase-ai-assistant@3.2.0 metabase-ai-mcpAdd to
claude_desktop_config.json{
"mcpServers": {
"metabase-ai-assistant": {
"args": [
"-y",
"--package=metabase-ai-assistant@3.2.0",
"metabase-ai-mcp"
],
"command": "npx",
"env": {
"METABASE_URL": "<METABASE_URL>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"metabase-ai-assistant": {
"args": [
"-y",
"--package=metabase-ai-assistant@3.2.0",
"metabase-ai-mcp"
],
"command": "npx",
"env": {
"METABASE_URL": "<METABASE_URL>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "METABASE_URL",
"id": "metabase-url",
"password": true,
"type": "promptString"
}
],
"servers": {
"metabase-ai-assistant": {
"args": [
"-y",
"--package=metabase-ai-assistant@3.2.0",
"metabase-ai-mcp"
],
"command": "npx",
"env": {
"METABASE_URL": "${input:metabase-url}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.metabase-ai-assistant]
command = "npx"
args = ["-y", "--package=metabase-ai-assistant@3.2.0", "metabase-ai-mcp"]
env = { "METABASE_URL" = "<METABASE_URL>" }For AI agents
- Ask the user for: METABASE_URL. Never invent or guess these values; secrets go into the client config, not into chat logs.
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: db_list, db_test_speed, db_schemas, db_tables, sql_execute, mb_question_create, mb_questions, mb_dashboard_create, ….
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json