mcp-openapi-query
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-openapi-querylist all paths in the OpenAPI spec"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-openapi-query
A FastMCP server for navigating and querying OpenAPI specifications. Connect any MCP-compatible AI application to this server so it can explore API schemas, resolve $ref pointers, and inspect paths and operations without reading an entire spec file at once.
MCP (Model Context Protocol) is an open standard that lets AI assistants call external tools and services. This server implements MCP over HTTP so any MCP-compatible AI application can reach it.
Prerequisites
Docker — for the Docker Compose deployment path
uv — for the source deployment path (see Installing uv)
Related MCP server: mcp-swagger-schema
Quick Start
Option A — Docker Compose
Create a
docker-compose.yml:services: mcp-openapi-query: image: sesopenko/mcp-openapi-query:latest ports: - "8080:8080" volumes: - ./config.toml:/config/config.toml:ro restart: unless-stoppedCopy the example config and edit it:
cp config.toml.example config.tomlStart the server:
docker compose up -d
Option B — Run from Source
Install uv if you haven't already.
Install dependencies:
uv syncCopy the example config and edit it:
cp config.toml.example config.tomlStart the server:
uv run python -m mcp_openapi_query
Security
This server has no authentication on its MCP endpoint. It is designed for LAN use only.
Do not expose this server directly to the internet.
If you need to access it remotely, place it behind a reverse proxy that handles TLS termination and access control. Configuring a reverse proxy is outside the scope of this project.
Configuration
Create a config.toml in the working directory (or pass --config <path>):
[server]
host = "0.0.0.0"
port = 8080
[logging]
level = "info"[server]
Key | Default | Description |
|
| Address the MCP server listens on. |
|
| Port the MCP server listens on. |
[logging]
Key | Default | Description |
|
| Log verbosity. One of: |
Connecting an AI Application
This server uses the Streamable HTTP MCP transport. Clients communicate via HTTP POST with streaming responses — opening the endpoint in a browser will return a Not Acceptable error, which is expected.
Point your MCP-compatible AI application at the server's MCP endpoint:
http://<host>:<port>/mcpFor example, if the server is running on 192.168.1.10 with the default port:
http://192.168.1.10:8080/mcpConsult your AI application's documentation for how to register an MCP server. Ensure it supports the Streamable HTTP transport (most modern MCP clients do).
Using with Claude Code
1. Start the server
Create a docker-compose.yml and a minimal config.toml, then start the server:
services:
mcp-openapi-query:
image: sesopenko/mcp-openapi-query:latest
ports:
- "8080:8080"
volumes:
- ./config.toml:/config/config.toml:ro
restart: unless-stopped[server]
host = "0.0.0.0"
port = 8080
[logging]
level = "info"docker compose up -d2. Register the MCP server in Claude Code
Add the server to your project's MCP configuration. Run this from your project root:
claude mcp add --transport http openapi-query http://localhost:8080/mcpOr add it manually to .claude/settings.json in your project:
{
"mcpServers": {
"openapi-query": {
"type": "http",
"url": "http://localhost:8080/mcp"
}
}
}3. Verify the connection
In a Claude Code session, run:
/mcpThe openapi-query server should appear as connected. You can also call health_check directly to confirm the server is reachable.
Available Tools
Tool | Description |
| Returns |
| List all path keys defined in an OpenAPI specification, each with an optional description when present in the Path Item. |
| Return the full Path Item object for a specific path. |
| Return the Operation object for a specific HTTP method and path. |
| Return the specification format version string (e.g. |
| List all |
| Return a named schema object from |
| List all |
| Resolve an internal |
Running Tests
uv run pytest tests/unit/Contributing / Maintaining
See MAINTAINERS.md for setup, development commands, AI agent rails, and how to run tests.
License
Copyright (c) Sean Esopenko 2026
This project is licensed under the GNU General Public License v3.0.
Acknowledgement: Riding on the Backs of Giants
This project was built with the assistance of Claude Code, an AI coding assistant developed by Anthropic.
AI assistants like Claude are trained on enormous amounts of data — much of it written by the open-source community: the libraries, tools, documentation, and decades of shared knowledge that developers have contributed freely. Without that foundation, tools like this would not be possible.
In recognition of that debt, this project is released under the GNU General Public License v3.0. The GPL ensures that this code — and any derivative work — remains open source. It is a small act of reciprocity: giving back to the commons that made it possible.
To every developer who ever pushed a commit to a public repo, wrote a Stack Overflow answer, or published a package under an open license — thank you.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityDmaintenanceAn MCP server that provides tools for exploring large OpenAPI schemas without loading entire schemas into LLM context. Perfect for discovering and analyzing endpoints, data models, and API structure efficiently.914MIT
- AlicenseBqualityDmaintenanceAn MCP server that allows users to query and retrieve request and response JSON schemas directly from Swagger/OpenAPI specifications. It supports automatic reference resolution and path parameter matching to help AI models interact with API interfaces.116MIT
- AlicenseAqualityAmaintenanceMCP server that helps AI agents explore OpenAPI specs, search endpoints, and generate TypeScript types.74410MIT
- Flicense-qualityDmaintenanceAn MCP server that enables AI agents to explore, search, and query API definitions from OpenAPI/Swagger JSON files.
Related MCP Connectors
MCP server for AI access to Swagger by SmartBear.
MCP server for AI access to SmartBear tools, including BugSnag, Reflect, Swagger, PactFlow, QTM4J.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/sesopenko/mcp-openapi-query'
If you have feedback or need assistance with the MCP directory API, please join our Discord server