New Tool Radar

Local AI

How to Connect an MCP Server to Open WebUI with mcpo

Bridge a stdio MCP server into Open WebUI with the mcpo proxy so your chat model can use its tools.

Schematic illustration with three step boxes for How to Connect an MCP Server to Open WebUI with mcpo.

Open WebUI natively supports MCP over Streamable HTTP since v0.6.31, but many MCP servers speak stdio or SSE instead. mcpo is a small proxy from the same project that runs those servers and puts an OpenAPI REST API in front of them, which Open WebUI can register as a tool server. This guide runs mcpo for one stdio server and registers it in Open WebUI.

Before you start

  • Open WebUI running, with admin access.
  • Docker installed, for the mcpo container.
  • A WEBUI_SECRET_KEY set in your Open WebUI deployment, so logins survive restarts.

Start mcpo for one server

Run the official mcpo image, pointing it at one MCP server command. Use one mcpo process per server, not one for everything: a single expired token behind a shared process can take down every other server in it.

docker run -d --name mcpo-time -p 8000:8000 ghcr.io/open-webui/mcpo:main --port 8000 -- npx -y @modelcontextprotocol/server-time

Check the container logs to confirm mcpo started and the server’s tools are listed.

Register it in Open WebUI

Open Settings, then the Admin Integrations tab. Under External Tool Servers, click Add Connection and set the Type to OpenAPI, since mcpo exposes an OpenAPI service. Enter the mcpo URL, such as http://localhost:8000, and save. Do not paste MCP JSON into an OpenAPI connection: that causes the UI to hang.

Ask the model to use a tool

Start a chat with a capable model and ask a question the tool can answer, such as the current time. The model should call the tool and use its result in the reply.

Worked example

Sample prompt:

What time is it right now, using the time tool?

The expected result is that the model calls the time tool through mcpo and answers with the current time. If it answers from memory instead, check that the tool server is enabled and the model supports tool calling.

Expected result

UNTESTED in this guide: no mcpo container was run while writing it. The expected result is that mcpo lists the time server’s tools, Open WebUI registers the OpenAPI connection, and the model answers with the current time from the tool.

Limitations

Native MCP is the default in current Open WebUI: use mcpo only for stdio or SSE servers that native MCP cannot reach. Only admins can add tool servers. A server that needs a token must have its credentials handled by mcpo, not pasted into a chat. MCP tools do not make a weak model good at tool use.

Sources

See all