mcp-openapix
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-openapixlist endpoints on the example items service"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-openapix
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.
example / us / items / prod
│ │ │ └── env ......... which deployment URL a call reaches
│ │ └───────── service ..... one backend, one OpenAPI spec
│ └─────────────── region ...... a geographic deployment
└───────────────────── platform .... the product or API familyRequirements
Python 3.13+ and
uvA
config.jsondescribing the deployments you hold credentials for
Related MCP server: Open API MCP Server
Quick start
Set up your config (see Configuration), then run the server:
# Run directly with uvx (no clone needed)
npx -y @modelcontextprotocol/inspector@latest uvx mcp-openapix# Or run from source
npx -y @modelcontextprotocol/inspector@latest uv run mcp-openapixConfiguration
config.json MUST live at ~/.config/mcp-openapix/config.json
(%USERPROFILE%\.config\… on Windows). config.example.json is a full template.
{
"headers": { "accept": "application/json" },
"defaults": { "platform": "example", "region": "us", "service": "items", "env": "prod" },
"platforms": {
"example": {
"regions": {
"us": {
"services": {
"token_helper": "us",
"items": {
"desc": "Catalogue and inventory API",
"spec_path": "/swagger/v1/swagger.json",
"canonical_env": "prod",
"envs": {
"prod": { "url": "https://api.example.com/items" },
"dev": { "url": "https://api-dev.example.com/items" }
}
}
}
}
}
}
},
"token_helpers": {
"us": {
"command": "token-helper",
"args": ["issue"]
}
}
}platforms
A hierarchy of platform → region → services → service → env. Each service declares:
Field | Notes |
| Required. The OpenAPI JSON endpoint relative to the service URL |
| Required when more than one env is configured — the env whose URL the spec is fetched from |
| Required. One entry per deployment environment, each carrying a full base |
| Optional. A short description surfaced by |
| 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_helpers
Named token helpers, in the same shape as an MCP server entry:
Field | Required | Default | Notes |
| yes | — | Resolved on |
| no |
| Passed verbatim |
| no |
| Seconds before the helper's process group is killed; at most |
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:
env.token_helper → service.token_helper → services.token_helper
→ region.token_helper → platform.token_helper → defaults.token_helperIf no level declares a helper, the deployment is unauthenticated. Omit
token_helper for public deployments.
headers
Constant headers added to every API call — for APIs that require a tenant, product or locale header:
"headers": { "accept": "application/json", "x-product": "example" }defaults
Makes every tool argument optional: a call falls back to defaults.platform, .region,
.service, .env, .username and .token_helper when they are omitted.
Top-level options
Field | Default | Notes |
|
| Response bytes returned inline before truncating to a preview |
|
| Seconds a truncated body stays readable at its resource URI |
|
| Background spec refresh; |
Tools
Tool | Purpose |
| Every platform with its regions, services, and envs |
| A service's operations, filtered by |
| One operation plus the transitive closure of the schemas it references |
| Execute an operation, or a raw |
Operation ids
Many OpenAPI documents omit operationId, so the server synthesizes one as "<METHOD> <path>":
POST /api/items
└─┬─┘ └───┬───┘
method path as the spec declares itWhere a spec does declare an operationId, that value wins.
Specs
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:
uvx mcp-openapix --refreshMCP resources
Resource URI | Description |
| Full body of a truncated |
| Equivalent curl command for a |
Both expire response_cache_ttl seconds after the call. The curl command may embed
a short-lived token.
Tokens at rest
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:
uvx mcp-openapix --logoutMCP host examples
{
"mcpServers": {
"openapi": { "command": "uvx", "args": ["mcp-openapix"] }
}
}[mcp_servers.openapi]
command = "uvx"
args = ["mcp-openapix"]Development
uv sync --extra dev
uv run ruff check .
uv run ruff format --check .
uv run pyright
uv run pytestAll 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.
License
MIT.
This server cannot be deployed
Maintenance
Related MCP Connectors
Connect AI agents to 1000+ apps with managed authentication and tool-calling.
Turn any task into the right API calls: discover, evaluate, and integrate public APIs.
Verified, pay-per-use API tools for AI agents through one authenticated connection.
- mcp-serverOAuthcom.make
Give your AI agents the tools to build, manage, and run automation workflows.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables agents to browse a catalog of OpenAPI specs, search for operations, and retrieve full operation contracts to build API requests without calling the target APIs.-
- AlicenseNot gradedqualityFmaintenanceProvides AI assistants with access to OpenAPI specifications, enabling API discovery, schema retrieval, and direct API execution with support for OAuth 2.0 and other authentication methods.4 npm1MIT
- AlicenseNot gradedqualityAmaintenanceEnables 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.7 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables MCP clients to call any OpenAPI-defined API by automatically converting its operations into tools, with built-in support for authentication, rate limiting, and response handling.7Apache 2.0