openapi2mcp
@VitalyMalakanov
About openapi2mcp
**Automatically generate FAST Model-Context-Protocol (MCP) servers from OpenAPI/Swagger specs.**
Config
No standard config provided
This server doesn't expose a parseable MCP config block in its README. See the repository for install instructions.
RepositoryTools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
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.txtfor LLM tool descriptions. - Built-in code validation with the
checkcommand. - 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.txtfile to document MCP tools for language models. - Validate generated MCP server code before deployment.
FAQ from openapi2mcp
How do I install openapi2mcp?
Run poetry install in the project directory. A specific installation method is not detailed beyond this.
What transport options are available?
The generate command accepts --transport with values stdio or google_pubsub. The default is stdio.
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.
Frequently asked questions
How do I install openapi2mcp?
Run `poetry install` in the project directory. A specific installation method is not detailed beyond this.
What transport options are available?
The generate command accepts `--transport` with values `stdio` or `google_pubsub`. The default is `stdio`.
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.
Basic information
More Other MCP servers
Unity MCP ✨
justinpbarnettUnity MCP acts as a bridge between AI assistants and your Unity Editor. Give your LLM tools to manage assets, control scenes, edit scripts, and automate tasks within Unity.
Maestro
mobile-dev-incPainless E2E Automation for Mobile and Web
Activepieces
activepiecesAI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

Peekaboo MCP – lightning-fast macOS screenshots for AI agents
steipetePeekaboo is a macOS CLI & optional MCP server that enables AI agents to capture screenshots of applications, or the entire system, with optional visual question answering through local or remote AI models.
Mcp
browsermcpBrowser MCP is a Model Context Provider (MCP) server that allows AI applications to control your browser
Comments