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.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

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.

上游原版 README

在 GitHub 查看同一版本原文

README.md · aa1cedd7a44e · 采集于 2026-11-13 12:01:55 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

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.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

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