metabase-ai-assistant

v3.2.0
io.github.enessari/metabase-ai-assistant Checked 21 hours ago Published 10 months ago

MCP Server for Metabase - 111 tools for SQL generation, dashboards & PostgreSQL

Values you need

VariableWhat it is
METABASE_URLrequired Metabase instance URL (e.g., http://localhost:3000)
METABASE_USERNAMEoptional Metabase username for authentication
METABASE_PASSWORDoptional secret Metabase password for authentication
METABASE_API_KEYoptional secret Metabase API key (alternative to username/password)
DATABASE_HOSToptional PostgreSQL database host for direct SQL execution
DATABASE_PORToptional PostgreSQL database port
DATABASE_NAMEoptional PostgreSQL database name
DATABASE_USERoptional PostgreSQL database user
DATABASE_PASSWORDoptional 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-mcp
Add 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

  1. Ask the user for: METABASE_URL. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. 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).
  3. Restart or reload the client so it starts the server.
  4. 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, ….
  5. 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