MCP.so
登录

openapi2mcp MCP Server

@VitalyMalakanov

基本信息

分类

其他

许可证

MIT license

传输方式

stdio

作者

VitalyMalakanov

关于 openapi2mcp MCP Server

**Automatically generate FAST Model-Context-Protocol (MCP) servers from OpenAPI/Swagger specs.**

openapi2mcp MCP Server 配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

openapi2mcp MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is openapi2mcp?

openapi2mcp is a command-line tool that converts OpenAPI 3.x specification files into ready-to-run FastMCP servers. It is designed for developers who want to quickly expose existing REST APIs as MCP (Model Context Protocol) servers using standard transports.

How to use openapi2mcp?

Install via poetry install. Then use the openapi2mcp generate command to create a Python MCP server from a JSON or YAML OpenAPI spec, specifying input, output, transport (stdio or google_pubsub), an optional resource mount path, and an optional llms.txt file. Validate the generated code with openapi2mcp check and display the version with openapi2mcp version.

Key features of openapi2mcp

  • Generates FastMCP server code from OpenAPI 3.x specs.
  • Supports stdio and Google Pub/Sub transports.
  • Mount path customization for server resources.
  • Automatic generation of llms.txt for LLM tool descriptions.
  • Built-in code validation with the check command.
  • Simple CLI with three commands: generate, check, version.

Use cases of openapi2mcp

  • Convert an existing REST API (OpenAPI spec) into an MCP server.
  • Rapidly prototype an MCP server for LLM tool integration.
  • Generate an llms.txt file to document MCP tools for language models.
  • Validate generated MCP server code before deployment.

常见问题

1

How do I install openapi2mcp?

Run `poetry install` in the project directory. A specific installation method is not detailed beyond this.

2

What transport options are available?

The generate command accepts `--transport` with values `stdio` or `google_pubsub`. The default is `stdio`.

3

How can I check a generated server file for errors?

Use `openapi2mcp check --server-file <path>` to verify syntax and key MCP patterns in the generated Python file.

评论

其他 分类下的更多 MCP 服务器