Description
OpenAPI-MCP is a dockerized server that automatically converts Swagger/OpenAPI specifications into Model Context Protocol toolsets, enabling AI agents to interact with any API without additional coding. Built in Go, it handles both OpenAPI v2 and v3 formats, securely manages API keys, supports filtering operations by tags, and injects custom headers for authentication. The implementation features a robust connection manager for Server-Sent Events, JSON-RPC request handling, and dynamic request construction with parameter mapping. Particularly valuable for developers who want to quickly expose existing APIs to AI assistants like Cursor without writing custom MCP implementations for each service.
Installation
git clone https://github.com/ckanthony/openapi-mcp Claude Desktop Configuration
Add this configuration to your Claude Desktop config file to enable this MCP server:
Config file location: ~/Library/Application Support/Claude/claude_desktop_config.json
Config file location: %APPDATA%\Claude\claude_desktop_config.json
Config file location: ~/.config/Claude/claude_desktop_config.json
{
"mcpServers": {
"openapi-swagger-converter": {
"command": "node",
"args": [
"path/to/server.js"
]
}
}
}