A simple, secure MCP-to-OpenAPI proxy server
Overview
What is mcpo?
mcpo is a simple and secure proxy server that exposes any MCP tool as an OpenAPI-compatible HTTP server, allowing seamless integration with LLM agents and applications that expect OpenAPI servers.
How to use mcpo?
To use mcpo, run the command uvx mcpo --port 8000 -- your_mcp_server_command or install it via Python with pip install mcpo and then run mcpo --port 8000 -- your_mcp_server_command. This will make your MCP tool accessible at http://localhost:8000 with a generated OpenAPI schema.
Key features of mcpo?
- Instantly exposes MCP tools as OpenAPI-compatible servers.
- Enhances security, stability, and scalability using web standards.
- Auto-generates interactive documentation for every tool without configuration.
- Uses pure HTTP, eliminating the need for sockets or glue code.
Use cases of mcpo?
- Making legacy MCP tools accessible via modern web APIs.
- Integrating MCP tools with AI applications that require OpenAPI.
- Serving multiple MCP tools through a single configuration file.
FAQ from mcpo?
- Is mcpo secure?
Yes! mcpo adds security features to MCP tools that typically lack them.
- Can I serve multiple MCP tools?
Yes! You can use a config file to serve multiple tools under unique routes.
- What are the requirements to run mcpo?
You need Python 3.8+ and optionally the
uvpackage for better performance.