Skip to content

Open WebUI MCP: Connect MCP Servers Natively or With mcpo

9–13 minutes
Woman in a lab coat in a living room holding a tablet with an MCP card, hook plug in tools to local AI

Open WebUI can connect to MCP (Model Context Protocol) servers, so your local or cloud models can use real tools: search your notes, read GitHub issues, query a database or check the time in another city.

Since version 0.6.31 it supports MCP natively, and for servers that only speak stdio or SSE there is mcpo, Open WebUI’s own MCP-to-OpenAPI proxy.

The setup is simple once you know three rules: native MCP must use Streamable HTTP, only admins can add servers, and the connection type must be MCP, not OpenAPI.

This guide covers native setup, authentication including OAuth 2.1, running stdio servers through mcpo, sharing tools with users, and fixing the errors you are most likely to hit.

It follows Open WebUI’s MCP documentation and the mcpo README as of late November 2026.

TL;DR

  • Where: Admin Panel > Settings > Integrations > External Tool Servers > + Add Connection.
  • Type: choose MCP (Streamable HTTP), enter the server URL, pick Auth, save.
  • Auth: use None for local servers. “Bearer” with no key breaks the connection.
  • stdio or SSE servers: wrap them with mcpo and add the mcpo URL as an OpenAPI connection.
  • Docker: use host.docker.internal, not localhost.
  • Must set: WEBUI_SECRET_KEY, or OAuth tools break on every restart.

What MCP Adds to Open WebUI

MCP is an open standard for connecting AI apps to tools and data. An MCP server exposes tools (functions the model can call) and the AI app decides when to call them. Plug one into Open WebUI and every model that supports tool calling can use it.

Open WebUI shows each MCP tool to the model as <server ID>_<tool name>, for example github_list_issues. When the model calls a tool, Open WebUI sends only the tool name and the arguments the model wrote. Files attached to the chat are not passed to MCP tools automatically.

One important caveat from the docs: MCP connects tools, it does not make a model better at using them. A weak model may ignore tools or send wrong arguments.

If that happens, try a stronger model with reliable native tool calling before you suspect the integration. Our Ollama tool calling guide lists local models that handle tools well.

Before You Start

  • Version: native MCP needs Open WebUI v0.6.31 or newer. See our update Open WebUI guide if you are behind.
  • Admin account: only administrators can add MCP servers to the instance.
  • WEBUI_SECRET_KEY: set this environment variable in your Docker setup. Without it, OAuth-connected MCP tools fail with Error decrypting tokens every time the container restarts, and everyone has to sign in again.
  • A Streamable HTTP endpoint: check your MCP server’s docs for its HTTP path, often ending in /mcp. SSE endpoints (usually ending in /sse) do not work natively.
  • Tool servers enabled: if ENABLE_TOOL_SERVERS=False is set, the External Tool Servers section is greyed out.

Add a Native MCP Server

  1. Open Integrations. Go to Admin Panel > Settings > Integrations.
  2. Add a connection. Under External Tool Servers, click + Add Connection. The page has several sections, so make sure you are in this one.
  3. Set Type to MCP (Streamable HTTP). Do not leave it on OpenAPI.
  4. Enter the Server URL. It must be reachable from the Open WebUI backend, not just your browser.
  5. Choose Auth. Pick None unless the server needs a token (see the next section).
  6. Save. Restart Open WebUI if prompted.

Getting the URL right is where most setups fail:

Where the MCP server runs URL to use
Same PC, Open WebUI installed natively http://localhost:3000/mcp
Host PC, Open WebUI in Docker http://host.docker.internal:3000/mcp
Another container on the same Docker network http://mcp-server:8000/mcp (service name and internal port)
Remote or hosted server Its public HTTPS Streamable HTTP URL

Ports and paths above are examples; use the ones your server documents. Open WebUI only follows redirects that stay on the same origin.

Choose the Right Authentication

Auth mode Use it when
None Local servers or internal networks with no token. The safe default.
Bearer The server needs one API key. You must fill in the Key field.
Session The server authenticates against Open WebUI itself, using each user’s session token.
OAuth Users sign in to Open WebUI with the same SSO provider the MCP server trusts.
OAuth 2.1 The server supports Dynamic Client Registration (DCR). Each user connects their own account.
OAuth 2.1 (Static) You already have a client ID and secret from your identity provider.

The most common mistake: choosing Bearer without a key. Open WebUI then sends an empty Authorization: Bearer header and many servers reject the connection immediately. If the server does not need a token, use None.

Connections also accept a Headers JSON field. Values can include placeholders such as {{USER_ID}}, {{USER_GROUPS}} or {{CHAT_ID}}, which Open WebUI fills in per request. That lets one connection route each user or group to the right data on your server.

Connect OAuth Servers (Notion and Similar)

Hosted MCP servers for services like Notion usually use OAuth. The admin registers the server once, then each user connects their own account, and nobody inherits anyone else’s access.

  1. Set the WebUI URL first. In Admin Panel > Settings > General, set WebUI URL to the public address users reach Open WebUI at.
  2. Add the MCP connection and set Auth to OAuth 2.1 (or OAuth 2.1 (Static) with your Client ID and Secret).
  3. Click Register Client, then Save. Register Client is required for both OAuth 2.1 modes.
  4. For Static only, allow this redirect URI at your identity provider: <WebUI URL>/oauth/clients/mcp:<Connection ID>/callback.
  5. Connect your account. In a chat, click + > Tools, enable the tool and complete the sign-in in the same browser. You return to a new chat with the tool switched on.

The verify button on an OAuth connection reads Check OAuth Discovery. A green result only means the authorization server was found; it does not test any tool calls. If you later change the WebUI URL or Connection ID, click Register Client again, save, and update the redirect URI at your provider.

Run stdio and SSE Servers with mcpo

Most MCP servers in tutorials and in Claude Desktop configs run over stdio as a local process. Open WebUI’s native MCP does not support stdio or SSE, because it is a multi-user web app rather than a desktop process.

The fix is mcpo, which runs the MCP server for you and puts a standard OpenAPI HTTP server in front of it.

  1. Install and run mcpo with your MCP server command after --. With uv:
    uvx mcpo --port 8000 --api-key "top-secret" -- uvx mcp-server-time --local-timezone=America/New_York
  2. Or with pip (Python 3.11+): pip install mcpo, then the same mcpo ... command.
  3. Test it. Open http://localhost:8000/docs to try the tools in your browser.
  4. Allow outside access if needed. mcpo listens on 127.0.0.1 by default. Add --host 0.0.0.0 if Open WebUI runs in a container or on another machine.
  5. Add it to Open WebUI as an OpenAPI connection (not MCP) with the mcpo URL and your API key.

To serve several MCP servers at once, give mcpo a config file in the familiar Claude Desktop format:

{
  "mcpServers": {
    "memory": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-memory"]
    },
    "time": {
      "command": "uvx",
      "args": ["mcp-server-time", "--local-timezone=America/New_York"]
    }
  }
}

Run it with mcpo --config /path/to/config.json (add --hot-reload to pick up changes). Each server gets its own route, such as http://localhost:8000/memory, which you add as a separate OpenAPI connection. mcpo can also bridge an SSE-only server: mcpo --port 8000 --server-type "sse" -- http://127.0.0.1:8001/sse.

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

Use MCP Tools in a Chat

  1. Pick a tool-capable model, ideally with Function Calling set to Native in its advanced parameters.
  2. Open the “+” menu > Tools in the message box and switch on the MCP server’s tools.
  3. Ask naturally, for example “What time is it in Tokyo?” or “List my open GitHub issues labelled bug”.
  4. Check the tool call. Open WebUI shows when a tool ran and what it returned, so you can confirm the answer came from the tool.

The same tool-calling setup also powers agentic web search in Open WebUI, so if search works with your model, MCP tools usually will too.

Share Tools and Limit What Models See

  • Access: users cannot add MCP servers to the instance, by design. The admin adds the server once and uses Access to share it with the right users or groups.
  • Why admin-only: the docs explain that an MCP server runs inside Open WebUI’s trust boundary with the user’s full scope, so a malicious server could read or leak data. Only add servers you trust.
  • Function Name Filter List: list only the tools you want exposed. Leave it empty to expose all.
  • Tool Search: with many tools enabled, turn on Tool Search so large tool definitions are only loaded when the model looks them up. This avoids “maximum tools” errors from providers.
  • Long names: tool names over 64 characters are shortened automatically for providers like the OpenAI API, while the server is still called with the original name.

MCP vs OpenAPI Tool Servers

MCP (Streamable HTTP) OpenAPI
Best for Existing MCP servers and clients Enterprise setups, gateways, audit, quotas
stdio servers Not supported natively Yes, through mcpo
Open WebUI’s advice Use when you need the MCP protocol Preferred path for most deployments

You do not have to choose one. Many teams run both. If you use Claude as well, the same MCP servers often work there too; see our Claude connectors guide.

Troubleshooting

“Failed to connect to MCP server”

Check the server log, which records each failure with its cause.

Then: switch Auth from Bearer to None if no token is needed; add a single comma to an empty Function Name Filter List (a known workaround); remove OAuth 2.1 tools from a model’s default tools and enable them per chat instead; and raise MCP_INITIALIZE_TIMEOUT (default 10 seconds) for slow-starting servers.

An SSE URL does not connect

Native MCP is Streamable HTTP only. Use the server’s HTTP endpoint if it has one, or bridge it with mcpo and add it as an OpenAPI connection.

Infinite loading screen after adding a tool server

You added an MCP server, or MCP JSON with mcpServers, as an OpenAPI connection. Open Settings > Integrations (the sidebar still loads), disable or delete it, press Ctrl+F5, and re-add it with Type set to MCP.

{“detail”:”Not Found”} after OAuth sign-in

The Connection ID changed after Register Client, or the connection was never saved. Click Register Client again with the current ID, save, update the redirect URI for Static auth, and enable the tool again.

“Maximum tools limit reached”

The model provider rejected too many tool definitions. Turn on Tool Search, trim the Function Name Filter List, or enable fewer servers in the chat.

“Error decrypting tokens” after a restart

Set a fixed WEBUI_SECRET_KEY in your container configuration, then reconnect the OAuth tools once.

Model ignores the tools

Confirm the tools are switched on in the chat, Function Calling is Native, and try a larger model. Small models often skip tools even when everything is configured correctly.

FAQ

Does Open WebUI support MCP?

Yes, natively since v0.6.31, over Streamable HTTP. stdio and SSE servers work through mcpo.

Can I use my Claude Desktop MCP config in Open WebUI?

Yes, through mcpo. It accepts a config file in the Claude Desktop mcpServers format and serves each server as an OpenAPI route.

Can regular users add MCP servers?

Not to the instance. Admins add servers and share them with Access. The docs mention users can add servers for themselves in the separate Tether app.

Do MCP tools work with Ollama models?

Yes, if the model supports tool calling. Pick a recent model and set Function Calling to Native. See our Open WebUI and Ollama setup guide.

Is MCP in Open WebUI stable?

The docs describe it as supported and improving, and warn the wider ecosystem may still have occasional breaking changes.

Can MCP tools read files I attach in chat?

Not directly. Pass the content or a URL as a tool argument, or design the tool to accept a file ID and download it from Open WebUI’s API.

Sources

Free weekly email

Get new AI guides every week

One short weekly email with our newest local AI, ComfyUI and AI tool guides. No spam, no pop-ups, just the good stuff.

Free. Unsubscribe anytime in one click. We only use your email to send this newsletter. See our privacy policy.

Woman in a lab coat in a living room holding a tablet with an MCP card, hook plug in tools to local AI