SuperiorAPIs MCP 服务器工具
📖 描述
该项目是一个基于 Python 的MCP 服务器,它从SuperiorAPIs动态获取插件定义并根据 OpenAPI 模式自动生成 MCP 工具功能。
服务器将:
- 获取插件元数据
- 解析架构
- 动态生成工具函数
- 运行 MCP 服务器
🚀 功能
- 从SuperiorAPIs动态加载插件
- 自动生成
pydantic
模型和异步函数 - 使用
aiohttp
执行异步 API - Runtime MCP 工具注册
- 支持基于环境的配置
- 准备部署UVX平台
📂 项目结构
⚙️ 安装
克隆项目并安装依赖项:
🌍 环境变量
运行前,设置以下环境变量:
Linux/macOS
Windows 命令
🖥️ 使用方法
运行 MCP 服务器:
服务器将:
- 从 SuperiorAPIs 获取插件数据
- 动态生成MCP工具函数
- 注册工具
- 启动 MCP 服务器
🔗 API 端点
插件定义来自:
需要通过token
标头进行授权。
🧠 示例生成的工具函数
📜 要求
❗ 错误处理
如果 API 调用失败或返回status: 0
,程序将退出:
📦包装(可选)
构建包:
安装软件包:
使用 Docker 运行(如果需要):
📄 许可证
MIT 许可证(或您的自定义许可证)
👨💻作者
您的姓名/您的公司
联系方式: your_email@example.com
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
基于 Python 的 MCP 服务器,可从 SuperiorAPIs 动态获取插件定义并根据 OpenAPI 模式自动生成工具功能,从而实现与 API 服务的无缝集成。
Related MCP Servers
- -securityAlicense-qualityA Python-based MCP server that integrates OpenAPI-described REST APIs into MCP workflows, enabling dynamic exposure of API endpoints as MCP tools.Last updated -239PythonMIT License
- -securityAlicense-qualityAn MCP server that exposes HTTP methods defined in an OpenAPI specification as tools, enabling interaction with APIs via the Model Context Protocol.Last updated -2PythonMIT License
- AsecurityAlicenseAqualityA TypeScript-based MCP server that generates API clients from OpenAPI specifications, allowing automated code generation through natural language.Last updated -164JavaScriptMIT License
Fastn Serverofficial
-securityAlicense-qualityAn MCP server that enables dynamic tool registration and execution based on API definitions, providing seamless integration with services like Claude.ai and Cursor.ai.Last updated -7PythonMIT License