UApiPro MCP Server: 115 API tools for AI agents

The official hosted MCP server exposes the entire UApiPro public REST API surface as 115 MCP tools — no install, no signup required, connected in a minute.

What it is

The UApiPro MCP Server is the platform's official MCP (Model Context Protocol) server. It maps the 100+ public REST endpoints described by the OpenAPI 3.1 document one-to-one onto 115 MCP tools, so an AI agent can discover and call every capability through standard tools/list and tools/call — no per-endpoint integration work.

The hosted endpoint is https://uapis.cn/mcp, speaking Streamable HTTP (JSON-RPC 2.0) with negotiated protocol versions covering 2025-06-18, 2025-03-26, and 2024-11-05. Tool names are snake_case forms of the OpenAPI operationIds — for example get_network_myip and post_text_base64_encode. The machine-readable server card, including per-tool credit costs, is published at /.well-known/mcp/server-card.json.

How to connect

The hosted endpoint needs no installation. Add it to any client that supports remote MCP servers (Cursor, VS Code, Codex, and others):

Generic MCP client configuration (the API key is optional — without it, calls run anonymously against the visitor allowance)

{
  "mcpServers": {
    "uapipro": {
      "url": "https://uapis.cn/mcp",
      "headers": {
        "Authorization": "Bearer uapi-xxxxxxxxxxxxxxxx"
      }
    }
  }
}

Codex (the mcp_servers section of ~/.config/codex/mcp.toml or config.toml)

[mcp_servers.uapipro]
url = "https://uapis.cn/mcp"
http_headers = { "Authorization" = "Bearer uapi-xxxxxxxxxxxxxxxx" }

Clients that only support local stdio servers (the classic Claude Desktop configuration style) can run the local server process instead:

npx -y uapi-mcp start --mode dynamic

Claude Desktop can also install the packaged bundle mcp-server.mcpb directly (download from GitHub Releases), then paste an API key in the settings.

Authentication and credits

The MCP server shares metering and rate limits with the REST API. Tools backed by the 29 permanent 0-credit endpoints never touch credits; metered tools called anonymously debit the visitor free allowance of 1500 credits/month per caller IP.

Calling with an API key debits the signed-in free allowance of 3500 credits/month first, then purchased credits (packs start at ¥4.9 and never expire), and unlocks higher default QPS plus usage accounting. Keys are self-serve at https://uapis.cn/console/api-keys.

To authenticate on the Streamable HTTP transport, send Authorization: Bearer <key> with MCP requests; the X-API-Key header is accepted as a legacy alternative, and individual tool calls accept an optional _apiKey argument. In local stdio mode, set the UAPI_API_KEY environment variable. The full agent authentication walkthrough is at /auth.md.

Tool discovery and calling conventions

After connecting, call tools/list for the full catalog; each tool's description names the REST endpoint it invokes. Tool inputs mirror the endpoint's query/body parameters, and the return value is the endpoint's JSON response (binary endpoints return their documented media type).

Most tools return structured JSON; errors match the REST side's {code, message, details} shape. Rate-limit etiquette and Retry-After semantics are identical to the REST API — see /AGENTS.md.

Related

FAQ

Do I need an API key?

No. Most tools can be called anonymously: 0-credit tools never touch credits, and metered tools debit the visitor free allowance of 1500 credits/month. Add an API key when you want account-level allowance, usage accounting, or higher QPS.

What does it cost?

29 endpoints are permanently 0-credit. Metered endpoints charge per call, drawing the monthly free allowances first (1500 visitor / 3500 signed-in); beyond that, credit packs start at ¥4.9 and never expire. Per-tool costs are listed in the server card and pricing.md.

Which MCP clients are supported?

Any client implementing the Streamable HTTP transport can connect to the hosted endpoint directly, including Claude, Codex, Cursor, and VS Code. stdio-only clients can run npx -y uapi-mcp start --mode dynamic as a local server process.