mcpo

by @open-webui

Mcpo MCP Server

mcpo makes MCP tools available through an OpenAPI-compatible HTTP server. It is for agents and applications that consume OpenAPI endpoints rather than communicating with MCP servers directly.

Server facts

mcpo MCP Server

GitHub stars

4,404

Last commit

May 17, 2026

Runtime

python

License

MIT

Tech

Runtime
pythonPython
Transports
stdio
Remote access
No

Activity

GitHub stars
4,404
Last commit
Data as of

Tags

  • Http Proxy
  • Mcp To Openapi
  • Open Webui
  • Openapi

Overview

mcpo adapts MCP servers into HTTP interfaces that OpenAPI-aware applications can consume. Instead of requiring the caller to speak MCP, it generates an OpenAPI schema and interactive documentation for the tools exposed by a connected server. The quick-start pattern launches a local MCP command behind the proxy, while other examples connect to existing SSE or Streamable HTTP services. An API-key option protects the HTTP interface in the documented examples. This is especially relevant to Open WebUI and other clients designed around OpenAPI tool servers rather than native MCP connections.

A configuration file can describe multiple upstream servers using a familiar MCP-client structure. Each configured server receives its own route and documentation, and optional hot reload watches for configuration changes. The README also shows filtering disabled tools and supplying headers to an upstream connection. For servers requiring OAuth, mcpo documents OAuth 2.1 support for Streamable HTTP, with dynamic client registration, browser authorization, and file-based or in-memory token storage. Deployment options include uvx, a Python package installation, and Docker. Python 3.8 or newer is required, while uv is recommended rather than mandatory. A configured root path supports reverse-proxy deployments under a subpath. The proxy does not provide a fixed business-tool catalog of its own; the actual operations depend on the MCP servers selected behind it.

Install & configure

Requirements

  • Python 3.8 or newer
  • uv/uvx for this launch method
  • The mcp-server-time upstream used in the documented example
  • An OpenAPI-compatible consumer
Documented launch / install command
uvx mcpo --port 8000 --api-key top-secret -- uvx mcp-server-time --local-timezone=America/New_York

This exact README example proxies the time server to OpenAPI HTTP, not a native MCP HTTP endpoint. Replace the example top-secret API key before real use. Interactive documentation is available at http://localhost:8000/docs.

Config file · macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

Windows: %APPDATA%\Claude\claude_desktop_config.json

Use Settings → Developer → Edit Config when available. Do not assume a Linux configuration path; check the client documentation for your platform. Remote servers use the app’s connector flow when supported, not the local stdio file shown here. Merge this example with existing settings; do not overwrite unrelated servers.

A supported configuration example is not available for this client and transport. Check the client documentation for its connection flow; do not substitute an undocumented JSON format.

Read the Claude Desktop setup guide

Config file · Project: .cursor/mcp.json

User: ~/.cursor/mcp.json

The project path is relative to the workspace root. The tilde denotes your user home directory. Use Cursor’s MCP settings to confirm which configuration and scope your installed version is reading. Merge this example with existing settings; do not overwrite unrelated servers.

Cursor configuration
{
  "mcpServers": {
    "mcpo": {
      "url": "http://localhost:8000/"
    }
  }
}

Read the Cursor setup guide

Config file · Workspace: .vscode/mcp.json

For user scope, use the “MCP: Open User Configuration” command if available. Do not guess a user configuration path across operating systems, profiles, containers, or remote workspaces; check the client documentation. Merge this example with existing settings; do not overwrite unrelated servers.

VS Code configuration
{
  "servers": {
    "mcpo": {
      "type": "http",
      "url": "http://localhost:8000/"
    }
  }
}

Read the VS Code setup guide

Config file · macOS/Linux: ~/.codeium/windsurf/mcp_config.json

Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json

Open the MCP configuration through Windsurf’s settings when possible to confirm the active file. Paths can differ in managed or future releases; check the client documentation if this location is not present. Merge this example with existing settings; do not overwrite unrelated servers.

Windsurf configuration
{
  "mcpServers": {
    "mcpo": {
      "serverUrl": "http://localhost:8000/"
    }
  }
}

Read the Windsurf setup guide

Config file · Project scope: .mcp.json at the repository root

The project file uses mcpServers. For user scope, use claude mcp add --scope user rather than assuming .mcp.json in your home directory is the user configuration. Check the client documentation for managed settings and storage details. Merge this example with existing settings; do not overwrite unrelated servers.

Claude Code configuration
{
  "mcpServers": {
    "mcpo": {
      "type": "http",
      "url": "http://localhost:8000/"
    }
  }
}

Read the Claude Code setup guide

Examples are translated from the published configuration. Supply your own credentials and verify requirements in the upstream README. Remote connectors are shown only where a supported configuration format is known.

Use cases

  • Use existing MCP tools from an OpenAPI-based application.
  • Connect MCP services to Open WebUI.
  • Serve several upstream servers under individual HTTP routes.
  • Inspect generated interactive documentation for exposed tools.

Strengths

  • Generates OpenAPI schemas and interactive tool documentation.
  • Accepts local stdio, SSE, and Streamable HTTP upstreams.
  • Supports multi-server configuration, hot reload, and upstream OAuth.

Limitations

  • Actual tool availability depends on separately configured MCP servers.
  • The documented OAuth support is limited to Streamable HTTP server types.
  • The sample API key is only an example and needs replacement for a real deployment.

mcpo setup notes

  • mcpo's example uses http, while its catalog transports are stdio; use the example's connection type.

Frequently asked questions

The main purpose is exposing MCP tools through OpenAPI-compatible HTTP so OpenAPI clients can call them.

Related MCP servers