SuperiorAPIs MCP server

Provides a bridge between AI systems and external APIs, enabling structured communication with third-party services through a set of callable tools built on the fastmcp framework.
Back to servers
Setup instructions
Provider
CTeam
Release date
Mar 22, 2025
Language
Python
Package
Stats
6.7K downloads

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.

Installation

Clone the repository and install dependencies:

git clone https://your-repo-url.git
cd your-repo
pip install -r requirements.txt

Environment Setup

Configure the required environment variables before running the server:

Linux/macOS

export TOKEN=your_token_here
export APPLICATION_ID=your_application_id_here

Windows CMD

set TOKEN=your_token_here
set APPLICATION_ID=your_application_id_here

Running the Server

Start the MCP server with:

python main.py

When launched, the server will:

  • Fetch plugin data from SuperiorAPIs
  • Dynamically generate MCP tool functions
  • Register these tools
  • Start the MCP server

API Integration Details

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.

Generated Tool Functions

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.
    """

Error Handling

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.

Docker Deployment (Optional)

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

How to install this MCP server

For Claude Code

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.

For Cursor

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.

Adding an MCP server to Cursor globally

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"
            ]
        }
    }
}

Adding an MCP server to a project

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.

How to use the MCP server

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.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.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

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later