Metabase MCP Server
元数据库服务器 MCP 服务器
用于 Metabase 集成的模型上下文协议服务器。
这是一个基于 TypeScript 的 MCP 服务器,实现了与 Metabase API 的集成。它允许 AI 助手与 Metabase 进行交互,并提供以下访问权限:
仪表板、问题/卡片和数据库作为资源
用于列出和执行 Metabase 查询的工具
能够查看和与 Metabase 数据交互
特征
资源
通过
metabase://URI 列出并访问 Metabase 资源访问仪表板、卡片/问题和数据库
用于结构化数据访问的 JSON 内容类型
工具
list_dashboards- 列出 Metabase 中的所有仪表板list_cards- 列出 Metabase 中的所有问题/卡片list_databases- 列出 Metabase 中的所有数据库execute_cardMetabase 问题/卡片并获取结果get_dashboard_cards- 获取仪表板中的所有卡片execute_query——对 Metabase 数据库执行 SQL 查询
Related MCP server: Metabase MCP Server
配置
在运行服务器之前,需要设置以下环境变量:
# Required environment variables
export METABASE_URL=https://your-metabase-instance.com
export METABASE_USERNAME=your_username
export METABASE_PASSWORD=your_password您可以在 shell 配置文件中设置这些环境变量,或者使用带有dotenv等包的.env文件。
发展
安装依赖项:
npm install构建服务器:
npm run build对于使用自动重建的开发:
npm run watch安装
要与 Claude Desktop 一起使用,请添加服务器配置:
在 MacOS 上: ~/Library/Application Support/Claude/claude_desktop_config.json在 Windows 上: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"metabase-server": {
"command": "/path/to/metabase-server/build/index.js",
"env": {
"METABASE_URL": "https://your-metabase-instance.com",
"METABASE_USERNAME": "your_username",
"METABASE_PASSWORD": "your_password"
}
}
}
}注意:如果愿意,您也可以在系统中而不是在配置文件中设置这些环境变量。
通过 Smithery 安装
要通过Smithery自动为 Claude Desktop 安装 metabase-server:
npx -y @smithery/cli install @imlewc/metabase-server --client claude调试
由于 MCP 服务器通过 stdio 进行通信,调试起来可能比较困难。我们推荐使用MCP Inspector ,它以包脚本的形式提供:
npm run inspector检查器将提供一个 URL 来访问浏览器中的调试工具。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with Metabase analytics platform, allowing users to query databases, manage dashboards and cards, execute SQL queries, and access analytics data through natural language.611MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with Metabase analytics platform, allowing them to query databases, execute SQL, manage dashboards and cards, and access analytics data through natural language.61MIT
- FlicenseNot gradedqualityNot gradedmaintenanceEnables AI assistants to interact with Metabase by providing access to dashboards, questions, and databases through the Metabase API. It allows users to list resources, execute existing cards, and run custom SQL queries to retrieve data through natural language.15
- AlicenseAqualityDmaintenanceEnables AI assistants to interact with Metabase for database operations, SQL queries, dashboard management, and analytics automation.28MIT
Related MCP Connectors
Connect your AI assistants to Keboola and expose your data, transformations, SQL queries, ...
Connect AI assistants to your GitHub-hosted Obsidian vault to seamlessly access, search, and analy…
Renders interactive Chart.js charts and dashboards inline in AI conversations.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/imlewc/metabase-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server