Swagger/OpenAPI MCP Server is an MCP server that connects large language models directly to OpenAPI and Swagger specifications. Software engineers, technical writers, and API developers use this server to explore documentation, inspect request parameters, and understand REST service schemas through their AI assistants. Instead of manually parsing large JSON or YAML definitions, users can instruct their client to fetch specifications from local file paths or remote URLs. Once loaded, the server exposes operations to query endpoint details, inspect HTTP methods, review parameter formats, and search across available paths using regex or keyword patterns. It also exposes standard MCP resources for quick contextual lookups of loaded API catalogs. By providing structured access to API contracts, the server enables language models to write accurate client integration code, diagnose payload mismatches, and automate service documentation without exceeding context windows on massive raw specification files.
Category: AI & LLM Tooling
Tags: api-documentation, endpoints, openapi, rest, swagger
Visit Swagger/OpenAPI MCP Server
https://github.com/gulbaki/swagger-mcp-server 2. Open your terminal in the project directory and install dependencies: bash npm install 3. Build the TypeScript application: bash npm run build 4. Configure your MCP client (such as Claude Desktop) by adding the server to claude_desktop_config.json: json { "mcpServers": { "swagger-explorer": { "command": "node", "args": ["/path/to/your/swagger-mcp-server/build/index.js"] } } } Replace /path/to/your/swagger-mcp-server with the absolute path to the compiled project directory.Part of MCP Servers
Clone the repository from GitHub, run npm install to set up dependencies, and run npm run build to compile the TypeScript files. Finally, add the compiled index.js file path under the node command in your Claude Desktop configuration file.
The server enables LLMs to load OpenAPI or Swagger specifications from URLs or file paths, search endpoint routes by pattern, list all active APIs, and retrieve detailed method and parameter specifications for specific endpoints.
It works with Claude Desktop and any Model Context Protocol client supporting local stdio-based server processes running Node.js.
Yes, Swagger/OpenAPI MCP Server is open-source software distributed under the MIT License on GitHub.