OpenAPI MCP Gateway
This MCP server exposes a Petstore-style API for managing pets, orders, and users through tool calls.
Create, update, search, fetch, and delete pets, including uploading pet images.
Query pet inventory counts by status.
Place, retrieve, and delete purchase orders.
Create users individually or in bulk, log in/out, and fetch, update, or delete users by username.
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., "@OpenAPI MCP Gateway mount Petstore API from https://petstore3.swagger.io/api/v3/openapi.json"
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.
Mount any OpenAPI spec as a Model Context Protocol (MCP) server from one YAML file, with no code to write. Fine-grained access control decides who may call each operation and which values the model may send, and dynamic exposure keeps an API of any size within the model's context. One process runs several APIs, each with its own endpoint and auth.
With uv installed, one command serves PokéAPI:
uvx openapi-mcp-gateway serve --spec https://pokeapi.co/openapi.yml --name pokeapiThen connect any MCP client, such as Claude Code, Cursor or VS Code, to http://127.0.0.1:8000/pokeapi/mcp. Getting Started continues from there to a config file with several APIs.
Highlights
Most OpenAPI-to-MCP tools turn every operation into a tool. The gateway also decides what the model sees, what it may send and who may call it.
Context Efficiency: dynamic exposure serves an API of any size as three tools that search, describe and call its operations, instead of one tool per operation loaded into the model's context.
Deterministic Guardrails: pinned, hidden and enum-limited parameters bound which resources the model can reach, enforced by the gateway rather than the prompt.
Fine-Grained Access Control: per-user OAuth and per-operation scopes decide which tools each client can list and call.
One Gateway for Many APIs: one YAML file serves several OpenAPI specs, each at its own MCP endpoint with its own auth.
Related MCP server: FastMCP OpenAPI
Architecture
Each tool call is authorized, shaped and sent upstream, and its response is reshaped on the way back.
Documentation
See the documentation for the guides, concepts, reference and evaluation.
License
Available Tools
19 toolsadd_petAdd a new pet to the store.D
Add a new pet to the store.
Inputs: name (required), photoUrls (required), id, tags, +2 more.
create_userCreate user.B
This can only be done by the logged in user.
Inputs: id, email, phone, lastName, +4 more.
create_users_with_list_inputCreates list of users with given input array.C
Creates list of users with given input array.
Inputs: no named parameters.
delete_orderDelete purchase order by identifier.ADestructiveIdempotent
For valid response try integer IDs with value < 1000. Anything above 1000 or non-integers will generate API errors.
Inputs: orderId (required).
delete_petDeletes a pet.DDestructiveIdempotent
Delete a pet.
Inputs: petId (required), api_key.
delete_userDelete user resource.BDestructiveIdempotent
This can only be done by the logged in user.
Inputs: username (required).
find_pets_by_statusFinds Pets by status.ARead-onlyIdempotent
Multiple status values can be provided with comma separated strings.
Inputs: status (required).
find_pets_by_tagsFinds Pets by tags.BRead-onlyIdempotent
Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
Inputs: tags (required).
get_inventoryReturns pet inventories by status.ARead-onlyIdempotent
Returns a map of status codes to quantities.
Inputs: no named parameters.
get_order_by_idFind purchase order by ID.BRead-onlyIdempotent
For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions.
Inputs: orderId (required).
get_pet_by_idFind pet by ID.CRead-onlyIdempotent
Returns a single pet.
Inputs: petId (required).
get_user_by_nameGet user by user name.ARead-onlyIdempotent
Get user detail based on username.
Inputs: username (required).
login_userLogs user into the system.CRead-onlyIdempotent
Log into the system.
Inputs: password, username.
logout_userLogs out current logged in user session.BRead-onlyIdempotent
Log user out of the system.
Inputs: no named parameters.
place_orderPlace an order for a pet.C
Place a new order in the store.
Inputs: id, petId, status, complete, +2 more.
update_petUpdate an existing pet.CIdempotent
Update an existing pet by Id.
Inputs: name (required), photoUrls (required), id, tags, +2 more.
update_pet_with_formUpdates a pet in the store with form data.C
Updates a pet resource based on the form data.
Inputs: petId (required), name, status.
update_userUpdate user resource.DIdempotent
This can only be done by the logged in user.
Inputs: username (required), id, email, phone, +4 more.
upload_fileUploads an image.C
Upload image of the pet.
Inputs: petId (required), additionalMetadata.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 19 tools
Tools are generally distinct per resource and action, but update_pet and update_pet_with_form could confuse agents expecting a single update path. Similarly, create_user vs create_users_with_list_input are similar in purpose though descriptions clarify the difference.
All tool names follow a consistent snake_case verb_noun pattern (e.g., get_pet_by_id, delete_order, create_user). There is minor variation in verbs like add vs create, but the pattern remains predictable throughout.
19 tools is well-scoped for a pet store API covering pets, users, and orders. Each tool serves a clear purpose without redundancy, and the count is within the typical range for a domain-specific server.
The toolset provides solid CRUD coverage for pets, users, and orders, including listing/filtering and file upload. Minor gaps exist—for example, no update order and no way to list all users or all pets generically—but core workflows are covered.
Maintenance
Related MCP Connectors
Host any HTTP API as a standard MCP server; auto-distribute to 12+ mainstream agent platforms.
Generate a typed SDK, CLI, and MCP server from any OpenAPI or GraphQL spec, and keep them current.
Deterministic OpenAPI 3.x SemVer diff, SPF 10-lookup flattener & WCAG 2.2 / EN 301 549 MCP server.
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceGenerate an MCP server for any OpenAPI documented endpoint.337MIT
- AlicenseNot gradedqualityDmaintenanceDynamically generates MCP tools from OpenAPI specifications, enabling AI assistants to interact with any REST API through natural language. Supports multiple APIs with authentication, parameter validation, and integration with Claude Desktop and LangChain.1MIT
- AlicenseAqualityNot gradedmaintenanceA generic MCP server that dynamically exposes any OpenAPI-documented REST API to LLMs by auto-discovering endpoints. It provides tools for exploring API capabilities and making authenticated requests directly through natural language interfaces.211 npmMIT
- FlicenseNot gradedqualityDmaintenanceDynamically creates an MCP server from any OpenAPI schema, enabling seamless integration with tools like Prompteus and Claude.4-