openapi-mcp
Click on "Install 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-mcpload the petstore openapi spec and list the available endpoints"
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.
openapi-mcp
Point it at an OpenAPI 3.x document and get an MCP server that exposes the API's endpoints as typed, validated tools for Claude or any MCP client.
pip install -e .
OPENAPI_SPEC=./openapi.json \
OPENAPI_AUTH_KIND=bearer OPENAPI_AUTH_VALUE=$TOKEN \
python -m openapi_mcpEach operation in the spec becomes one tool. Parameter schemas come from the spec itself, so the model sees real types and required fields instead of a free-text prompt.
Design choices
The model cannot call the API wrongly. Every parameter carries its real JSON Schema, required fields are marked required, and unknown arguments are rejected rather than silently dropped. A tool that quietly ignores an argument is worse than one that errors, because the model believes it worked.
Errors are written for a model, not a human with a debugger. An AI client cannot read a stack trace, but it can read "404, the user id does not exist". Failures come back as short factual sentences naming the status and the API's own message. Secrets never appear in them.
The whole test suite runs offline. Transport is injected behind a Protocol, so tests run against a fake with no network and no cassettes.
PYTHONPATH=src python -m pytest tests/ -qCredentials are environment-only. Command line arguments end up in shell history and in
psoutput; environment variables do not.
Related MCP server: OpenAPI to MCP Server
Auth
OPENAPI_AUTH_KIND is one of none, bearer, header, or query, with
OPENAPI_AUTH_VALUE and (for header/query) OPENAPI_AUTH_NAME.
Scope, stated plainly
This handles the OpenAPI subset that real-world REST APIs actually use: local
$ref, path, query and header parameters, JSON request bodies. It does not
resolve remote or URL $ref, and it does not attempt full JSON Schema
composition (allOf and oneOf pass through as-is). Unsupported input raises,
it never silently degrades. Cookie parameters are parsed but rejected at tool
build time, because sending cookies on a machine-driven call is a footgun.
Claude Desktop config
{
"mcpServers": {
"my-api": {
"command": "python",
"args": ["-m", "openapi_mcp"],
"env": {
"OPENAPI_SPEC": "/path/to/openapi.json",
"OPENAPI_AUTH_KIND": "bearer",
"OPENAPI_AUTH_VALUE": "your-test-token"
}
}
}
}MIT licensed. Built and maintained by lumenpike.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityFmaintenanceA MCP server that exposes OpenAPI schema information to LLMs like Claude. This server allows an LLM to explore and understand large OpenAPI schemas through a set of specialized tools, without needing to load the whole schema into the contextLast updated16050MIT
- Flicense-qualityDmaintenanceAutomatically converts any OpenAPI specification into an MCP server, exposing all HTTP endpoints as callable tools with support for various authentication methods and request types.Last updated2
- Flicense-qualityDmaintenanceDynamically creates an MCP server from any OpenAPI schema, enabling seamless integration with tools like Prompteus and Claude.Last updated4
- Alicense-qualityDmaintenanceConverts any OpenAPI/Swagger spec into an MCP server, exposing REST API endpoints as tools for Claude.Last updatedMIT
Related MCP Connectors
Point Gecko at an OpenAPI spec; get first-call-correct, auth-hidden agent tools.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
MCP server providing access to the Scorecard API to evaluate and optimize LLM systems.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/xulkrnan/openapi-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server