Generates MCP tools from a local or remote OpenAPI/Swagger specification and routes calls to the described REST API.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
One-click editor setup isnβt available for this listing yet β we donβt have a confirmed install command, and weβd rather show nothing than point your editor at the wrong package or host. Follow the projectβs own setup instructions, linked above.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Openapi To MCP.
The bbonnin/openapi-to-mcp MCP server turns the operations described by an OpenAPI or Swagger document into MCP tools. Rather than requiring separate tool definitions for each REST endpoint, it reads the API specification and makes the described functions available through the Model Context Protocol.
The generated tools are intended for AI agents and other generative AI applications that need to call an OpenAPI-based service. The repository also includes an example centered on a fictional infrastructure API for managing virtual machines, along with an assistant application that accesses that API through MCP.
At startup, the server loads the Swagger content from either a local file or an HTTP URL supplied as its OpenAPI location. It examines the API endpoints and creates structured tool definitions from them. When an MCP client invokes one of those tools, the server forwards the call to the corresponding REST API operation.
This approach keeps the exposed MCP operations derived from the API contract rather than from a separately maintained set of hand-written tool declarations. The source repository describes the process as dynamic: changing the supplied specification changes the tools available from the server.
The documented launch method runs the packaged server JAR with Java and supplies the specification through the openapi.location option:
The location can point to a Swagger/OpenAPI file or an HTTP endpoint. The example also shows the server being started from an IDE by launching the OpenApiMcpServer class and providing the OpenAPI location. A development Spring profile may be supplied for that example setup.
The repository contains separate example API and assistant components. The API component provides the sample virtual-machine service, while the assistant component demonstrates a chat application using that service through the MCP server.
The server provides MCP tools corresponding to the operations found in the supplied OpenAPI or Swagger specification. Its supported flow includes:
The exact tool names and available operations depend on the supplied specification. The repository does not list a fixed, built-in tool catalog independent of that document.
The available material does not describe authentication handling, supported OpenAPI versions, schema edge cases, transport configuration, or client-specific setup. It also does not provide a published package-manager command; the documented distribution path is a server JAR.
The bbonnin/openapi-to-mcp MCP server exposes operations from an existing API description, so the quality and coverage of the generated tools depend on the supplied specification. The example's infrastructure API is demonstration code and is not evidence of a built-in virtual-machine integration for other deployments.
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/bbonnin-openapi-to-mcp)<a href="https://allmcps.com/mcp/bbonnin-openapi-to-mcp"><img src="https://allmcps.com/api/badge/bbonnin-openapi-to-mcp?style=directory" alt="Openapi To MCP on AllMCPs" /></a>