这是一个基于 Apache Superset REST API 构建的 Model Context Protocol (MCP) 服务端应用,借助大模型让其具备基本查询能力,可实现数据库、表和字段的查询以及 SQL 执行等操作。
npx -y https://github.com/LiusCraft/superset-mcp-server
SUPERSET_URL
SUPERSET_USERNAME
SUPERSET_PASSWORD
鉴权方式:LDAP
# 安装 Node.js 依赖
npm install
# API client 测试
npm run src/examples/superset-example.ts
# 调试环境
npm run inspector
# 生产环境
npm run build
npm start
本项目的环境要求为 Node.js >= 14.0.0 ,安装步骤如下:
# 安装 Node.js 依赖
npm install
项目配置文件位于 config
目录下,涵盖以下配置内容:
参考 Superset 官方 Swagger 文档。
.
├── src/ # 源代码目录
├── src/examples # 封装的 API 客户端测试代码
├── src/services # 封装的 API 函数
├── src/utils # 封装的 Superset baseHttpClient
├── src/index.ts # 定义 MCP 接口
node currentFolder/build/index.js
本项目采用 Apache License 2.0 许可证。
如有问题,请提交 Issue 或联系项目维护者。