Metabase Analytics Integration Server
数据与存储by ryanmaule
让 AI 助手以对话方式无缝连接 Metabase,访问 dashboard、card、database 并执行查询,支持 API key 或 session 认证安全管理数据。
什么是 Metabase Analytics Integration Server?
让 AI 助手以对话方式无缝连接 Metabase,访问 dashboard、card、database 并执行查询,支持 API key 或 session 认证安全管理数据。
核心功能 (16 个工具)
list_dashboardsList all dashboards in Metabase
list_cardsList all questions/cards in Metabase
list_databasesList all databases in Metabase
execute_cardExecute a Metabase question/card and get results
get_dashboard_cardsGet all cards in a dashboard
execute_queryExecute a SQL query against a Metabase database
create_cardCreate a new question/card in Metabase
update_card_visualizationUpdate visualization settings for a card
add_card_to_dashboardAdd a card to a dashboard
create_dashboardCreate a new dashboard in Metabase
list_collectionsList all collections in Metabase
create_collectionCreate a new collection in Metabase
list_tablesList all tables in a database
get_table_fieldsGet all fields/columns in a table
update_dashboardUpdate an existing dashboard
delete_dashboardDelete a dashboard
README
Metabase MCP Server
A Model Context Protocol server that integrates AI assistants with Metabase analytics platform.
Overview
This 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.
Key Features
- Resource Access: Navigate Metabase resources via intuitive
metabase://URIs - Two Authentication Methods: Support for both session-based and API key authentication
- Structured Data Access: JSON-formatted responses for easy consumption by AI assistants
- Comprehensive Logging: Detailed logging for easy debugging and monitoring
- Error Handling: Robust error handling with clear error messages
Available Tools
The server exposes the following tools for AI assistants:
Data Access Tools
list_dashboards: Retrieve all available dashboards in your Metabase instancelist_cards: Get all saved questions/cards in Metabaselist_databases: View all connected database sourceslist_collections: List all collections in Metabaselist_tables: List all tables in a specific databaseget_table_fields: Get all fields/columns in a specific table
Execution Tools
execute_card: Run saved questions and retrieve results with optional parametersexecute_query: Execute custom SQL queries against any connected database
Dashboard Management
get_dashboard_cards: Extract all cards from a specific dashboardcreate_dashboard: Create a new dashboard with specified name and parametersupdate_dashboard: Update an existing dashboard's name, description, or parametersdelete_dashboard: Delete a dashboardadd_card_to_dashboard: Add or update cards in a dashboard with position specifications and optional tab assignment
Card/Question Management
create_card: Create a new question/card with SQL queryupdate_card_visualization: Update visualization settings for a card
Collection Management
create_collection: Create a new collection to organize dashboards and questions
Configuration
The server supports two authentication methods:
Option 1: Username and Password Authentication
# Required
METABASE_URL=https://your-metabase-instance.com
METABASE_USER_EMAIL=your_email@example.com
METABASE_PASSWORD=your_password
# Optional
LOG_LEVEL=info # Options: debug, info, warn, error, fatal
Option 2: API Key Authentication (Recommended for Production)
# Required
METABASE_URL=https://your-metabase-instance.com
METABASE_API_KEY=your_api_key
# Optional
LOG_LEVEL=info # Options: debug, info, warn, error, fatal
You can set these environment variables directly or use a .env file with dotenv.
Deployment with Smithery
To use this MCP server with Claude or other AI assistants, fork this repository and deploy using Smithery:
Steps to Deploy:
- Fork this repository to your GitHub account
- Go to Smithery and connect with your GitHub account
- Deploy the forked repository through Smithery's interface
Claude Desktop Integration
Configure your Claude Desktop to use the Smithery-hosted version:
MacOS: Edit ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: Edit %APPDATA%/Claude/claude_desktop_config.json
API Key Authentication:
{
"mcpServers": {
"metabase-mcp": {
"command": "npx",
"args": [
"-y",
"@smithery/cli@latest",
"run",
"YOUR_GITHUB_USERNAME/metabase-mcp-server",
"--config",
"{\"metabaseUrl\":\"https://your-metabase-instance.com\",\"metabaseApiKey\":\"your_api_key\",\"metabasePassword\":\"\",\"metabaseUserEmail\":\"\"}"
]
}
}
}
Username and Password Authentication:
{
"mcpServers": {
"metabase-mcp": {
"command": "npx",
"args": [
"-y",
"@smithery/cli@latest",
"run",
"YOUR_GITHUB_USERNAME/metabase-mcp-server",
"--config",
"{\"metabaseUrl\":\"https://your-metabase-instance.com\",\"metabaseApiKey\":\"\",\"metabasePassword\":\"your_password\",\"metabaseUserEmail\":\"your_email@example.com\"}"
]
}
}
}
Security Considerations
- recommend using API key authentication for production environments
- Keep your API keys and credentials secure
- Consider using environment variables instead of hardcoding credentials
- Apply appropriate network security measures to restrict access to your Metabase instance
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
常见问题
Metabase Analytics Integration Server 是什么?
让 AI 助手以对话方式无缝连接 Metabase,访问 dashboard、card、database 并执行查询,支持 API key 或 session 认证安全管理数据。
Metabase Analytics Integration Server 提供哪些工具?
提供 16 个工具,包括 list_dashboards、list_cards、list_databases 等。
相关 Skills
迁移架构师
by alirezarezvani
为数据库、API 与基础设施迁移制定分阶段零停机方案,提前校验兼容性与风险,生成回滚策略、验证关卡和时间线,适合复杂系统平滑切换。
✎ 做数据库与存储迁移时,用它统一梳理表结构和数据搬迁流程,架构视角更完整,复杂迁移也更稳。
数据库建模
by alirezarezvani
把需求梳理成关系型数据库表结构,自动生成迁移脚本、TypeScript/Python 类型、种子数据、RLS 策略和索引方案,适合多租户、审计追踪、软删除等后端建模与 Schema 评审场景。
✎ 把数据库结构设计、ER图梳理和SQL建模放到一处,复杂业务也能快速统一数据模式,少走不少返工弯路。
资深数据工程师
by alirezarezvani
聚焦生产级数据工程,覆盖 ETL/ELT、批处理与流式管道、数据建模、Airflow/dbt/Spark 优化和数据质量治理,适合设计数据架构、搭建现代数据栈与排查性能问题。
✎ 复杂数据管道、ETL/ELT 和治理难题交给它,凭 Spark、Airflow、dbt 等现代数据栈经验,能更稳地搭起可扩展的数据基础设施。
相关 MCP Server
PostgreSQL 数据库
编辑精选by Anthropic
PostgreSQL 是让 Claude 直接查询和管理你的数据库的 MCP 服务器。
✎ 这个服务器解决了开发者需要手动编写 SQL 查询的痛点,特别适合数据分析师或后端开发者快速探索数据库结构。不过,由于是参考实现,生产环境使用前务必评估安全风险,别指望它能处理复杂事务。
SQLite 数据库
编辑精选by Anthropic
SQLite 是让 AI 直接查询本地数据库进行数据分析的 MCP 服务器。
✎ 这个服务器解决了 AI 无法直接访问 SQLite 数据库的问题,适合需要快速分析本地数据集的开发者。不过,作为参考实现,它可能缺乏生产级的安全特性,建议在受控环境中使用。
Firecrawl 智能爬虫
编辑精选by Firecrawl
Firecrawl 是让 AI 直接抓取网页并提取结构化数据的 MCP 服务器。
✎ 它解决了手动写爬虫的麻烦,让 Claude 能直接访问动态网页内容。最适合需要实时数据的研究者或开发者,比如监控竞品价格或抓取新闻。但要注意,它依赖第三方 API,可能涉及隐私和成本问题。