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.
Fair trust
46 of 100 from six public signals. Nobody can buy a point.
- OSI-style license: apache-2.0.
License, quality and maintenance
Quality: Grade C
65/100 for listing completeness. Lost points: no listed tools, short summary.
How quality is graded
Where the 46 comes from
0 + 20 + 5 + 10 + 4 + 7 = 46. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 0 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 5 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.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.
{ "mcpServers": { "quotentiroler-mcp-generator-4-x": { "command": "uvx", "args": [ "mcp-generator" ] } }}
Environment variables
This server does not declare environment variables.
Tools
All capabilitiesTools 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
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.jsonfor tool search, CodeMode, version filtering, OpenTelemetry and auth providers - Generated pytest suite and test runner
register-mcpandrun-mcpfor 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/
| Topic | Page |
|---|---|
| Command-line options | CLI reference |
| Generated code layout | Architecture |
| Optional flags | Optional features |
| Tokens and JWT validation | Authentication |
fastmcp.json and environment variables | Configuration |
| Middleware stack | Middleware |
| Test suite and MCP Inspector | Testing |
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
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.