Metabase MCP Server

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

Local serverstdio

What is the Metabase MCP Server?

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

What the server does

That's it! Your AI assistant now has full Metabase superpowers. 🦸

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
db_listList all databases
db_schemasGet schemas in a database
db_tablesGet tables with fields
sql_executeExecute SQL queries
db_table_createCreate tables (AI-prefixed)
db_view_createCreate views
db_matview_createCreate materialized views
db_index_createCreate indexes
db_vacuum_analyzeVACUUM and ANALYZE
db_query_explainEXPLAIN query plans
db_table_statsTable statistics
db_index_usageIndex usage analysis
db_schema_exploreFast schema exploration

How to install the Metabase MCP Server

claude mcp add metabase-ai-assistant --env METABASE_URL=your-value --env METABASE_API_KEY=your-value --env ANTHROPIC_API_KEY=your-value --env OPENAI_API_KEY=your-value -- npx -y metabase-ai-assistant

Configuration

VariableDescriptionRequired
METABASE_URLEndpoint or connection string the server talks to.Yes
METABASE_API_KEYCredential the server authenticates with.Yes
ANTHROPIC_API_KEYCredential the server authenticates with.Yes
OPENAI_API_KEYCredential the server authenticates with.Yes

Example prompts to try

  • “Use Metabase to Feature.”
  • “Use Metabase to db list.”
  • “Use Metabase to db schemas.”

Frequently asked questions

MCP Server for Metabase - 111 tools for SQL generation, dashboards & PostgreSQL Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.