
aptro/superset-mcp 是从 https://github.com/aptro/superset-mcp. 导入的 MCP 服务器候选。
概览
aptro/superset-mcp 是从 https://github.com/aptro/superset-mcp. 导入的 MCP 服务器候选。
概述(AI 翻译)
MCP 服务器用于与 Apache Superset 交互,使 AI 代理能够通过程序连接并控制 Superset 实例。
设置说明
通过Smithery安装
要通过Smithery自动安装Claude Desktop的Superset Integration:
手动安装
- 本地设置超集
运行此脚本以本地启动Superset:
一旦Superset运行,你应该可以用默认凭证在http://localhost:8088访问它:
- 用户名:admin
- 密码:admin
- 克隆此仓库
把这个仓库克隆到你的本地机器上。
- 配置环境变量
在根目录中创建一个 .env 文件,使用你的超集凭证:
-
安装依赖
-
安装Claude的MCP 配置
使用 Claude Desktop 应用:
与克劳德的使用
设置完成后,你可以通过 Claude 通过自然语言请求与你的 Superset 实例交互。以下是一些示例:
仪表盘管理
- 查看仪表盘:“显示我所有的Superset仪表盘”
- 获取仪表盘详情:“显示ID 5的仪表盘详情”
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Superset MCP Integration
MCP server for interacting with Apache Superset, enabling AI agents to connect to and control a Superset instance programmatically.
Setup Instructions
Installing via Smithery
To install Superset Integration for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @aptro/superset-mcp --client claude
Manual Installation
-
Set Up Superset Locally
Run this script to start Superset locally:
git clone --branch 4.1.1 --depth 1 https://github.com/apache/superset && \ cd superset && \ docker compose -f docker-compose-image-tag.yml upOnce Superset is running, you should be able to access it at http://localhost:8088 with default credentials:
- Username: admin
- Password: admin
-
Clone This Repository
Clone this repository to your local machine.
-
Configure Environment Variables
Create a
.envfile in the root directory with your Superset credentials:SUPERSET_BASE_URL=http://localhost:8088 # Change to your Superset URL SUPERSET_USERNAME=your_username SUPERSET_PASSWORD=your_password -
Install Dependencies
uv pip install . -
Install MCP Config for Claude
To use with Claude Desktop app:
mcp install main.py
Usage with Claude
After setup, you can interact with your Superset instance via Claude using natural language requests. Here are some examples:
Dashboard Management
- View dashboards: “Show me all my Superset dashboards”
- Get dashboard details: “Show me the details of dashboard with ID 5”
- Create dashboard: “Create a new dashboard titled ‘Sales Overview’”
- Update dashboard: “Update dashboard 3 to have the title ‘Updated Sales Report’”
- Delete dashboard: “Delete dashboard with ID 7”
Chart Management
- List all charts: “What charts do I have in my Superset instance?”
- View chart details: “Show me the details of chart with ID 10”
- Create chart: “Create a new bar chart using dataset 3”
- Update chart: “Update chart 5 to use a line visualization instead of bar”
- Delete chart: “Delete chart with ID 12”
Database and Dataset Operations
- List databases: “Show me all databases connected to Superset”
- List datasets: “What datasets are available in my Superset instance?”
- Get database tables: “What tables are available in database with ID 1?”
- Execute SQL: “Run this SQL query on database 1: SELECT * FROM users LIMIT 10”
- Create dataset: “Create a new dataset from table ‘customers’ in database 2”
- Update database: “Update the connection settings for database 3”
- Delete database: “Delete database connection with ID 4”
安装
npx -y @smithery/cli install @aptro/superset-mcp --client claude