OpenAPI to MCP Generator
@LostInBrittany
About OpenAPI to MCP Generator
A Java program that generates a Quarkus MCP server form an Open API Swagger file
Basic information
Config
No standard config provided
This server doesn't expose a parseable MCP config block in its README. See the repository for install instructions.
RepositoryTools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is OpenAPI to MCP Generator?
It automatically converts OpenAPI/Swagger specifications into fully functional Model Context Protocol (MCP) servers, allowing LLMs to interact with any REST API through standardized tools. Designed for developers who want to expose REST APIs as MCP-compatible tools.
How to use OpenAPI to MCP Generator?
Use jbang SwaggerToMcpGenerator.java path/to/swagger.json GeneratedMcpServer to generate a server, then jbang GeneratedMcpServer.java to run it. Authentication is configured via environment variables such as API_KEY, BEARER_TOKEN, or API_USERNAME/API_PASSWORD.
Key features of OpenAPI to MCP Generator
- Parses OpenAPI specification files and converts endpoints to MCP tools.
- Supports GET, POST, PUT, DELETE, and PATCH methods.
- Handles path parameters, query parameters, and request bodies.
- Provides API Key, Bearer Token, and Basic authentication support.
- Formats JSON responses and includes robust error handling.
- Allows runtime server selection when multiple servers are defined.
Use cases of OpenAPI to MCP Generator
- Turn any public REST API (e.g., weather data) into LLM-accessible tools.
- Expose internal REST APIs to AI assistants like Claude Desktop.
- Quickly create MCP servers for cloud management APIs (e.g., Clever Cloud).
- Generate standardized tool interfaces without writing manual MCP code.
FAQ from OpenAPI to MCP Generator
What is the Model Context Protocol (MCP)?
MCP is a standardized way for tools and LLMs to communicate, allowing tools to expose functionality to any MCP-compatible LLM and enabling LLMs to discover and use tools consistently.
How do I select a specific server when multiple are defined?
Use the --server-index <index> or --server-url <url> option during generation, or set the SERVER_INDEX or SERVER_URL environment variable at runtime.
How do I authenticate the generated MCP server?
Set environment variables: API_KEY and API_KEY_HEADER for API key auth, BEARER_TOKEN for bearer token, or API_USERNAME and API_PASSWORD for Basic auth.
What HTTP methods are supported?
GET, POST, PUT, DELETE, and PATCH are supported for converting endpoints to MCP tools.
Are there any known limitations or planned improvements?
The README lists planned features including form data/multipart support, OAuth 2.0 authentication, a web UI for spec uploads, and WebSocket endpoint support, indicating these are not yet implemented.
More Developer Tools MCP servers
MCP Containers
metorialConnect any AI model to 1200+ integrations (MCP, CLI, API)
nuxt-mcp / vite-plugin-mcp
antfuMCP server helping models to understand your Vite/Nuxt app better.
Stakpak Agent CLI
stakpakShip your code, on autopilot. An open source agent that lives on your machines 24/7 and keeps your apps running. 🦀
Serena
oraiosA powerful MCP toolkit for coding, providing semantic retrieval and editing capabilities - the IDE for your agent
test
cloudwegoThe ultimate LLM/AI application development framework in Go.
Comments