openapi-mcp-server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
openapi-mcp-server
Universal OpenAPI/Swagger → MCP server. 3 meta-tools instead of 300+ — keeps your LLM context clean.
Works with any API that has an OpenAPI 3.x or Swagger 2.0 spec.
Why?
Existing solutions either:
Generate 300+ MCP tools from a single spec (destroys LLM context)
Don't actually call the API (read-only)
Crash on recursive
$refor Swagger 2.0Require Python/Docker/Go runtime
This server gives you 3 tools that let the LLM explore and call any API:
Tool | Purpose |
| Browse endpoints with filters (by path, method, tag) |
| Get detailed params, request body, and response schema |
| Make real HTTP calls with auth |
Related MCP server: Swagger/Postman MCP Server
Quick Start
Download binary (zero deps, single file)
Download from Releases:
Platform | Binary |
Linux x64 |
|
Linux ARM64 |
|
macOS x64 |
|
macOS ARM64 (Apple Silicon) |
|
Windows x64 |
|
# Download the binary for your platform (replace the filename as needed)
# Linux x64:
curl -L -o openapi-mcp https://github.com/gridmint/openapi-mcp-server/releases/latest/download/openapi-mcp-linux-x64
# macOS Apple Silicon:
# curl -L -o openapi-mcp https://github.com/gridmint/openapi-mcp-server/releases/latest/download/openapi-mcp-darwin-arm64
chmod +x openapi-mcp
./openapi-mcp --spec https://petstore3.swagger.io/api/v3/openapi.jsonBuild from source
git clone https://github.com/gridmint/openapi-mcp-server.git
cd openapi-mcp-server
bun install && bun run compile
./openapi-mcp --spec https://gitea.example.com/swagger.v1.json --auth bearer:TOKENUsage with Claude Desktop
{
"mcpServers": {
"petstore": {
"command": "/path/to/openapi-mcp",
"args": [
"--spec", "https://petstore3.swagger.io/api/v3/openapi.json"
]
}
}
}With authentication
{
"mcpServers": {
"gitea": {
"command": "/path/to/openapi-mcp",
"args": [
"--spec", "https://gitea.example.com/swagger.v1.json",
"--base-url", "https://gitea.example.com/api/v1",
"--auth", "bearer:YOUR_TOKEN"
]
}
}
}With endpoint filtering
{
"mcpServers": {
"gitea-repos": {
"command": "/path/to/openapi-mcp",
"args": [
"--spec", "https://gitea.example.com/swagger.v1.json",
"--auth", "bearer:YOUR_TOKEN",
"--include", "repos/*",
"--exclude", "admin/*"
]
}
}
}CLI Options
openapi-mcp --spec <url-or-path> [options]
Options:
--spec <url|path> OpenAPI 3.x or Swagger 2.0 spec, JSON or YAML (required)
--base-url <url> Override API base URL from spec
--auth <credentials> Authentication (see below)
--include <pattern> Include only matching paths (glob, repeatable)
--exclude <pattern> Exclude matching paths (glob, repeatable)
--page-size <n> Endpoints per page (default: 20)
--transport <type> Transport: stdio (default) or http
--port <n> HTTP port (default: 3000, only with --transport http)Authentication formats
--auth bearer:TOKEN
--auth basic:username:password
--auth apikey:header:X-API-Key:your-key
--auth apikey:query:api_key:your-keyEnvironment variables
OPENAPI_SPEC_URL=https://api.example.com/openapi.json
OPENAPI_BASE_URL=https://api.example.com/v1
OPENAPI_AUTH=bearer:your-tokenHTTP transport
For web-based MCP clients, use the HTTP transport:
openapi-mcp --spec https://petstore3.swagger.io/api/v3/openapi.json --transport http --port 8080
# MCP server started on http://localhost:8080/mcpFeatures
✅ 3 meta-tools —
list_endpoints,get_schema,invoke✅ Swagger 2.0 + OpenAPI 3.x — auto-detected
✅ JSON + YAML specs — detected by content, not file extension
✅ Recursive
$refresolution — with cycle detection (no crashes)✅ Real HTTP calls — not just spec reading
✅ Bearer / Basic / API Key auth (header and query)
✅ Endpoint filtering —
--include/--excludewith glob patterns✅ Pagination — large APIs stay manageable
✅ Single binary —
bun build --compile(zero runtime deps)✅ stdio + HTTP transports — standard MCP protocol
How It Works
Instead of creating one MCP tool per API endpoint (which can flood the LLM with 300+ tools), this server exposes just 3 tools:
LLM calls
list_endpoints→ sees available endpoints, filters by tag/method/pathLLM calls
get_schema→ reads parameters, request body, response formatLLM calls
invoke→ makes the actual API call
This keeps the tool list tiny while giving full API access.
Development
bun install
bun run dev --spec ./my-spec.json # Watch mode
bun run build # Build to dist/
bun run compile # Compile to single binary
bun run lint # Biome lint
bun test # Run testsTech Stack
Runtime: Bun
Language: TypeScript
Linter/Formatter: Biome
MCP SDK: @modelcontextprotocol/sdk
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Turn any task into the right API calls: discover, evaluate, and integrate public APIs.
Point Gecko at an OpenAPI spec; get first-call-correct, auth-hidden agent tools.
Verified, pay-per-use API tools for AI agents through one authenticated connection.
Discover, compare, route, and execute machine-accessible capabilities for AI agents.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables LLMs to explore and query OpenAPI specifications, allowing natural language interaction with API endpoints, parameters, request bodies, and response schemas from any OpenAPI 3.x spec.13 npmMIT
- FlicenseNot gradedqualityNot gradedmaintenanceEnables AI agents to dynamically discover and interact with APIs through Swagger/OpenAPI specifications and Postman collections using a strategic four-tool approach. It streamlines API integration by providing universal tools for endpoint discovery, detailed request information, and authenticated execution.1-
- FlicenseNot gradedqualityDmaintenanceTurns any OpenAPI/Swagger spec into queryable tools for LLMs, enabling endpoint search, detail retrieval, and schema exploration.1-
- FlicenseAqualityDmaintenanceEnables LLMs to dereference and query OpenAPI/Swagger specifications, search endpoints and schemas, validate payloads, extract security schemes, and generate production-ready integration code in multiple languages.8-