This MCP Server Tool integrates with SuperiorAPIs to dynamically fetch plugin definitions and generate MCP tool functions based on OpenAPI schemas. It automatically handles fetching metadata, parsing schemas, and registering tools with your MCP server.
Clone the repository and install dependencies:
git clone https://your-repo-url.git
cd your-repo
pip install -r requirements.txt
Configure the required environment variables before running the server:
export TOKEN=your_token_here
export APPLICATION_ID=your_application_id_here
set TOKEN=your_token_here
set APPLICATION_ID=your_application_id_here
Start the MCP server with:
python main.py
When launched, the server will:
The server connects to the SuperiorAPIs endpoint at: https://superiorapis-creator.cteam.com.tw/manager/module/plugins/list_v2
Authorization is required via the token header which you've provided through the environment variables.
The server automatically creates tool functions based on the plugin definitions. Here's an example of a generated 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.
"""
If the API call fails or returns a zero status, the server will exit with this error message: ❌ Error: API returned no data or status is 0. Please check if the API is working properly.
You can also run the server using Docker:
docker build -t superiorapis-mcp .
docker run -e TOKEN=your_token -e APPLICATION_ID=your_app_id superiorapis-mcp
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "superiorapis" '{"command":"python","args":["-m","pypi"]}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"superiorapis": {
"command": "python",
"args": [
"-m",
"pypi"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"superiorapis": {
"command": "python",
"args": [
"-m",
"pypi"
]
}
}
}
3. Restart Claude Desktop for the changes to take effect