swagger
MCP server from gulbaki/swagger-mcp-server
claude mcp add --transport stdio gulbaki-swagger-mcp-server node build/index.js
How to use
This MCP server provides an explorer for Swagger/OpenAPI specifications. It offers tools to load API specs, inspect endpoints, and retrieve detailed operation information. Use load_api to import an OpenAPI/Swagger document by providing a unique apiId and a source URL or path. Once loaded, you can query endpoint details with get_endpoint_details, list all loaded APIs with list_apis, and search endpoints using a pattern with search_endpoints. The server also exposes handy resources under swagger://{apiId} to quickly access an API overview, a list of endpoints, or details for a specific endpoint. For Claude Desktop integration, you can point Claude at the built server and reference the recipe-like tool calls to interact with loaded APIs.
How to install
Prerequisites:
- Node.js (v14+ recommended) and npm
Steps:
- Clone or create the project directory
- Install dependencies:
npm install - Build the TypeScript code:
npm run build - Run the MCP server:
node build/index.js
Optional: if you publish or run via a different entry, ensure the path in mcp_config matches your runtime entry (e.g., build/index.js).
Additional notes
Tips and notes:
- The primary tools are load_api, get_endpoint_details, list_apis, and search_endpoints. Use load_api with apiId and source (URL or file path) to import a Swagger/OpenAPI spec.
- After loading, use get_endpoint_details with apiId, method, and path to fetch information about a specific endpoint. Set natural to true for a human-friendly summary.
- You can access a loaded API via swagger://{apiId}/* routes, such as swagger://{apiId}/load for overview, swagger://{apiId}/endpoints for a list, or swagger://{apiId}/endpoint/{method}/{path} for endpoint details.
- If you integrate with Claude Desktop, adjust claude_desktop_config.json to reference the built index.js path as shown in the README example.
- Ensure network access to the OpenAPI spec if you use a remote URL as the source; some servers may require CORS allowances or authentication depending on the source.
Related MCP Servers
iterm
A Model Context Protocol server that executes commands in the current iTerm session - useful for REPL and CLI assistance
mcp
Octopus Deploy Official MCP Server
furi
CLI & API for MCP management
editor
MCP Server for Phaser Editor
DoorDash
MCP server from JordanDalton/DoorDash-MCP-Server
mcp
MCP сервер для автоматического создания и развертывания приложений в Timeweb Cloud