Superset MCP 集成
通过 Superset MCP 服务器连接 50 多个数据存储,支持 Open AI Agent SDK 等工具。
快速入门指南
安装方式
-
使用 Smithery 安装: 运行以下命令: npx -y @smithery/cli install @aptro/superset-mcp --client claude
-
手动安装:
- 克隆并运行 Superset: git clone --branch 4.1.1 --depth 1 https://github.com/apache/superset && cd superset && docker compose -f docker-compose-image-tag.yml up
- 克隆本仓库并在根目录创建
.env
文件: SUPERSET_BASE_URL=http://localhost:8088 SUPERSET_USERNAME=your_username SUPERSET_PASSWORD=your_password - 安装依赖: uv pip install .
- 安装 MCP 配置: mcp install main.py
使用示例
- 查看仪表板:"显示所有仪表板"
- 创建图表:"创建新的柱状图使用数据集 3"
- 执行 SQL 查询:"运行 SQL:SELECT * FROM users LIMIT 10"
更多功能和配置请参考 README。