MCP server providing token-efficient access to OpenAPI/Swagger specs via MCP Resources for client-side exploration.
https://github.com/kadykov/mcp-openapi-schema-explorerYou've been there: trying to discuss a complex API with Claude or another AI assistant, only to hit token limits when you paste in a 5,000-line OpenAPI specification. Or worse, getting incomplete responses because the AI can only see fragments of your API schema at once.
Most developers working with large APIs face a frustrating choice: either overwhelm your AI assistant with massive spec files (burning through tokens and hitting limits), or manually copy-paste fragments and lose the context between different endpoints and schemas.
Traditional approaches fall short:
The MCP OpenAPI Schema Explorer transforms how you work with API specifications in AI conversations. Instead of dumping entire files into context, it provides structured, on-demand access to exactly the parts of your OpenAPI spec you need.
# Instead of this massive context dump...
[Pasting 3,000 lines of OpenAPI spec]
# You get clean, targeted exploration
openapi://info # Just the API basics
openapi://paths/users%2F%7Bid%7D # Specific endpoint details
openapi://components/schemas/User # Exact schema you need
Token Efficiency: Query specific endpoints, schemas, or operations without loading irrelevant parts of the spec. Your AI conversations stay focused and cost-effective.
Contextual Understanding: The AI can explore relationships between endpoints and schemas dynamically, asking for exactly what it needs when it needs it.
Real-time Exploration: Working with remote APIs? Load specs directly from URLs and explore them interactively during your conversation.
Multiple Format Support: Get responses in JSON, YAML, or minified JSON depending on what works best for your current task.
API Integration Planning: "Show me all the user-related endpoints" → get a clean list, then drill into specific operations as needed.
Schema Understanding: "What does the User schema look like?" → get the exact schema definition with references transformed into explorable URIs.
Endpoint Analysis: Compare multiple HTTP methods on the same path without context clutter from unrelated endpoints.
Documentation Review: Navigate through large API specifications systematically, focusing on one section at a time.
Add this to your Claude Desktop or other MCP client configuration:
{
"mcpServers": {
"api-explorer": {
"command": "npx",
"args": [
"-y",
"mcp-openapi-schema-explorer@latest",
"https://petstore3.swagger.io/api/v3/openapi.json"
]
}
}
}
That's it. No installation, no setup. Your MCP client handles everything.
Remote APIs: Point directly to live API documentation URLs
Local Files: Reference specs on your filesystem
Legacy Swagger: Automatically converts v2.0 specs to OpenAPI v3.0
Multiple Specs: Configure different explorers for different APIs
The server supports both absolute local paths and remote HTTPS URLs, making it flexible for any development environment.
The resource system provides intelligent navigation:
$refs into clickable MCP URIsChoose the deployment method that fits your workflow:
Each method provides the same powerful exploration capabilities through your MCP client's interface.
This isn't just another API tool—it's a fundamental improvement to how you explore and understand APIs when working with AI assistants. Stop fighting token limits and start having productive conversations about your APIs.