Mcpo

Agent frameworks and SDKs

A simple, secure MCP-to-OpenAPI proxy server.

Your AI app calls the Mcpo MCP server, which does the agent frameworks and SDKs work and sends the result back to the chat.

About Mcpo

Mcpo is a community MCP server from open-webui, filed in our directory under agent frameworks and sdks. A simple, secure MCP-to-OpenAPI proxy server.

Mcpo runs on your own machine: your AI app starts it with the command uvx mcpo and talks to it over standard input and output.

At a glance

Publisher
open-webui (community)
Runs
Locally on your machine
Install from
Python package on PyPI: mcpo
Written in
Python
License
MIT
GitHub stars
4,436

How to set up Mcpo

  1. Install uv on the machine that runs your AI app, because Mcpo starts with uvx and fetches its Python package on first run.
  2. Check the Mcpo README for keys or settings; the registry lists none that Mcpo requires.
  3. Add Mcpo to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Mcpo tools to confirm the connection.
  5. Run one read-only task with Mcpo first, and keep your app asking before each tool call until the results look right.

Mcpo compared with similar servers

  • Pipeshub AI by pipeshub-ai has fewer GitHub stars than Mcpo (4.2k against 4.4k); both are community servers, and Pipeshub AI runs as a remote server and Mcpo runs on your own machine.
  • Context Forge by IBM has more GitHub stars than Mcpo (4.9k against 4.4k); Context Forge is official while Mcpo is a community server, and both run locally.
  • Lean Ctx by yvgude has fewer GitHub stars than Mcpo (4k against 4.4k); both are community servers, and both run locally.

Before you connect Mcpo

  • Give Mcpo its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Mcpo tool call until you trust what it does with them.
  • Treat text that Mcpo fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Mcpo on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Mcpo

How marketing and sales teams put Mcpo to work, by company size. Pick the size closest to yours and start Mcpo on one use case.

Small business

  • A small business with a developer can use Mcpo to build one focused agent, such as lead follow-up, without a big platform.
  • Technical founders can prototype marketing agents with Mcpo and keep what works as a small, owned tool.
  • Mcpo runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Growth engineering teams can use Mcpo to build agents that combine CRM, analytics and content tools behind one workflow.
  • Marketing ops can standardize on Mcpo so every agent they ship has the same logging, approvals and error handling.
  • Start Mcpo on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises can build on Mcpo with their own identity, policy and evaluation layers, so agents meet the same bar as other software.
  • Platform teams can use Mcpo to give business units a governed way to ship agents without each one starting from scratch.
  • Mcpo is a community server, so have security review the code and pin a version before Mcpo touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Mcpo README

From open-webui/mcpo on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

mcpo

mcpo is an MCP-to-OpenAPI proxy. It takes any MCP server and serves its tools as a standard OpenAPI HTTP server, with interactive docs and API key auth, so they work with Open WebUI and any other app that speaks OpenAPI.

Read the docs →

Why mcpo

Most MCP servers talk over stdio and run as a local process. An app in the browser or on another machine cannot reach them. mcpo runs the MCP server for you and puts plain HTTP in front of it. Every tool gets its own endpoint, its own OpenAPI schema and live docs at /docs, with no glue code.

Open WebUI connects to Streamable HTTP MCP servers natively. Use mcpo for stdio and SSE servers, or when a client only speaks OpenAPI.

Installation

Python
# With uv installed
uvx mcpo --port 8000 --api-key "top-secret" -- your_mcp_server_command

# Or install and run with pip (Python 3.11+)
pip install mcpo
mcpo --port 8000 --api-key "top-secret" -- your_mcp_server_command

For example, with the MCP time server:

uvx mcpo --port 8000 --api-key "top-secret" -- uvx mcp-server-time --local-timezone=America/New_York

Then open http://localhost:8000/docs to try the tools live.

mcpo listens on 127.0.0.1 by default. Add --host 0.0.0.0 when Open WebUI or another client runs on a different machine or in a container.

Docker
docker run -p 8000:8000 ghcr.io/open-webui/mcpo:main --api-key "top-secret" -- your_mcp_server_command

The image listens on all interfaces and runs as a non-root user.

Connect to Open WebUI

Add the mcpo URL as a tool server in Open WebUI. See the Open WebUI integration guide for the steps.

Remote MCP Servers

mcpo also proxies MCP servers that already run over the network.

# SSE
mcpo --port 8000 --api-key "top-secret" --server-type "sse" -- http://127.0.0.1:8001/sse

# Streamable HTTP
mcpo --port 8000 --api-key "top-secret" --server-type "streamable-http" -- http://127.0.0.1:8002/mcp

# With headers for the remote server
mcpo --port 8000 --api-key "top-secret" --server-type "sse" --header '{"Authorization": "Bearer token"}' -- http://127.0.0.1:8001/sse

Config File

Serve several MCP servers from one mcpo instance with a config file in the Claude Desktop format.

mcpo --config /path/to/config.json

# Reload servers automatically when the file changes
mcpo --config /path/to/config.json --hot-reload
{
  "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
  }
}

Each server gets its own route, such as http://localhost:8000/memory and http://localhost:8000/time, with its own docs at /memory/docs and /time/docs.

Key Purpose
command, args Command that starts a local (stdio) server
env Extra environment variables for a local server
cwd Folder a local server starts in
type sse or streamable-http for a remote server
url, headers Address of a remote server and the headers sent to it
disabledTools Tools to hide from the generated API
oauth OAuth settings, see OAuth

Options

Option Purpose
--host, --port Address to listen on (default 127.0.0.1:8000)
--api-key API key that clients send as a bearer token. Also read from MCPO_API_KEY, which keeps it out of the process list
--strict-auth Also protect the docs and OpenAPI schema with the API key
--server-type stdio (default), sse or streamable-http
--header Headers in JSON for a remote server
--config, --hot-reload Config file, and reload it when it changes
--env, --env-path Environment variables for the MCP server
--cors-allow-origins Allowed CORS origins (default *)
--root-path Serve under a subpath behind a reverse proxy, such as /api/mcpo
--path-prefix URL prefix for the server routes
--ssl-certfile, --ssl-keyfile Serve over HTTPS
--name, --description, --version Title, description and version shown in the docs
--log-level DEBUG, INFO, WARNING, ERROR or CRITICAL

Run mcpo --help for the full list. Setting MCPO_API_KEY through --env or --env-path has no effect.

OAuth

mcpo supports OAuth 2.1 for Streamable HTTP servers that require it. It uses dynamic client registration by default, so most servers need only the server URL.

{
  "mcpServers": {
    "oauth-protected-server": {
      "type": "streamable-http",
      "url": "http://localhost:8000/mcp",
      "oauth": {
        "server_url": "http://localhost:8000"
      }
    }
  }
}
Option Purpose
server_url OAuth server base URL (required)
storage_type file (default, persistent) or memory (session only)
callback_port Local port for the OAuth callback (default 3030)
use_loopback Open the browser for sign-in automatically (default true)

On first connection mcpo registers a client if needed, opens the browser for sign-in, captures the callback and stores the tokens in ~/.mcpo/tokens/. Later requests reuse them.

For a provider without dynamic client registration, register a client with the provider and put its client ID and secret into the client metadata.

{
  "mcpServers": {
    "legacy-oauth-server": {
      "type": "streamable-http",
      "url": "http://api.example.com/mcp",
      "oauth": {
        "server_url": "http://api.example.com",
        "client_metadata": {
          "client_id": "your-client-id",
          "client_secret": "your-client-secret",
          "client_name": "My MCPO Client",
          "redirect_uris": ["http://localhost:3030/callback"]
        }
      }
    }
  }
}

Leave out scope, authorization_endpoint and token_endpoint. mcpo discovers them from the server's OAuth metadata. See the OAuth guide for details.

Development

git clone https://github.com/open-webui/mcpo.git
cd mcpo
uv sync --dev

# Run the tests
uv run pytest

# Run mcpo from your checkout
uv run mcpo --port 8000 -- uvx mcp-server-time --local-timezone=America/New_York

Support

Open an issue or ask on Discord.

Security

Report vulnerabilities privately through GitHub security advisories. See SECURITY.md for the policy.

Star History

License

MIT. See LICENSE.

Created by Timothy Jaeryang Baek.

Questions about Mcpo

What is the Mcpo MCP server?

A simple, secure MCP-to-OpenAPI proxy server. Mcpo is maintained by open-webui on GitHub at open-webui/mcpo, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Mcpo MCP server?

Add Mcpo to your AI app's MCP config with the command uvx mcpo. In Claude Code, run claude mcp add --transport stdio mcpo -- uvx mcpo. To run Mcpo this way you need uv installed.

Does Mcpo need an API key?

The registry lists no required keys for Mcpo. Check the Mcpo README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Mcpo an official MCP server?

No. Mcpo is a community server maintained by open-webui. Community servers can be excellent; read the code and the open issues before you give Mcpo access to company data.

What license is Mcpo under?

Mcpo is released under the MIT license, according to its GitHub repository. The license covers the code of Mcpo; the service it connects to has its own terms.