OpenAPI Server
A Model Context Protocol server that loads multiple OpenAPI specifications and exposes them to LLM-powered IDE integrations, enabling AI to understand and work with your APIs directly in development tools like Cursor.
What is OpenAPI Server?
OpenAPI Server is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to model context protocol server that loads multiple openapi specifications and exposes them to llm-powered ide integrations, enabling ai to understand and work with your apis directly in development too...
A Model Context Protocol server that loads multiple OpenAPI specifications and exposes them to LLM-powered IDE integrations, enabling AI to understand and work with your APIs directly in development tools like Cursor.
This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- A Model Context Protocol server that loads multiple OpenAPI
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx mcp-openapi-serverConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use OpenAPI Server
The ReAPI MCP OpenAPI server loads multiple OpenAPI specifications from a local directory and exposes them to LLM-powered IDE integrations as searchable, queryable tools. Instead of pasting raw JSON specs into the chat context, the AI can search operations by description, look up schemas by name, and load individual endpoint details on demand — keeping context usage low while giving full API awareness. It is designed for development workflows in Cursor, Cline, and similar AI-powered coding tools.
Prerequisites
- Node.js 18 or later installed (for npx execution)
- One or more OpenAPI specification files (JSON or YAML) available locally
- An MCP-compatible client such as Cursor or Cline
- No API key required — the server reads local files only
Prepare your OpenAPI specification files
Collect your OpenAPI spec files (JSON or YAML) into a directory, for example ./specs. Optionally add an x-spec-id field to each spec's info object to give it a stable identifier for filtering.
mkdir -p ./specs
# Copy your spec files:
cp my-api.yaml ./specs/
cp another-api.json ./specs/Run the MCP OpenAPI server
Start the server pointing at your specs directory. The --dir flag tells it where to look for OpenAPI files.
npx -y @reapi/mcp-openapi@latest --dir ./specsConfigure your MCP client
Add the server to your Cursor or Cline MCP configuration file. Use a project-level .cursor/mcp.json for per-project API access, or ~/.cursor/mcp.json for global access.
Verify the API catalog loads
Ask your AI assistant to get the API catalog. It should list all loaded specs with their metadata and operation counts.
Search and use API operations
The server exposes 7 tools for working with your APIs: get-api-catalog, search-api-operations, search-api-schemas, load-api-operation-by-operationId, load-api-operation-by-path-and-method, load-api-schema-by-schemaName, and refresh-api-catalog.
OpenAPI Server Examples
Client configuration
Add the ReAPI MCP OpenAPI server to Cursor's project-level MCP config, pointing to a local specs directory.
{
"mcpServers": {
"openapi": {
"command": "npx",
"args": ["-y", "@reapi/mcp-openapi@latest", "--dir", "./specs"]
}
}
}Prompts to try
Example prompts showing how to interact with loaded OpenAPI specs through your AI client.
- "Show me all available APIs in the catalog with their operations"
- "Find all endpoints related to user authentication"
- "Generate an Axios TypeScript client for the create-user API operation"
- "Create TypeScript interfaces for all response schemas in the orders API"
- "Generate mock data matching the Product schema from the catalog"Troubleshooting OpenAPI Server
No specs appear in the API catalog after starting the server
Check that the --dir path points to a directory containing valid JSON or YAML OpenAPI files. Run the npx command manually in a terminal and look for parse errors. YAML files must have a .yaml or .yml extension.
Search returns results from the wrong spec when multiple specs are loaded
Add an x-spec-id field to the info object of each OpenAPI file, then pass the specId parameter when calling search-api-operations or search-api-schemas to scope the search to a single spec.
The server starts but the MCP client shows 0 tools available
Ensure you are using @reapi/mcp-openapi@latest, not an older package name. Run 'npx -y @reapi/mcp-openapi@latest --help' to confirm the package resolves correctly, then restart the client.
Frequently Asked Questions about OpenAPI Server
What is OpenAPI Server?
OpenAPI Server is a Model Context Protocol (MCP) server that model context protocol server that loads multiple openapi specifications and exposes them to llm-powered ide integrations, enabling ai to understand and work with your apis directly in development tools like cursor. It connects AI assistants to external tools and data sources through a standardized interface.
How do I install OpenAPI Server?
Follow the installation instructions on the OpenAPI Server GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with OpenAPI Server?
OpenAPI Server works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is OpenAPI Server free to use?
Yes, OpenAPI Server is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.
OpenAPI Server Alternatives — Similar Developer Tools Servers
Looking for alternatives to OpenAPI Server? Here are other popular developer tools servers you can use with Claude, Cursor, and VS Code.
Ecc
★ 188.2kThe agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Javaguide
★ 155.8kJava 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发
Gemini CLI
★ 104.5kA secure MCP server that wraps the Google Gemini CLI, allowing clients to query Gemini models using local OAuth sessions without requiring an API key. It provides tools for model interaction and diagnostics with built-in protection against command in
Awesome MCP Servers
★ 87.3k⭐ Curated list of Model Context Protocol (MCP) servers - tools that extend Claude Desktop, Cursor, Windsurf, and other MCP clients with custom capabilities.
MCP Servers
★ 86.0kModel Context Protocol Servers
CC Switch
★ 77.5kA cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Gemini CLI & Hermes Agent. Only official website: ccswitch.io
Browse More Developer Tools MCP Servers
Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up OpenAPI Server in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use OpenAPI Server?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.