Skip to main content
Glama
JustOneAPI MCP Server

JustOneAPI MCP Server

Official

JustOneAPI MCP Server

简体中文 | English

Use JustOneAPI in MCP clients such as ChatGPT, Codex, Cursor, Hermes Agent, and other AI assistant tools.

JustOneAPI MCP helps your assistant find the right JustOneAPI endpoint, inspect the required parameters, and call APIs through your JustOneAPI authorization.

Supported Clients

JustOneAPI MCP supports remote Streamable HTTP and local stdio. Current verified and compatibility paths include:

  • ChatGPT web custom MCP connections: explicitly select DCR in advanced OAuth settings. An existing DCR connection has been verified with a catalog read.

  • Codex CLI and the Codex IDE extension: explicit DCR OAuth, verified.

  • Claude web OAuth has been verified with a pre-registered JustOneAPI client ID.

  • Cursor, Hermes Agent, and other clients with custom headers: existing API Token compatibility method.

  • OAuth remains unverified in Claude Desktop and Claude Code. Claude Code can use an existing API Token header.

As of October 22, 2026, ChatGPT CIMD connections can fail during authorization and are temporarily not recommended. Entering the URL and choosing OAuth alone can select CIMD automatically. A working DCR connection does not establish CIMD compatibility. CIMD guidance will resume after server-side network access and the complete authorization flow have been verified; migration alone does not establish availability. Existing working DCR connections can remain in use.

Compatibility depends on OAuth registration support and account or workspace policy. Clients without OAuth can keep using a legacy API Token header or local stdio.

Related MCP server: Open API MCP Server

Quick Start

Remote HTTP with OAuth

Use this URL and follow the OAuth setup for your client below:

https://mcp.justoneapi.com/mcp

Compatible clients discover the protected-resource metadata, redirect you to auth.justoneapi.com, and ask for the MCP scopes shown on the consent page. No JustOneAPI API Token needs to be pasted into the client. Entry points, OAuth registration methods, and account restrictions vary by client. ChatGPT discovery can prefer CIMD, so check the selected registration method.

Client setup

  • ChatGPT web: enable Developer mode in settings if your account requires it. Open Plugins and select + → Add custom MCP server. Enter a name, description, and the /mcp URL above. Choose OAuth, expand Advanced OAuth settings, and wait for discovery. Set Registration method to Dynamic Client Registration (DCR). Confirm Registration URL is https://auth.justoneapi.com/oauth2/register, select the scopes you need, then create and install the plugin. No client ID, client secret, or static API Token is required. Sign in to JustOneAPI and approve access when connecting or invoking a protected tool. If DCR is unavailable, use the Codex DCR setup below or contact support instead of repeatedly retrying default CIMD.

  • Codex CLI / IDE extension: run the commands below. The currently recommended setup explicitly uses the verified DCR registration path:

codex mcp add justoneapi \
  --url https://mcp.justoneapi.com/mcp

codex mcp login justoneapi \
  --oauth-client-registration dcr

Codex CLI and the Codex IDE extension share MCP configuration. ChatGPT web connections are configured separately and do not inherit the DCR choice from a Codex login. See the official OpenAI MCP documentation and OpenAI authentication documentation.

An authorization request with client_id=https://chatgpt.com/oauth/client.json uses CIMD. Check the registration method in advanced settings. Other problems can also cause invalid_request. If DCR fails, send support the time, registration method, and error message without API Tokens, authorization codes, or other credentials.

Claude web

  1. In Claude, open Plugins, then choose Add → Add custom connector. Enter a name and https://mcp.justoneapi.com/mcp, then click Continue.

  2. Choose Sign in now and Use your own OAuth client. Open the JustOneAPI MCP setup guide and expand the manual setup section. Select Claude Web and copy the public Client ID into OAuth client ID. Leave OAuth client secret blank and click Add.

  3. Sign in to your own JustOneAPI account, review the requested permissions, select an API Token, and approve the connection.

For a free authorization check, ask Claude to call get_account_balance.

The authorization page shows the requested scopes. An account owner selects an existing API Token or creates a dedicated one; a Token Member can only use the Token assigned to that member. Disconnecting the app later revokes only its OAuth connection; it does not disable or delete the linked API Token.

Remote HTTP with an existing API Token

Claude Code can use an existing API Token with --header "Authorization: Bearer your_token". Clients that accept a JSON configuration can use the following header-based setup:

{
  "mcpServers": {
    "justoneapi": {
      "url": "https://mcp.justoneapi.com/mcp",
      "headers": {
        "Authorization": "Bearer your_token"
      }
    }
  }
}

Local stdio

As of 2026-08-25, npm latest is still the legacy 1.0.1 package, not the v2 implementation in this repository. If you require local stdio, pin the version so the legacy CLI is not mistaken for the hosted v2 service:

{
  "mcpServers": {
    "justoneapi": {
      "command": "npx",
      "args": ["-y", "justoneapi-mcp@1.0.1"],
      "env": {
        "JUSTONEAPI_TOKEN": "your_token"
      }
    }
  }
}

Legacy 1.0.1 supports Node.js 18 or newer, and its tool layout is not the same as the hosted v2 service. OAuth applies only to the remote Worker; stdio continues to read JUSTONEAPI_TOKEN locally. Update this version guidance after v2 is actually published to an npm dist-tag.

Catalog builds and dynamic releases use built-in public-safety validation and require no operator security registry or secret. Runtime API and account calls return the upstream payload without MCP-layer response truncation.

Authentication and scopes

The hosted server allows anonymous initialize, tools/list, ping, and the initialization notification. The catalog tools list_platforms, search_endpoints, and get_endpoint_schema also work without a Token or login. They only read the public catalog; they do not query an account or call a paid API.

Stateless clients using protocol 2026-07-28 can use anonymous server/discover instead of the legacy initialization handshake.

Only call_endpoint, get_account_balance, and get_usage_summary require an API Token or OAuth authorization. Missing credentials return HTTP 401; clients can use the Bearer challenge to discover the authorization server. Public tools are advertised as noauth, and protected tools retain their OAuth scopes.

OAuth users select the API Token to link on the authorization page and do not paste it into the client. The existing API Token remote compatibility method uses:

Authorization: Bearer your_token

or, for local stdio:

JUSTONEAPI_TOKEN=your_token

Local stdio uses the environment variable above. Never commit a real Token to a repository.

Protected OAuth calls use these least-privilege scopes:

  • mcp:api:call — call a JustOneAPI endpoint.

  • mcp:account:read — view balance and usage.

The existing mcp:catalog:read scope remains supported for compatibility with previous OAuth grants, but catalog queries no longer require it. Supplied invalid or expired OAuth credentials are rejected rather than silently treated as anonymous.

call_endpoint may incur charges under the API Token linked during OAuth and its current pricing, permissions, balance, and budget. It validates the endpoint and parameters before obtaining a short-lived delegation token, then makes exactly one upstream dispatch. It does not automatically retry an uncertain timeout, network failure, or HTTP 502/503/504 result.

Legacy API Tokens are still sent to the JustOneAPI backend in the established query/form format. OAuth access and delegation tokens are never put in backend URLs or form bodies; delegation tokens are sent only as an Authorization Bearer header.

Operator rollout

Production currently runs in dual mode. OAuth is additive and feature-flagged, and these switches remain the deployment and rollback boundary:

  • JUSTONEAPI_OAUTH_MODE=off keeps the remote service legacy-only and hides OAuth discovery metadata.

  • JUSTONEAPI_OAUTH_MODE=dual accepts both existing API Tokens and standard OAuth on the exact https://mcp.justoneapi.com origin.

  • Preview and workers.dev routes remain legacy-only, even if the variable is set to dual.

The Worker uses private_key_jwt for Authorization Server introspection and RFC 8693 token exchange. Store the private JWK set and active kid as Worker secrets; never commit .dev.vars, PEM files, or private JWK sets. Rotate keys by publishing old and new public keys first, switching the active kid second, and removing the retired key only after the overlap period.

npm 2.0 will first be published under the next dist-tag through OIDC trusted publishing. After the exact published artifact passes the Node.js 20, 22, and 24 smoke checks, an operator promotes it separately with npm 2FA using npm dist-tag add justoneapi-mcp@2.0.0 latest. This is never automated with an NPM_TOKEN. See RELEASE.md.

Things You Can Ask

Ask your MCP client naturally:

Find the Xiaohongshu note comments API and tell me which parameters are required.

More examples:

Which Douyin APIs can get video details?
Call the Xiaohongshu note comments API with this note ID: xxxxx.
List the Weibo search-related APIs and explain when to use each one.
Continue to the next page of results.
Check my JustOneAPI balance.
Show my recent API usage and spending.
The API returned code 400. Help me check which parameter might be wrong.
The API returned code 601 or 602. What does it mean?

The assistant can search available JustOneAPI endpoints, explain required parameters, call the selected API after you provide the needed values, and help interpret common response codes.

License

MIT

Available Tools

7 tools
call_endpointCall endpoint (may incur charges)A
Destructive
Inspect

Validate params and make one JustOneAPI endpoint call by endpoint_id. The call may incur charges under the bound API Token's current pricing and budget. Params should use snake_case names from get_endpoint_schema.

Inputs: endpoint_id (required), params. Returns: object

get_account_balanceGet account balanceA
Read-onlyIdempotent
Inspect

Get the current JustOneAPI token's available balance and currency. Use this when the user asks about account balance, remaining balance, or whether the token can continue calling APIs.

Inputs: no named parameters. Returns: object

get_endpoint_schemaGet endpoint schemaA
Read-onlyIdempotent
Inspect

Get the full schema and parameter contract for an endpoint_id returned by search_endpoints.

Inputs: endpoint_id (required). Returns: object

get_usage_summaryGet usage summaryA
Read-onlyIdempotent
Inspect

Get the current JustOneAPI token's API usage and spending summary, including recent call trends and spending trends.

Inputs: no named parameters. Returns: object

list_platformsList platformsA
Read-onlyIdempotent
Inspect

List supported JustOneAPI platforms and endpoint counts.

Inputs: no named parameters. Returns: object

refresh_catalogRefresh catalogA
Destructive
Inspect

Admin-only. Refresh the endpoint catalog from JustOneAPI OpenAPI documents.

Inputs: force, rollback. Returns: object

search_endpointsSearch endpointsA
Read-onlyIdempotent
Inspect

Find JustOneAPI endpoint candidates from natural language. Returns endpoint_id candidates; call get_endpoint_schema next.

Inputs: query (required), limit, platform, include_hidden, +1 more. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.4/5.0

    Scored across 7 tools

    Disambiguation5/5

    Each tool has a distinct role in the endpoint discovery, schema retrieval, and invocation workflow; search_endpoints, get_endpoint_schema, and call_endpoint are clearly sequential and non-overlapping. The financial tools get_account_balance and get_usage_summary address different concerns (current balance vs. usage/spending trends), and list_platforms/refresh_catalog are distinct administrative actions.

    Naming Consistency5/5

    All seven tools follow a consistent snake_case, verb-first pattern (search_, get_, call_, list_, refresh_), with clear object or action names. The convention is uniform throughout, making the tool set predictable and easy to scan.

    Tool Count5/5

    Seven tools are well-scoped for an API gateway and catalog server, covering discovery, schema inspection, invocation, account management, platform listing, and admin refresh. There is no redundancy; each tool earns its place.

    Completeness5/5

    The surface covers the full lifecycle for interacting with JustOneAPI: finding endpoints, retrieving their schemas, making validated calls, checking account balance and usage, listing supported platforms, and refreshing the catalog. No obvious gaps remain for the stated purpose.

    Maintenance

    ActivityMaintained
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      Not graded
      maintenance
      Enables AI agents to dynamically discover and interact with APIs through Swagger/OpenAPI specifications and Postman collections using a strategic four-tool approach. It streamlines API integration by providing universal tools for endpoint discovery, detailed request information, and authenticated execution.
      1
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to discover, search, and call any REST API described by an OpenAPI or Swagger document. Supports multiple API endpoints with authentication and parameter handling.
      34 npm
      MIT