openapi-fetch-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
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
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Generate a typed SDK, CLI, and MCP server from any OpenAPI or GraphQL spec, and keep them current.
A registry of AI agent tools — MCP servers, APIs, CLIs, SDKs — kept current by automated ingestion.
The OpenRouter for tools. One MCP connection gives any AI agent 254 hosted tools, pay per call.
Point Gecko at an OpenAPI spec; get first-call-correct, auth-hidden agent tools.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA 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.8 npm7MIT

cod-api MCP Serverofficial
AlicenseNot gradedqualityDmaintenanceExposes REST API endpoints defined in an OpenAPI Specification as MCP tools, allowing AI models to call them via the ModelContext Protocol.MIT- AlicenseNot gradedqualityDmaintenanceExposes OpenAPI endpoints as MCP tools, enabling LLMs to discover and interact with REST APIs through the MCP protocol.33 npmMIT
- FlicenseNot gradedqualityDmaintenanceAn MCP server that dynamically reads OpenAPI specs and registers every endpoint as an LLM-callable tool with automatic change detection and hot reload.1-