OpenAPI Server

v1.0.0Developer Toolsstable

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.

clinecursormcp-serveropenapiswagger
Share:
86
Stars
0
Downloads
0
Weekly
0/5

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

Load multiple OpenAPI specs and expose them to IDE integrations.
Use APIs directly in Cursor with AI assistance.
ReAPI-com

Maintainer

LicenseMIT License
Languagetypescript
Versionv1.0.0
UpdatedMay 5, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx mcp-openapi-server

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

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
1

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/
2

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 ./specs
3

Configure 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.

4

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.

5

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.

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.

Quick Config Preview

{ "mcpServers": { "mcp-openapi-server": { "command": "npx", "args": ["-y", "mcp-openapi-server"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

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.

33,000+ ServersFree & Open SourceStep-by-Step Guides