AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
MCP unreviewed Apache-2.0 Self-run

Metabase Ai Assistant

mcp-enessari-metabase-ai-assistant Β· by enessari

πŸš€ The most powerful MCP Server for Metabase - 111+ tools for AI SQL generation, dashboard automation & enterprise BI. Works with Claude, Cursor, ChatGPT.

β€” No reviews yet
0 installs
46 views
0.0% view→install

Install

$ agentstack add mcp-enessari-metabase-ai-assistant

Open-source listing, not yet scanned by AgentStack. Follow the source repository for install instructions.

Security review

⚠ Flagged

1 finding(s); flagged for manual review. Β· v0.1.0 How review works β†’

  • β€’ Prompt-injection patterns
  • β€’ Secret / credential exfiltration
  • β€’ Dangerous shell & filesystem operations
  • β€’ Untrusted network calls
  • β€’ Known-malicious package signatures
  • high Destructive filesystem operation.

What it can access

  • βœ“ Network access No
  • βœ“ Filesystem access No
  • βœ“ Shell / process execution No
  • ● Environment & secrets Used
  • βœ“ Dynamic code execution No

From automated source analysis of v0.1.0. β€œUsed” means the capability is present in the source β€” more access means more to trust, not that it’s unsafe.

View the full security report β†’

Reliability & compatibility

β€” Not yet reviewed
0 installs to date
β€” no reviews yet
β—‹ 7mo ago

Declared compatibility

Claude CodeClaude DesktopCursorWindsurf

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work β†’
Are you the author of Metabase Ai Assistant? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

πŸš€ Metabase AI Assistant

The Most Powerful MCP Server for Metabase

134 Tools β€’ MCP SDK v1.26.0 β€’ AI-Powered SQL β€’ Structured Output β€’ Enterprise Security

[](https://www.npmjs.com/package/metabase-ai-assistant) [](https://www.npmjs.com/package/metabase-ai-assistant) [](https://github.com/enessari/metabase-ai-assistant/stargazers) [](https://opensource.org/licenses/Apache-2.0)

[](https://modelcontextprotocol.io/) [](https://claude.ai) [](https://cursor.sh) [](https://nodejs.org/) [](https://lobehub.com/mcp/onmartech-metabase-ai-assistant) ---

Turn your AI assistant into a Metabase power user. Generate SQL from natural language, create dashboards, manage users, and automate BI workflows.

[πŸ“¦ Install Now](#-quick-start) β€’ [πŸ“– Documentation](#-available-tools) β€’ [🎯 Features](#-why-this-project) β€’ ⭐ 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 | 134 βœ… | 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 | βœ… | ❌ | | Structured Output (JSON) | βœ… | ❌ | | Tool Annotations | βœ… | ❌ |


πŸš€ Quick Start

One-Line Install

npx metabase-ai-assistant

Add to Claude Desktop / Cursor

{
  "mcpServers": {
    "metabase": {
      "command": "npx",
      "args": ["-y", "metabase-ai-assistant"],
      "env": {
        "METABASE_URL": "https://your-metabase.com",
        "METABASE_API_KEY": "mb_your_api_key"
      }
    }
  }
}

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


🎯 What Can You Do?

πŸ’¬ Natural Language β†’ SQL

You: "Show me total revenue by product category for the last 30 days"
AI: Uses ai_sql_generate β†’ Runs query β†’ Returns formatted results

πŸ“Š Instant Dashboard Creation

You: "Create an executive dashboard for our e-commerce sales"
AI: Uses mb_dashboard_template_executive β†’ Creates fully configured dashboard

πŸ” Deep Database Exploration

You: "What tables are related to 'orders' and show their relationships"
AI: Uses db_relationships_detect β†’ Returns complete ER diagram info

πŸ›‘οΈ Enterprise-Grade Security

You: "DROP TABLE users" 
AI: πŸ”’ Blocked - Read-only mode active

πŸ”§ Complete Tool List (134)

> πŸ†• All tools include MCP annotations and title. 16 priority tools support outputSchema + structuredContent for typed JSON responses.

πŸ“Š Database Operations (25 tools)

| Tool | Description | |------|-------------| | db_list | List all databases | | db_schemas | Get schemas in a database | | db_tables | Get tables with fields | | sql_execute | Execute SQL queries | | db_table_create | Create tables (AI-prefixed) | | db_view_create | Create views | | db_matview_create | Create materialized views | | db_index_create | Create indexes | | db_vacuum_analyze | VACUUM and ANALYZE | | db_query_explain | EXPLAIN query plans | | db_table_stats | Table statistics | | db_index_usage | Index usage analysis | | db_schema_explore | Fast schema exploration | | db_schema_analyze | Deep schema analysis | | db_relationships_detect | Detect foreign keys | | ...and more |

πŸ€– AI-Powered Features (5 tools)

| Tool | Description | |------|-------------| | ai_sql_generate | Natural language β†’ SQL | | ai_sql_optimize | Query optimization suggestions | | ai_sql_explain | Explain SQL in plain English | | ai_relationships_suggest | Suggest table relationships | | mb_auto_describe | Auto-generate descriptions |

πŸ“‹ Question/Card Management (12 tools)

| Tool | Description | |------|-------------| | mb_question_create | Create new questions | | mb_questions | List all questions | | mb_question_create_parametric | Parametric questions | | mb_card_get | Get card details | | mb_card_update | Update cards | | mb_card_delete | Delete cards | | mb_card_archive | Archive cards | | mb_card_data | Get card data as JSON | | mb_card_copy | Copy cards | | mb_card_clone | Clone cards | | ...and more |

πŸ“ˆ Dashboard Management (14 tools)

| Tool | Description | |------|-------------| | mb_dashboard_create | Create dashboards | | mb_dashboards | List all dashboards | | mb_dashboard_get | Get dashboard details | | mb_dashboard_update | Update dashboards | | mb_dashboard_delete | Delete dashboards | | mb_dashboard_add_card | Add cards to dashboard | | mb_dashboard_add_filter | Add filters | | mb_dashboard_layout_optimize | Optimize layout | | mb_dashboard_template_executive | Executive templates | | ...and more |

πŸ‘₯ User & Permission Management (10 tools)

| Tool | Description | |------|-------------| | mb_user_list | List users | | mb_user_get | Get user details | | mb_user_create | Create users | | mb_user_update | Update users | | mb_user_disable | Disable users | | mb_permission_group_list | List groups | | mb_permission_group_create | Create groups | | ...and more |

πŸ“Š Metadata Analytics (14 tools)

| Tool | Description | |------|-------------| | mb_meta_overview | Instance health check | | mb_meta_query_performance | Query analytics | | mb_meta_content_usage | Content usage stats | | mb_meta_user_activity | User activity | | mb_meta_table_dependencies | Table dependencies | | mb_meta_impact_analysis | Breaking change analysis | | mb_meta_optimization_recommendations | Index suggestions | | mb_meta_export_workspace | Backup to JSON | | mb_meta_import_preview | Import dry-run | | mb_meta_compare_environments | Dev vs Prod diff | | mb_meta_auto_cleanup | 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 claude_ai_ prefix | | βœ… 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 |

# Enable/disable read-only mode
METABASE_READ_ONLY_MODE=true  # Default: blocks write ops
METABASE_READ_ONLY_MODE=false # Allow write operations

βš™οΈ Configuration

Create a .env file:

# Required
METABASE_URL=https://your-metabase.com
METABASE_API_KEY=mb_your_api_key

# Or use username/password
# METABASE_USERNAME=admin@example.com
# METABASE_PASSWORD=your_password

# Security (defaults to true)
METABASE_READ_ONLY_MODE=true

# AI Features (optional)
ANTHROPIC_API_KEY=sk-ant-...
OPENAI_API_KEY=sk-...

# Performance (optional)
CACHE_TTL_MS=600000  # 10 minutes

πŸ“¦ Installation Options

npm (Recommended)

npm install -g metabase-ai-assistant

Docker

docker run -e METABASE_URL=... -e METABASE_API_KEY=... ghcr.io/enessari/metabase-ai-assistant

From Source

git clone https://github.com/enessari/metabase-ai-assistant.git
cd metabase-ai-assistant
npm install
npm run mcp

πŸ—οΈ Architecture

metabase-ai-assistant/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ mcp/
β”‚   β”‚   β”œβ”€β”€ server.js              # MCP Server entry point
β”‚   β”‚   β”œβ”€β”€ tool-registry.js       # 134 tool definitions + annotations + outputSchema
β”‚   β”‚   β”œβ”€β”€ tool-router.js         # Dynamic routing with read-only gate
β”‚   β”‚   └── handlers/              # 15 modular handler files
β”‚   β”œβ”€β”€ utils/
β”‚   β”‚   β”œβ”€β”€ structured-response.js # Structured output (MCP 2025-06-18)
β”‚   β”‚   β”œβ”€β”€ cache.js               # TTL-based caching
β”‚   β”‚   β”œβ”€β”€ config.js              # Zod validation
β”‚   β”‚   └── response-optimizer.js  # Compact response formatting
β”‚   └── metabase/
β”‚       └── client.js              # Metabase API client

🀝 Contributing

We welcome contributions! See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.

# Fork, clone, install
git clone https://github.com/YOUR_USERNAME/metabase-ai-assistant.git
npm install

# Create feature branch
git checkout -b feature/amazing-feature

# Test and submit PR
npm test
git push origin feature/amazing-feature

πŸ“š Resources


πŸ“„ License

Apache License 2.0 - see [LICENSE](LICENSE)


⭐ Star this repo if it helps you!

Built with ❀️ by Abdullah Enes SARI @ ONMARTECH LLC

[](https://github.com/enessari/metabase-ai-assistant/stargazers)


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

Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source β€” we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.