SuperiorAPIs MCP Server Tool
Fetch and dynamically generate tool functions from SuperiorAPIs. Enhance your applications with auto-generated capabilities based on OpenAPI schemas, allowing for seamless integration and execution of API calls.
Installation
Installing for Claude Desktop
Option 1: One-Command Installation
npx mcpbar@latest install CTeaminfo/mcp-superiorapis -c claudeThis command will automatically install and configure the SuperiorAPIs MCP Server Tool MCP server for your selected client.
Option 2: Manual Configuration
Run the command below to open your configuration file:
npx mcpbar@latest edit -c claudeAfter opening your configuration file, copy and paste this configuration:
View JSON configuration
{
"mcpServers": {
"SuperiorAPIs MCP Server Tool": {
"command": "uvx",
"args": [
"mcp-superiorapis"
],
"env": {}
}
}
}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
π Features
- Dynamic plugin loading from SuperiorAPIs
- Auto-generation of
pydanticmodels and async functions - Asynchronous API execution using
aiohttp - Runtime MCP tool registration
- Supports environment-based configuration
- Ready for UVX platform deployment
π Project Structure
.
βββ main.py # MCP server core logic
βββ requirements.txt # Python dependency list
βββ setup.py # Packaging setup
βββ Dockerfile # (Optional) Docker container build file
βββ README.md # Project documentation
βοΈ Installation
Clone the project and install the dependencies:
git clone https://github.com/CTeaminfo/mcp-superiorapis.git
cd your-repo
pip install -r requirements.txt
π Environment Variables
Before running, set the following environment variables:
Linux/macOS
export TOKEN=your_token_here
Windows CMD
set TOKEN=your_token_here
set APPLICATION_ID=your_application_id_here
π₯οΈ Usage
Run the MCP server:
python main.py
The server will:
- Fetch plugin data from SuperiorAPIs
- Dynamically generate MCP tool functions
- Register the tools
- Start the MCP server
Authorization is required via the token header.
π§ Example Generated Tool Function
@mcp.tool()
async def post_example_tool(param1: Optional[str] = None, param2: Optional[int] = None) -> str:
"""
Tool description | API summary.
# Args:
param1 (string, optional): Description of param1.
param2 (integer, optional): Description of param2.
# Returns:
200 (object): API response.
"""
π Requirements
aiohttp>=3.8.6
pydantic>=2.5.3
mcp-sdk>=0.1.0
β Error Handling
If the API call fails or returns status: 0, the program will exit with:
β Error: API returned no data or status is 0. Please check if the API is working properly.
π¦ Packaging (Optional)
Build the package:
python setup.py sdist bdist_wheel
Install the package:
pip install dist/mcp-superiorapis-1.0.0-py3-none-any.whl
Run using Docker (if needed):
docker build -t superiorapis-mcp .
docker run -e TOKEN=your_token superiorapis-mcp
π License
MIT License (or your custom license)
π¨βπ» Author
Marcus / CTeam Contact: [email protected]
Stars
0Forks
0Last commit
5 months agoRepository age
8 months
Auto-fetched from GitHub .
MCP servers similar to SuperiorAPIs MCP Server Tool:
Β
Stars
Forks
Last commit
Β
Stars
Forks
Last commit
Β
Stars
Forks
Last commit