The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the OpenAPI APIs listing page.
MCP server that fronts any OpenAPI service behind four generic tools.
An agent finds operations in each deployment's OpenAPI document and calls them; the
server resolves the URL, obtains a bearer token, and builds the request. Discovery is
list_platforms, list_endpoints and describe_endpoint; execution is the generic
proxy call_endpoint.
uvconfig.json describing the deployments you hold credentials forSet up your config (see Configuration), then run the server:
config.json MUST live at ~/.config/mcp-openapix/config.json
(%USERPROFILE%\.config\… on Windows). config.example.json is a full template.
platformsA hierarchy of platform → region → services → service → env. Each service declares:
| Field | Notes |
|---|---|
spec_path | Required. The OpenAPI JSON endpoint relative to the service URL |
canonical_env | Required when more than one env is configured — the env whose URL the spec is fetched from |
envs | Required. One entry per deployment environment, each carrying a full base url |
desc | Optional. A short description surfaced by list_platforms |
token_helper | Optional. The token helper this level binds to |
The services object may also contain a token_helper default applying to all services
in that region. A service or environment can override it.
token_helpersNamed token helpers, in the same shape as an MCP server entry:
| Field | Required | Default | Notes |
|---|---|---|---|
command | yes | — | Resolved on PATH; never run through a shell |
args | no | [] | Passed verbatim |
timeout | no | 60 | Seconds before the helper's process group is killed; at most 300 |
The config names a command and nothing else, so config.json holds no secrets.
The complete helper invocation and output contract is documented in
docs/token-protocol.md.
Which helper a call uses is resolved most-specific-first:
If no level declares a helper, the deployment is unauthenticated. Omit
token_helper for public deployments.
headersConstant headers added to every API call — for APIs that require a tenant, product or locale header:
defaultsMakes every tool argument optional: a call falls back to defaults.platform, .region,
.service, .env, .username and .token_helper when they are omitted.
| Field | Default | Notes |
|---|---|---|
truncate_threshold | 4096 | Response bytes returned inline before truncating to a preview |
response_cache_ttl | 3600 | Seconds a truncated body stays readable at its resource URI |
spec_refresh | {"auto": true, "interval": 7} | Background spec refresh; interval is days and MAY be fractional |
| Tool | Purpose |
|---|---|
list_platforms | Every platform with its regions, services, and envs |
list_endpoints | A service's operations, filtered by query, tag or method |
describe_endpoint | One operation plus the transitive closure of the schemas it references |
call_endpoint | Execute an operation, or a raw method + path absent from the spec |
Many OpenAPI documents omit operationId, so the server synthesizes one as "<METHOD> <path>":
Where a spec does declare an operationId, that value wins.
Specs are not bundled. Each deployment's document is fetched on demand — an
unauthenticated GET — and cached under
~/.cache/mcp-openapix/{platform}/{region}/{service}.json.
A document MUST declare at least one operation before it is installed, so a deployment
answering 200 with an error body cannot replace a working snapshot with one that
serves nothing.
Cached specs refresh in the background: once at startup, then every
spec_refresh.interval days. Set auto to false to stop it; the manual lever still
works:
| Resource URI | Description |
|---|---|
openapi://responses/{request_id} | Full body of a truncated call_endpoint response |
openapi://curl/{request_id} | Equivalent curl command for a call_endpoint request |
Both expire response_cache_ttl seconds after the call. The curl command may embed
a short-lived token.
Tokens are cached in memory and, when expiry metadata is available, under
~/.cache/mcp-openapix/tokens/ (mode 0600) keyed by the token-helper declaration
and username. This lets client sessions share a login without spawning a helper each.
A 401 retires the cached token so the next call obtains a fresh one. To clear them all:
All four MUST pass; see AGENTS.md. Tests use
respx to mock HTTP and real subprocesses for
token helpers, so no live API access is required.
MIT.