OpenAPI-to-FastMCP server generator

OpenAPI-to-FastMCP server generator

openapi2mcp•byvitalymalakanov

A command-line tool that parses OpenAPI 3.x specification files and generates FastMCP server Python code, with options for transport and resource mount paths.

License: MIT•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Generates MCP server Python code from an OpenAPI specification file in JSON or YAML.
  • •Supports stdio or google_pubsub transport for the generated server.
  • •Can generate an llms.txt file describing the generated tools and resources.
  • •Includes a check command that validates a generated MCP server file for syntax and key MCP patterns.

BEST FOR

  • •Developers who want to expose an existing OpenAPI-described HTTP API as an MCP server.
  • •Teams that need to set a custom resource mount path for their generated server.

ABOUT OPENAPI2MCP

OpenAPI-to-FastMCP server generator is cataloged as an MCP server attributed to vitalymalakanov. A command-line tool that parses OpenAPI 3.x specification files and generates FastMCP server Python code, with options for transport and resource mount paths. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for OpenAPI-to-FastMCP server generator are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

What transports can the generated MCP server use?

The generator supports stdio and google_pubsub transports, defaulting to stdio.

What does the check command do?

It checks a generated MCP server Python file for basic code validity, including syntax and the presence of key MCP patterns.

Upstream README

View this exact version on GitHub

README.md · aa1cedd7a44e · Fetched 2026-11-13 12:01:55 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

openapi2mcp

A tool to convert OpenAPI 3.x specifications to FastMCP servers.

Installation

poetry install

Usage / Commands

openapi2mcp provides a command-line interface to generate and manage MCP server code from OpenAPI specifications.

generate

Generates the MCP server Python code from an OpenAPI specification file.

Syntax:

openapi2mcp generate [OPTIONS]

Options:

  • -i, --input-file PATH: Path to the OpenAPI specification file (JSON or YAML). (Required)
  • -o, --output-file PATH: Path to the output Python file for the generated MCP server. (Required)
  • -t, --transport [stdio|google_pubsub]: The transport mechanism for the MCP server. (Default: stdio)
  • --llms-txt-file PATH: Optional path to generate an llms.txt file, which provides a description of the generated tools and resources for language models. If not specified, llms.txt will be created in the same directory as the output server file.
  • --mount TEXT: Optional mount path for resources (e.g., /myapi/v1). (Default: "")

Example:

openapi2mcp generate --input-file examples/example_openapi.yaml --output-file generated_server.py --transport stdio --mount "/api"

This command will parse examples/example_openapi.yaml, generate an MCP server file named generated_server.py using the stdio transport, and set the resource mount path to /api. It will also generate an llms.txt file in the same directory as generated_server.py.

check

Checks a generated MCP server Python file for basic code validity, including syntax and presence of key MCP patterns.

Syntax:

openapi2mcp check --server-file PATH

Options:

  • --server-file PATH: Path to the generated MCP server Python file to check. (Required)

Example:

openapi2mcp check --server-file generated_server.py

version

Displays the version of the openapi2mcp tool.

Syntax:

openapi2mcp version

Example:

openapi2mcp version

Examples

See example implementations:

Project Structure

  • openapi2mcp/parser.py: OpenAPI specification parser
  • openapi2mcp/generator.py: FastMCP server code generator
  • openapi2mcp/cli.py: Command-line interface

License

MIT - See LICENSE

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for OpenAPI-to-FastMCP server generator from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/openapi2mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools