OpenAPI To MCP Generator MCP Server

A Java program that generates a Quarkus MCP server form an Open API Swagger file

Local serverstdio

What is the OpenAPI To MCP Generator MCP Server?

A Java program that generates a Quarkus MCP server form an Open API Swagger file

What it actually does

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.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

How to install the OpenAPI To MCP Generator MCP Server

{
  "mcpServers": {
    "swagger-to-mcp-generator": {
      "command": "npx",
      "args": ["-y", "clever-tools"],
      "env": {
        "SERVER_INDEX": "your-value",
        "SERVER_URL": "your-value",
        "API_KEY": "your-value",
        "API_KEY_HEADER": "your-value",
        "BEARER_TOKEN": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
SERVER_INDEXConfiguration value read at startup.Optional
SERVER_URLEndpoint or connection string the server talks to.Yes
API_KEYCredential the server authenticates with.Yes
API_KEY_HEADERCredential the server authenticates with.Yes
BEARER_TOKENCredential the server authenticates with.Yes

Example prompts to try

  • “Use OpenAPI To MCP Generator to GeneratedMcpServer.”

Frequently asked questions

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.