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. Exposed over MCP by the openapi to mcp generator mcp server, that capability becomes something an assistant can invoke while it works, not something you go and do afterwards.

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.

Its toolset

Everything the assistant can do here goes through one of these:

  • GeneratedMcpServer — Name of the output Java file (without .java extension)

Configuration

You will need 5 environment variables: SERVER_INDEX, SERVER_URL, API_KEY, API_KEY_HEADER, BEARER_TOKEN. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

Adding it to your client

Installation goes through your MCP client rather than a global install: point it at clever-tools on npm and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.

When to reach for it

Among the developer tooling options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. OpenAPI To MCP Generator's toolset — GeneratedMcpServer — is a fair guide to whether it matches your workflow. It is maintained by LostInBrittany; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against OpenAPI To MCP Generator's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Caveats

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the openapi to mcp generator mcp server does with a few real requests.

Available tools

ToolWhat it does
GeneratedMcpServerName of the output Java file (without .java extension)

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.