openapi-fetch-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-fetch-mcpget information about Pokemon #25"
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-fetch-mcp
A CLI tool to register OpenAPI endpoints as Model Context Protocol (MCP) tools. You can make API requests through an MCP client such as Cursor.
https://github.com/user-attachments/assets/b8f7e7f9-ca8f-475a-84fc-609e03c7ae96
Features
Fetches OpenAPI YAML from a URL or local file (Currently, only YAML format is supported)
Registers each GET endpoint as an MCP tool (This library only supports GET requests for safety reasons)
Supports custom headers and environment variable configuration
Related MCP server: cod-api MCP Server
Cursor MCP setting
When using a local OpenAPI spec
"openapi-fetch-mcp": {
"command": "npx",
"args": ["openapi-fetch-mcp"],
"env": {
"API_URL": "https://your-api-url.com",
"CUSTOM_HEADERS": "{\"X-Your-Api-Key\":\"xxxxxxxxx\"}",
"OPENAPI_FILE_PATH": "/FULL_PATH_TO_OPEN_API_YAML_FILE"
}
}When using a remote OpenAPI spec
"openapi-fetch-mcp": {
"command": "npx",
"args": ["openapi-fetch-mcp"],
"env": {
"API_URL": "https://your-api-url.com",
"CUSTOM_HEADERS": "{\"X-Your-Api-Key\":\"xxxxxxxxx\"}",
"OPENAPI_URL": "https://your-open-api-url.com"
}
}Environment Variables
OPENAPI_URL: URL to the OpenAPI YAML file (optional if usingOPENAPI_FILE_PATH)OPENAPI_FILE_PATH: Path to the local OpenAPI YAML file (optional if usingOPENAPI_URL)API_URL: Base URL for the API serverCUSTOM_HEADERS: (optional) JSON string for custom headers, e.g. '{"Authorization":"Bearer ..."}'
Example (Using PokeAPI)
"openapi-fetch-mcp": {
"command": "npx",
"args": ["openapi-fetch-mcp"],
"env": {
"OPENAPI_URL": "https://raw.githubusercontent.com/PokeAPI/pokeapi/refs/heads/master/openapi.yml",
"API_URL": "https://pokeapi.co"
}
}License
MIT
Author
makomori
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-qualityCmaintenanceA command-line tool that transforms any OpenAPI service into a Model Context Protocol (MCP) server, enabling seamless integration with AI agents and tools that support the MCP specification.167MIT

cod-api MCP Serverofficial
Flicense-qualityDmaintenanceExposes REST API endpoints defined in an OpenAPI Specification as MCP tools, allowing AI models to call them via the ModelContext Protocol.- Alicense-qualityDmaintenanceExposes OpenAPI endpoints as MCP tools, enabling LLMs to discover and interact with REST APIs through the MCP protocol.13MIT
- Flicense-qualityDmaintenanceDynamically exposes any OpenAPI/Swagger API as tools for AI assistants, automatically generating MCP tools from OpenAPI specs with authentication support.
Related MCP Connectors
Point Gecko at an OpenAPI spec; get first-call-correct, auth-hidden agent tools.
Hosted MCP endpoint with realistic fake data for prototyping agents. 12 tools, no setup.
MCP server for Pentest-Tools.com: run scans, manage findings and reports via your preffered LLM.
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/makomori/openapi-fetch-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server