bbonnin/openapi-to-mcp
OpenApiMCPServer is an MCP server that automatically converts any OpenAPI/Swagger specification into a set of usable MCP tools
Platform-specific configuration:
{
"mcpServers": {
"openapi-to-mcp": {
"command": "npx",
"args": [
"-y",
"openapi-to-mcp"
]
}
}
}Add the config above to .claude/settings.json under the mcpServers key.
> OpenApiMCPServer is an MCP server that automatically converts any OpenAPI/Swagger specification into a set of usable MCP tools.
It analyzes all API endpoints, generates structured tool definitions, and routes tool calls to the underlying REST API. This allows AI agents to interact with any OpenAPI-based service instantly, without manual tool coding.
There are several modules:
openapi-mcp-server: the application that is a MCP server providing the tools defined in an OpenAPI definition (provided as a local file or an HTTP endpoint)openapi-mcp-example: a simple example divided in two partsapi package : a fake infrastructure API for managing virtual machines. The API will be invoked by the OpenAPI MCP Serverassistant package : an assistant with a simple chat that will use the infrastructure API through the MCP server accessing the APITo start the MCP Server
java -jar $PATH_TO_JAR/openapi-mcp-server.jar --openapi.location=<swagger file or URL>Loading reviews...