OpenAPI Schema
Exposes OpenAPI schema information to Large Language Models (LLMs). The server loads OpenAPI schema files specified via command line.
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:
# Use the default openapi.yaml in current directory
npx -y mcp-openapi-schema
# Use a specific schema file (relative path)
npx -y mcp-openapi-schema ../petstore.json
# Use a specific schema file (absolute path)
npx -y mcp-openapi-schema /absolute/path/to/api-spec.yaml
# Show help
npx -y mcp-openapi-schema --help
Claude Desktop Integration
To use this MCP server with Claude Desktop, edit your claude_desktop_config.json configuration file:
{
"mcpServers": {
"OpenAPI Schema": {
"command": "npx",
"args": ["-y", "mcp-openapi-schema", "/ABSOLUTE/PATH/TO/openapi.yaml"]
}
}
}
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 Code
# Basic syntax claude mcp add openapi-schema npx -y mcp-openapi-schema # Example with specific schema claude mcp add petstore-api npx -y mcp-openapi-schema ~/Projects/petstore.yaml -
Verify the MCP server is registered
# List all configured servers claude mcp list # Get details for your OpenAPI schema server claude mcp get openapi-schema -
Remove the server if needed
claude mcp remove openapi-schema -
Use the tool in Claude Code
Once configured, you can invoke the tool in your Claude Code session by asking questions about the OpenAPI schema.
Tips:
- Use the
-sor--scopeflag withproject(default) orglobalto 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:
What endpoints are available in this API?
Show me the details for the POST /pets endpoint.
What parameters does the GET /pets/{petId} endpoint take?
What is the request body schema for creating a new pet?
What response will I get from the DELETE /pets/{petId} endpoint?
What schemas are defined in this API?
Show me the definition of the Pet schema.
What are the available security schemes for this API?
Are there any example responses for getting a pet by ID?
Search for anything related to "user" in this API.
Похожие серверы
Scout Monitoring MCP
спонсорPut performance and error data directly in the hands of your AI assistant.
Alpha Vantage MCP Server
спонсорAccess financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
Osquery MCP Server
An MCP server for Osquery that allows AI assistants to answer system diagnostic questions using natural language.
oyemi-mcp
MCP server for the Oyemi semantic lexicon. Provides deterministic word-to-code mapping and valence/sentiment analysis for AI agents like Claude, ChatGPT, and Gemini.
Praison AI
AI Agents framework with 64+ built-in MCP tools for search, memory, workflows, code execution, and file operations. Install via `uvx praisonai-mcp`
widemem.ai
Open-source AI memory layer with importance scoring, temporal decay, hierarchical memory, and YMYL prioritization
CC Token Saver
Use a local LLM for smaller or specialized tasks within Claude to save tokens.
MCP Performance Analysis Server
A server for detecting critical performance issues in code, providing concise analysis and output.
Azure DevOps
Integrate with Azure DevOps services to manage work items, repositories, and pipelines.
eBPF MCP
A secure MCP server for eBPF, designed for AI integration, kernel introspection, and automation.
Interactive Feedback MCP
An MCP server for interactive user feedback and command execution in AI-assisted development.
ucn
Universal Code Navigator - a lightweight MCP server that gives AI agents call-graph-level understanding of code. Instead of reading entire files, agents ask structural questions like: "who calls this function", "what breaks if I change it", "what's unused", and get precise, AST-verified answers. UCN parses JS/TS, Python, Go, Rust, Java, and HTML inline scripts with tree-sitter, then exposes 28 navigation commands as a CLI tool, MCP server, or agent skill.