Used for making asynchronous HTTP requests to external APIs, enabling the MCP server to fetch data from SuperiorAPIs endpoints.
Provides containerization support for the MCP server, allowing for consistent deployment across different environments with proper environment variable configuration.
Supported as a runtime environment for the MCP server, with specific environment variable setup instructions provided.
Supported as a runtime environment for the MCP server, with specific environment variable setup instructions provided.
Used for automatically generating data models from OpenAPI schemas, providing data validation and serialization for the dynamically loaded plugin definitions.
The core language used to implement the MCP server that dynamically generates tool functions based on plugin definitions from SuperiorAPIs.
SuperiorAPIs MCP Server Tool
๐ Description
This project is a Python-based MCP Server that dynamically fetches plugin definitions from SuperiorAPIs and auto-generates MCP tool functions based on OpenAPI schemas.
The server will:
Fetch plugin metadata
Parse the schema
Generate tool functions dynamically
Run the MCP server
Related MCP server: Lodestar MCP Server
๐ Features
Dynamic plugin loading from SuperiorAPIs
Auto-generation of
pydanticmodels and async functionsAsynchronous API execution using
aiohttpRuntime MCP tool registration
Supports environment-based configuration
Ready for UVX platform deployment
๐ Project Structure
โ๏ธ Installation
Clone the project and install the dependencies:
๐ Environment Variables
Before running, set the following environment variables:
Linux/macOS
Windows CMD
๐ฅ๏ธ Usage
Run the MCP server:
The server will:
Fetch plugin data from SuperiorAPIs
Dynamically generate MCP tool functions
Register the tools
Start the MCP server
๐ API Endpoint
Plugin definitions are fetched from:
Authorization is required via the token header.
๐ง Example Generated Tool Function
๐ Requirements
โ Error Handling
If the API call fails or returns status: 0, the program will exit with:
๐ฆ Packaging (Optional)
Build the package:
Install the package:
Run using Docker (if needed):
๐ License
MIT License (or your custom license)
๐จโ๐ป Author
Your Name / Your Company
Contact: your_email@example.com