Skip to content
MCP server

mcp-generator MCP Server

Generate FastMCP servers from OpenAPI and Swagger specifications

mcp-generator scores 46 (Fair), licensed Apache-2.0 and written in Python. It installs as a local process. It does not declare tools yet. Filed under AI and memory. GitHub shows 24 stars. Package registries report about 48 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.

by quotentirolerApache-2.0Python24 stars
Trust score
46Fair
Trust score 46 of 100, Fair

Fair trust

46 of 100 from six public signals. Nobody can buy a point.

  • OSI-style license: apache-2.0.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 46 comes from

0 + 20 + 5 + 10 + 4 + 7 = 46. Each factor is capped, so no single signal can carry a listing.

Registry0 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 0 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity5 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 5 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs7 / 10

A real summary, a README with depth, listed tools.

Docs: 7 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "quotentiroler-mcp-generator-4-x": {      "command": "uvx",      "args": [        "mcp-generator"      ]    }  }}

Environment variables

This server does not declare environment variables.

Tools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.

About

MCP Generator 4.x

PyPI GitHub Release License: Apache 2.0 Python 3.11+ Docs

MCP Generator reads an OpenAPI 3.0, OpenAPI 3.1 or Swagger 2.0 specification (JSON or YAML) and writes a FastMCP server that exposes each API operation as an MCP tool. The output is a Python package with one sub-server per API tag, a typed API client, authentication and logging middleware, a runtime configuration file, a Dockerfile and a test suite. Generated servers target FastMCP 4 by default and FastMCP 3 with --fastmcp-target 3.

Installation

pip install mcp-generator

Python 3.11 or later is required. The generator is pure Python; no Java or Node.js runtime is needed. See Installation for installing from source.

Quick start

generate-mcp --url https://petstore3.swagger.io/api/v3/openapi.json
pip install -e ./generated_mcp
python generated_mcp/swagger_petstore_openapi_mcp_generated.py --transport http --port 8000

The server listens on http://localhost:8000/mcp. Without --transport http it uses STDIO and sends the API_TOKEN environment variable to the backend API.

The quick start guide covers local spec files, client configuration, the local server registry and the generated tests.

Features

  • One FastMCP sub-server per OpenAPI tag, mounted under a namespace in a main server
  • Typed Python API client generated from the spec
  • STDIO and Streamable HTTP transports
  • Backend token forwarding, optional JWT validation over HTTP, and OAuth2 settings taken from the spec's security schemes
  • Middleware for error handling, timing, logging, response size limits, keepalive pings and optional rate limiting
  • Runtime switches in fastmcp.json for tool search, CodeMode, version filtering, OpenTelemetry and auth providers
  • Generated pytest suite and test runner
  • register-mcp and run-mcp for starting generated servers by name

Optional flags add MCP resources for GET endpoints (--enable-resources), a storage backend and cache decorator (--enable-storage, --enable-caching), MCP Apps display tools (--enable-apps, --generate-ui), OpenAPI Overlay processing (--overlay, --auto-overlay) and an A2A adapter scaffold (--enable-a2a).

Documentation

Full documentation: https://quotentiroler.github.io/mcp-generator-4.x/

TopicPage
Command-line optionsCLI reference
Generated code layoutArchitecture
Optional flagsOptional features
Tokens and JWT validationAuthentication
fastmcp.json and environment variablesConfiguration
Middleware stackMiddleware
Test suite and MCP InspectorTesting

The same pages are in docs/ in this repository.

Contributing

See CONTRIBUTING.md for the development setup, branch flow and checks. Report bugs and request features in the issue tracker.

License

Apache License 2.0. See LICENSE.

Code produced by the generator is not considered a derivative work of the generator. You may license your generated servers as you choose.

Frequently asked questions

What is mcp-generator MCP Server?

Generate FastMCP servers from OpenAPI and Swagger specifications

How do I install mcp-generator MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. mcp-generator MCP Server runs locally from the PyPI package mcp-generator with the command uvx mcp-generator.

Is mcp-generator MCP Server free and open source?

Yes. mcp-generator MCP Server is released under the Apache-2.0 license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does mcp-generator MCP Server support remote (HTTP) connections?

No remote endpoint is listed for mcp-generator MCP Server. It runs locally on your machine over stdio, started by your MCP client.

How is mcp-generator MCP Server's trust score calculated?

mcp-generator MCP Server scores 46 out of 100 (Fair). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server