mcp-openapi
by ReAPI-com·★ 86·Score 41
MCP server that loads and serves OpenAPI specifications to enable LLM-powered API integrations in IDEs.
Overview
@reapi/mcp-openapi is a Model Context Protocol server that bridges OpenAPI specifications with LLM-powered development environments. It loads multiple OpenAPI files from a directory, dereferences schemas for complete context, and exposes API operations through MCP. The server enables intelligent code completion, API-aware code generation, and integration assistance in tools like Cursor IDE.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose this server when working with multiple OpenAPI specs and need LLM integration in your IDE for API documentation, client generation, or schema understanding.
When NOT to choose this
Don't choose this if you need real-time API mocking or testing capabilities, as this server focuses on static API documentation and schema information.
Tools this server exposes
7 tools extracted from the READMErefresh-api-catalogRefresh the API catalog
get-api-catalogGet the complete API catalog with all specifications, operations, and schemas
search-api-operationsSearch for API operations across specifications
search-api-schemasSearch for schemas across specifications
load-api-operation-by-operationIdLoad an API operation by operation ID
load-api-operation-by-path-and-methodLoad an API operation by path and HTTP method
load-api-schema-by-schemaNameLoad an API schema by schema name
Comparable tools
Installation
Install the MCP server using npm:
npm install -g @reapi/mcp-openapiConfigure in Cursor IDE by creating .cursor/mcp.json:
{
"mcpServers": {
"@reapi/mcp-openapi": {
"command": "npx",
"args": ["-y", "@reapi/mcp-openapi@latest", "--dir", "./specs"],
"env": {}
}
}
}Place your OpenAPI specifications in the ./specs directory and enable the server in Cursor Settings > MCP.
FAQ
- What OpenAPI versions are supported?
- The server supports OpenAPI 3.x specifications in both JSON and YAML formats with .json, .yaml, or .yml extensions.
- How do I handle multiple API specs with similar paths?
- Use the 'x-spec-id' field in your OpenAPI info object to assign custom IDs to your specifications, which helps distinguish between similar resources.
On Hacker News
Recent discussion from the developer community.
- Story by peisong · 2025-03-30
Compare mcp-openapi with
Last updated · Auto-generated from public README + GitHub signals.