metabase-mcp
by hluaguo·★ 64·Score 47
Metabase MCP server enables AI assistants to query databases, execute SQL, and manage dashboards through Metabase API.
Overview
Metabase MCP server is a high-performance Model Context Protocol implementation that bridges AI assistants with Metabase analytics platforms. It provides comprehensive tools for database operations, SQL and MongoDB query execution, card management, and collection organization. The server supports multiple authentication methods including API keys and email/password, and is designed for seamless integration with popular AI clients like Claude Desktop and Cursor IDE.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose this server when you're already using Metabase for analytics and want AI assistants to directly query your databases through their API without needing additional data preparation.
When NOT to choose this
Don't choose this if you need direct database access outside of Metabase or if your Metabase instance doesn't have API access enabled.
Tools this server exposes
11 tools extracted from the READMElist_databasesList all configured databases in Metabase
list_tablesGet all tables in a specific database with metadata
get_table_fieldsRetrieve field/column information for a table
execute_queryExecute native SQL queries with parameter support
execute_mongodb_queryExecute native MongoDB queries with automatic JSON conversion
execute_cardRun saved Metabase questions/cards
list_cardsList all saved questions/cards
create_cardCreate new questions/cards with SQL queries
create_mongodb_cardCreate new MongoDB questions/cards with native query support
list_collectionsBrowse all collections
create_collectionCreate new collections for organization
Comparable tools
Installation
Installation
Option 1: Using uvx (Easiest - No Installation Required)
# Run directly without installing (like npx for Python)
uvx metabase-mcp
# With environment variables
METABASE_URL=https://your-instance.com METABASE_API_KEY=your-key uvx metabase-mcpOption 2: Install from PyPI
# Install globally
uv tool install metabase-mcp
# Or with pip
pip install metabase-mcp
# Then run
metabase-mcpClaude Desktop Integration
Add this to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"metabase-mcp": {
"command": "uvx",
"args": ["metabase-mcp"],
"env": {
"METABASE_URL": "https://your-metabase-instance.com",
"METABASE_API_KEY": "your-api-key-here"
}
}
}
}FAQ
- What authentication methods are supported?
- The server supports API key authentication (recommended) and email/password authentication. Credentials can be provided via environment variables.
- Which AI assistants are compatible with this MCP server?
- The server is compatible with Claude Desktop, Cursor IDE, and any other MCP clients that support the Model Context Protocol.
Compare metabase-mcp with
Last updated · Auto-generated from public README + GitHub signals.