metabase-mcp

BridgerB/metabase-mcp

3.2

If you are the rightful owner of metabase-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.

The Metabase MCP server is a TypeScript-based server designed to handle model context protocols efficiently.

Metabase MCP Server

Minimal MCP server for Metabase with API key authentication.

Setup

export METABASE_BASE_URL=http://localhost:3000
export METABASE_API_KEY=example-api-key

Running

deno run --allow-net --allow-env main.ts

Or make it executable:

chmod +x main.ts
./main.ts

Tools

  • api - Raw Metabase API calls
  • list_databases - List all databases
  • list_tables - List tables in a database
  • get_table_fields - Get fields for a table
  • execute_query - Execute SQL queries
  • list_cards - List saved questions
  • execute_card - Execute a saved question
  • create_card - Create new saved question
  • list_collections - List collections
  • create_collection - Create new collection

Claude Code Configuration

Add to ~/.config/claude/claude_desktop_config.json:

{
  "mcpServers": {
    "metabase": {
      "command": "deno",
      "args": [
        "run",
        "--allow-net",
        "--allow-env",
        "/home/bridger/git/metabase-mcp/main.ts"
      ],
      "env": {
        "METABASE_BASE_URL": "http://localhost:3000",
        "METABASE_API_KEY": "example-api-key"
      }
    }
  }
}