Provides comprehensive integration with Metabase instances including creating models, SQL queries, metrics, and dashboards through the Metabase API, with AI-powered features for natural language SQL generation and intelligent dashboard creation.
Enables direct PostgreSQL database connections for schema discovery, table relationship detection, SQL query execution, and safe DDL operations with AI object prefix controls for security.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Metabase AI Assistantcreate a dashboard showing monthly sales trends by region"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
š Metabase AI Assistant
The Most Powerful MCP Server for Metabase
111+ Tools ⢠AI-Powered SQL ⢠Enterprise Security ⢠Zero Config
Turn your AI assistant into a Metabase power user.
Generate SQL from natural language, create dashboards, manage users, and automate BI workflows.
š¦ Install Now ⢠š Documentation ⢠šÆ Features ⢠ā Star Us
ā Why This Project?
"I analyzed every Metabase MCP server on the market. This one has 4x more tools and features than any competitor."
Feature | This Project | Other MCP Servers |
Total Tools | 111+ ā | 6-30 |
AI SQL Generation | ā | ā |
AI SQL Optimization | ā | ā |
Dashboard Templates | ā | ā |
User Management | ā | ā |
Workspace Export/Import | ā | ā |
Read-Only Security Mode | ā | ā |
Response Caching | ā | ā |
Activity Logging | ā | ā |
Metadata Analytics | ā | ā |
Parametric Questions | ā | ā |
Environment Comparison | ā | ā |
Related MCP server: MCP PostgreSQL Server
š Quick Start
One-Line Install
Add to Claude Desktop / Cursor
That's it! Your AI assistant now has full Metabase superpowers. š¦ø
šÆ What Can You Do?
š¬ Natural Language ā SQL
š Instant Dashboard Creation
š Deep Database Exploration
š”ļø Enterprise-Grade Security
š§ Complete Tool List (111+)
Tool | Description |
| List all databases |
| Get schemas in a database |
| Get tables with fields |
| Execute SQL queries |
| Create tables (AI-prefixed) |
| Create views |
| Create materialized views |
| Create indexes |
| VACUUM and ANALYZE |
| EXPLAIN query plans |
| Table statistics |
| Index usage analysis |
| Fast schema exploration |
| Deep schema analysis |
| Detect foreign keys |
...and more |
Tool | Description |
| Natural language ā SQL |
| Query optimization suggestions |
| Explain SQL in plain English |
| Suggest table relationships |
| Auto-generate descriptions |
Tool | Description |
| Create new questions |
| List all questions |
| Parametric questions |
| Get card details |
| Update cards |
| Delete cards |
| Archive cards |
| Get card data as JSON |
| Copy cards |
| Clone cards |
...and more |
Tool | Description |
| Create dashboards |
| List all dashboards |
| Get dashboard details |
| Update dashboards |
| Delete dashboards |
| Add cards to dashboard |
| Add filters |
| Optimize layout |
| Executive templates |
...and more |
Tool | Description |
| List users |
| Get user details |
| Create users |
| Update users |
| Disable users |
| List groups |
| Create groups |
...and more |
Tool | Description |
| Instance health check |
| Query analytics |
| Content usage stats |
| User activity |
| Table dependencies |
| Breaking change analysis |
| Index suggestions |
| Backup to JSON |
| Import dry-run |
| Dev vs Prod diff |
| Safe cleanup |
...and more |
š”ļø Security Features
Feature | Description |
š Read-Only Mode | Blocks INSERT, UPDATE, DELETE, DROP (default: enabled) |
š·ļø AI Prefix | All AI-created objects use |
ā Explicit Approval | Destructive operations require confirmation |
š Activity Logging | Full audit trail of all operations |
š Env Validation | Zod-validated environment variables |
š¾ Auto-Backup | Prompts for backup before destructive ops |
āļø Configuration
Create a .env file:
š¦ Installation Options
npm (Recommended)
Docker
From Source
šļø Architecture
š¤ Contributing
We welcome contributions! See CONTRIBUTING.md for guidelines.
š Resources
š License
Apache License 2.0 - see LICENSE
ā Star this repo if it helps you!
Built with ā¤ļø by
Keywords: Metabase MCP Server, Model Context Protocol, AI SQL Generation, Business Intelligence, Claude AI, Cursor AI, Natural Language SQL, Dashboard Automation, PostgreSQL, Data Analytics, LLM Tools