metabase-ai-assistant
🚀 The most powerful MCP Server for Metabase - 111+ tools for AI SQL generation, dashboard automation & enterprise BI. Works with Claude, Cursor, ChatGPT.
claude mcp add --transport stdio enessari-metabase-ai-assistant npx -y metabase-ai-assistant \ --env METABASE_URL="https://your-metabase.com" \ --env METABASE_API_KEY="mb_your_api_key"
How to use
Metabase AI Assistant is an MCP server that turns natural language prompts into Metabase actions. It provides 134 tools for database querying, dashboard management, user permissions, and metadata analytics, all with structured JSON output to integrate cleanly with downstream workflows. Use it to generate SQL from plain language, auto-create dashboards using templates, explore database schemas, and manage Metabase content programmatically while keeping operations secure with a read-only mode and explicit action approvals. To start, run the MCP server via npx as shown in the quick start, then configure it in your MCP client with the provided metabase server entry. Once running, you can issue natural language requests like “Show total revenue by category for the last 30 days” to trigger ai_sql_generate, or ask the system to create an executive dashboard using mb_dashboard_template_executive. Tools are annotated and categorized (Database Operations, AI-Powered Features, Dashboard Management, User & Permission Management, Metadata Analytics) to help you compose complex workflows with structured JSON outputs for automation.
How to install
Prerequisites:
- Node.js (v18+)
- Internet access to fetch packages from npm
- Install Node.js if not installed. Visit https://nodejs.org/ and download the LTS version for your platform, or use your system package manager.
- Ensure npm (or corepack) is available:
- npm --version
- Run the Quick Start install to start the MCP server:
- npx metabase-ai-assistant
Optional:
- If you want to pin a specific version, replace npx with npm exec or install the package locally: npm install -g metabase-ai-assistant@latest npx metabase-ai-assistant
Configuration tips:
- In your MCP client, add a server entry named 'metabase' with command 'npx', args ['-y', 'metabase-ai-assistant'], and provide the required environment variables METABASE_URL and METABASE_API_KEY as shown in the example.
Additional notes
Tips and caveats:
- Ensure METABASE_URL points to your Metabase instance and METABASE_API_KEY has appropriate permissions.
- By default, the server can operate in a Read-Only security mode; destructive actions require explicit approval.
- Use the provided MCP annotations in tool outputs to understand each tool's purpose and data flow.
- If you encounter network or authentication issues, check environment variable values and ensure Metabase is reachable from the environment running the MCP server.
- For production deployments, consider enabling auto-backup prompts and configuring activity logging and metadata analytics as part of your observability stack.
Related MCP Servers
fastapi_mcp
Expose your FastAPI endpoints as Model Context Protocol (MCP) tools, with Auth!
ollama
An MCP Server for Ollama
mcp-tasks
A comprehensive and efficient MCP server for task management with multi-format support (Markdown, JSON, YAML)
metabase
Metabase MCP server provides integration with the Metabase API, enabling LLM with MCP capabilites to directly interact with your analytics data, this server acts as a bridge between your analytics platform and conversational AI.
mcp -templates
A flexible platform that provides Docker & Kubernetes backends, a lightweight CLI (mcpt), and client utilities for seamless MCP integration. Spin up servers from templates, route requests through a single endpoint with load balancing, and support both deployed (HTTP) and local (stdio) transports — all with sensible defaults and YAML-based configs.
mcp-client-gen
Turn any MCP server into a type-safe TypeScript SDK in seconds - with OAuth 2.1 and multi-provider support