mcp-openapi-schema
Integrations
Supports integration with Claude Desktop on Linux through configuration file located at ~/Library/Application Support/Claude/claude_desktop_config.json.
Supports integration with Claude Desktop on macOS through configuration file located at ~/Library/Application Support/Claude/claude_desktop_config.json.
Processes OpenAPI schema files in YAML format and presents schema information in YAML format for better LLM comprehension.
OpenAPI Schema Model Context Protocol Server
A Model Context Protocol (MCP) server that exposes OpenAPI schema information to Large Language Models (LLMs) like Claude. This server allows an LLM to explore and understand OpenAPI specifications through a set of specialized tools.
Features
- Load any OpenAPI schema file (JSON or YAML) specified via command line argument
- Explore API paths, operations, parameters, and schemas
- View detailed request and response schemas
- Look up component definitions and examples
- Search across the entire API specification
- Get responses in YAML format for better LLM comprehension
Usage
Command Line
Run the MCP server with a specific schema file:
Claude Desktop Integration
To use this MCP server with Claude Desktop, edit your claude_desktop_config.json
configuration file:
Location of the configuration file:
- macOS/Linux:
~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:
$env:AppData\Claude\claude_desktop_config.json
Claude Code Integration
To use this MCP server with Claude Code CLI, follow these steps:
- Add the OpenAPI Schema MCP server to Claude CodeCopy
- Verify the MCP server is registeredCopy
- Remove the server if neededCopy
- Use the tool in Claude CodeOnce configured, you can invoke the tool in your Claude Code session by asking questions about the OpenAPI schema.
Tips:
- Use the
-s
or--scope
flag withproject
(default) orglobal
to specify where the configuration is stored - Add multiple MCP servers for different APIs with different names
MCP Tools
The server provides the following tools for LLMs to interact with OpenAPI schemas:
list-endpoints
: Lists all API paths and their HTTP methods with summaries in a nested object structureget-endpoint
: Gets detailed information about a specific endpoint including parameters and responsesget-request-body
: Gets the request body schema for a specific endpoint and methodget-response-schema
: Gets the response schema for a specific endpoint, method, and status codeget-path-parameters
: Gets the parameters for a specific pathlist-components
: Lists all schema components (schemas, responses, parameters, etc.)get-component
: Gets detailed definition for a specific componentlist-security-schemes
: Lists all available security schemesget-examples
: Gets examples for a specific component or endpointsearch-schema
: Searches across paths, operations, and schemas
Examples
Example queries to try:
This server cannot be installed
A MCP server that exposes OpenAPI schema information to LLMs like Claude. This server allows an LLM to explore and understand large OpenAPI schemas through a set of specialized tools, without needing to load the whole schema into the context