OpenAPI to MCP Generator
This project provides a powerful tool for automatically converting OpenAPI/Swagger specifications into Model Context Protocol (MCP) servers, allowing LLMs to interact with any REST API through standardized tools.
Power your agent
पब्लिशर का इंस्टॉल। PlugMCP एंडपॉइंट नहीं।
Host a copy with our keys and logs.
रजिस्ट्री में अभी कोई पैकेज्ड रिलीज़ नहीं है। रिपॉज़िटरी का README देखें.
रिमोट URL या आपकी मशीन पर कमांड? दोनों इंस्टॉल में क्या अंतर है
PlugMCP पर चलाएँ
A new server you create. It is not this listing's official endpoint. Use the publisher install when you want their URL and their credentials.
लॉन्चपब्लिशर से
This project provides a powerful tool for automatically converting OpenAPI/Swagger specifications into Model Context Protocol (MCP) servers, allowing LLMs to interact with any REST API through standardized tools.
A Java program that generates a Quarkus MCP server form an Open API Swagger file
A comprehensive utility that converts any OpenAPI/Swagger specification into a fully functional MCP server:
To generate an MCP server from any OpenAPI specification:
jbang SwaggerToMcpGenerator.java path/to/swagger.json GeneratedMcpServer [options]
Parameters:
path/to/swagger.json: Path to the OpenAPI/Swagger specification fileGeneratedMcpServer: Name of the output Java file (without .java extension)Options:
--server-index <index>: Index of the server to use from the OpenAPI specification (0-based)--server-url <url>: URL of the server to use (overrides server-index)This will create a new file GeneratedMcpServer.java that implements an MCP server with tools for each API endpoint defined in the swagger file. The generator will emit a warning if multiple servers are defined in the OpenAPI specification and none is explicitly selected.
To run the generated MCP server:
jbang GeneratedMcpServer.java
The generated MCP server includes constants for all servers defined in the OpenAPI specification, allowing you to choose which server to use at runtime. By default, the first server in the list is used, but you can select a specific server using environment variables:
# Select server by index (0-based)
export SERVER_INDEX=1
# Or select server by URL
export SERVER_URL="https://api-example.com/v2"
jbang GeneratedMcpServer.java
The generated MCP server supports multiple authentication methods through environment variables:
API_KEY and API_KEY_HEADER environment variablesBEARER_TOKEN environment variableAPI_USERNAME and API_PASSWORD environment variablesExample:
export API_KEY="your-api-key"
export API_KEY_HEADER="X-API-Key"
jbang GeneratedMcpServer.java
The project includes an example OpenAPI specification for the Open-Meteo Weather API in the examples/open-meteo directory.
cd examples/open-meteo
jbang ../../SwaggerToMcpGenerator.java open-meteo-openapi.yml OpenMeteoMcpServer
This will generate OpenMeteoMcpServer.java with MCP tools for accessing weather forecast data.
cd examples/open-meteo
jbang OpenMeteoMcpServer.java
The generated MCP server provides tools for accessing weather forecasts. When using the server, pay attention to the parameter descriptions which include valid values and defaults. For example:
wind_speed_unit parameter, use ms (not "m/s") for meters per secondwind_speed_unit are: kmh (default), ms, mph, and kncelsius (default) or fahrenheitExample query for weather in Sevilla, Spain:
latitude: 37.3891
longitude: -5.9845
current_weather: true
wind_speed_unit: ms
cd examples/clever-cloud
jbang ../../SwaggerToMcpGenerator.java clever-cloud-openapi.yml CleverCloudMcpServer --server-index 1
Note that we're using --server-index 1 (the second server in the list) which is the API Bridge URL required for token authentication. This will generate CleverCloudMcpServer.java with MCP tools for managing Clever Cloud resources.
Alternatively, you can specify the server URL directly:
cd examples/clever-cloud
jbang ../../SwaggerToMcpGenerator.java clever-cloud-openapi.yml CleverCloudMcpServer --server-url https://api-bridge.clever-cloud.com/v2
cd examples/clever-cloud
# Set your Clever Cloud API token
export BEARER_TOKEN=your_api_token
jbang CleverCloudMcpServer.java
To generate an API token for Clever Cloud, you'll need to use the Clever Tools CLI:
# Install Clever Tools (if not already installed)
npm install -g clever-tools
# Login to Clever Cloud
clever login
# Enable the tokens feature
clever features enable tokens
# Create a token (with optional expiration)
clever tokens create "MCP Server Token"
clever tokens create "Temporary Token" --expiration 24h
You can also list and revoke tokens:
# List existing tokens
clever tokens -F json
# Revoke a token
clever tokens revoke api_tokens_xxx
The generated MCP server provides tools for interacting with the Clever Cloud API. Available tools include:
get_self: Get current user informationget_summary: Get user summaryget_organisations__organisationId__applications: List applications for an organizationget_organisations__organisationId__applications__applicationId_: Get application detailsExample query to list applications for an organization:
organisationId: your_organization_id
The Model Context Protocol (MCP) is a standardized way for tools and LLMs to communicate, allowing:
The generator works by:
@Tool annotated methodThe jbang-wrapper.sh script addresses environment issues when running from AI assistants like Claude Desktop on Mac, ensuring the correct PATH and environment variables are available.
A Java program that generates a Quarkus MCP server form an Open API Swagger file
टूल
अभी टूल सूची नहीं है। रिमोट सर्वर को पहले हेल्थ चेक के बाद सूची मिलती है।
FAQ
इस पेज पर Cursor, Claude Desktop, Claude Code या VS Code के लिए stdio कॉन्फ़िग कॉपी करें। यह पब्लिशर का इंस्टॉल इस्तेमाल करता है, PlugMCP प्रॉक्सी नहीं।
इस रिकॉर्ड में कोई ज़रूरी एनवायरनमेंट वेरिएबल दर्ज नहीं है।
Swagger To MCP Generator stdio पर लोकल चलता है।
पिछली जाँच 2026-11-05 को हुई। A Java program that generates a Quarkus MCP server form an Open API Swagger file