
open-webui/mcpo
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
シンプルで安全なMCPからOpenAPIへのプロキシサーバー
概要
任意のMCPツールをOpenAPI互換HTTPサーバーとして即座に公開してください。 mcpoは非常にシンプルなプロキシで、MCPサーバーコマンドを受け取り、標準的なRESTful OpenAPI経由でアクセスできるので、ツールはOpenAPIサーバーを期待するLLMエージェントやアプリで「ただ動作する」のです。 カスタムプロトコルもなし。接着剤コードもなし。面倒なことなし。 MCPサーバーは通常、生のstdio上で通信します。 - 🔓 本質的に安全でない - ❌ ほとんどのツールと互換性がない - 🧩 ドキュメント、認証、エラー処理などの標準機能が欠けている。 MCPOはこれらすべてを、余計な努力なしに解決します: - ✅ OpenAPIツール、SDK、UIと即座に連携 - 🛡 信頼できるウェブ標準を用いてセキュリティ、安定性、スケーラビリティを追加 - 🧠 すべてのツールに対してインタラクティブドキュメントを自動生成し、設定不要 - 🔌 純粋なHTTPを使用し、ソケットやグルーコード、驚きなし 「あと一歩」のように感じるものは、実際にはより少ないステップでより良い結果を得ているのです。
概要(AI 翻訳)
任意のMCPツールをOpenAPI互換HTTPサーバーとして即座に公開してください。
mcpoは非常にシンプルなプロキシで、MCPサーバーコマンドを受け取り、標準的なRESTful OpenAPI経由でアクセスできるので、ツールはOpenAPIサーバーを期待するLLMエージェントやアプリで「ただ動作する」のです。
カスタムプロトコルもなし。接着剤コードもなし。面倒なことなし。
🤔 なぜネイティブMCPではなくmcpoを使うのか?
MCPサーバーは通常、生のstdio上で通信します。
- 🔓 生まれつき不安
- ❌ ほとんどのツールと互換性がない
- 🧩 ドキュメント、認証、エラー処理などの標準機能が欠けている。
MCPOはこれらすべてを、余計な努力なしに解決します:
- ✅ OpenAPIツール、SDK、UIと即座に連携
- 🛡 信頼できるウェブ標準を用いてセキュリティ、安定性、スケーラビリティを追加
- 🧠 すべてのツールに対してインタラクティブドキュメントを自動生成し、設定不要
- 🔌 純粋なHTTPを使用しており、ソケットや粘着コード、驚きなし
「あと一歩」のように感じるものは、実際にはより少ないステップでより良い結果を得ているのです。
MCPOは、あなたのAIツールを今すぐ、手間なく使いやすく、安全かつ相互運用可能にします。
🚀 クイックユース
高速なスタートアップとゼロ設定のためにUVの使用をおすすめします。
あるいは、Pythonを使っているなら:
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
⚡️ mcpo
Expose any MCP tool as an OpenAPI-compatible HTTP server—instantly.
mcpo is a dead-simple proxy that takes an MCP server command and makes it accessible via standard RESTful OpenAPI, so your tools “just work” with LLM agents and apps expecting OpenAPI servers.
No custom protocol. No glue code. No hassle.
🤔 Why Use mcpo Instead of Native MCP?
MCP servers usually speak over raw stdio, which is:
- 🔓 Inherently insecure
- ❌ Incompatible with most tools
- 🧩 Missing standard features like docs, auth, error handling, etc.
mcpo solves all of that—without extra effort:
- ✅ Works instantly with OpenAPI tools, SDKs, and UIs
- 🛡 Adds security, stability, and scalability using trusted web standards
- 🧠 Auto-generates interactive docs for every tool, no config needed
- 🔌 Uses pure HTTP—no sockets, no glue code, no surprises
What feels like “one more step” is really fewer steps with better outcomes.
mcpo makes your AI tools usable, secure, and interoperable—right now, with zero hassle.
🚀 Quick Usage
We recommend using uv for lightning-fast startup and zero config.
uvx mcpo --port 8000 --api-key "top-secret" -- your_mcp_server_command
Or, if you’re using Python:
pip install mcpo
mcpo --port 8000 --api-key "top-secret" -- your_mcp_server_command
To use an SSE-compatible MCP server, simply specify the server type and endpoint:
mcpo --port 8000 --api-key "top-secret" --server-type "sse" -- http://127.0.0.1:8001/sse
You can also provide headers for the SSE connection:
mcpo --port 8000 --api-key "top-secret" --server-type "sse" --header '{"Authorization": "Bearer token", "X-Custom-Header": "value"}' -- http://127.0.0.1:8001/sse
To use a Streamable HTTP-compatible MCP server, specify the server type and endpoint:
mcpo --port 8000 --api-key "top-secret" --server-type "streamable-http" -- http://127.0.0.1:8002/mcp
You can also run mcpo via Docker with no installation:
docker run -p 8000:8000 ghcr.io/open-webui/mcpo:main --api-key "top-secret" -- your_mcp_server_command
Example:
uvx mcpo --port 8000 --api-key "top-secret" -- uvx mcp-server-time --local-timezone=America/New_York
That’s it. Your MCP tool is now available at http://localhost:8000 with a generated OpenAPI schema — test it live at http://localhost:8000/docs.
🤝 To integrate with Open WebUI after launching the server, check our docs.
🌐 Serving Under a Subpath (--root-path)
If you need to serve mcpo behind a reverse proxy or under a subpath (e.g., /api/mcpo), use the --root-path argument:
mcpo --port 8000 --root-path "/api/mcpo" --api-key "top-secret" -- your_mcp_server_command
All routes will be served under the specified root path, e.g. http://localhost:8000/api/mcpo/memory.
🔄 Using a Config File
インストール
npx -y @modelcontextprotocol/server-memory設定
{
"mcpServers": {
"memory": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-memory"]
},
"time": {
"command": "uvx",
"args": ["mcp-server-time", "--local-timezone=America/New_York"],
"disabledTools": ["convert_time"] // Disable specific tools if needed
},
"mcp_sse": {
"type": "sse", // Explicitly define type
"url": "http://127.0.0.1:8001/sse",
"headers": {
"Authorization": "Bearer token",
"X-Custom-Header": "value"
}
},
"mcp_streamable_http": {
"type": "streamable-http",
"url": "http://127.0.0.1:8002/mcp"
} // Streamable HTTP MCP Server
}
}