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 callslist_databases- List all databaseslist_tables- List tables in a databaseget_table_fields- Get fields for a tableexecute_query- Execute SQL querieslist_cards- List saved questionsexecute_card- Execute a saved questioncreate_card- Create new saved questionlist_collections- List collectionscreate_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"
}
}
}
}