What is @reapi/mcp-openapi?
@reapi/mcp-openapi is a Model Context Protocol (MCP) server designed to load and serve multiple OpenAPI specifications, facilitating LLM-powered IDE integrations. It acts as a bridge between OpenAPI specifications and development tools like Cursor.
How to use @reapi/mcp-openapi?
To use the MCP OpenAPI server, configure it in your Cursor IDE by creating a .cursor/mcp.json file in your project directory or a global configuration in your home directory. After configuration, enable the server in Cursor settings and refresh the API catalog to start using it.
Key features of @reapi/mcp-openapi?
- Loads multiple OpenAPI specifications from a directory.
- Exposes API operations and schemas through the MCP protocol.
- Supports dereferenced schemas for complete API context.
- Maintains a catalog of all available APIs.
Use cases of @reapi/mcp-openapi?
- Integrating OpenAPI specifications into LLM-powered development environments.
- Assisting developers with intelligent code completion and API integration.
- Generating API-aware code snippets and documentation.
FAQ from @reapi/mcp-openapi?
-
Can I use this server with any OpenAPI version?
Yes, it supports OpenAPI 3.x specifications in both JSON and YAML formats. -
Is there a way to manage multiple specifications?
Yes, you can organize specifications by project to manage context limits effectively. -
How do I refresh the API catalog?
You can refresh it by using the chat panel in Cursor and typing prompts like "Please refresh the API catalog".