Open WebUI MCP tool servers

Open WebUI can connect to MCP tool servers, but the transport, OAuth settings and admin controls must match your identity and network setup. This page explains how to plan and verify that connection.

On this page

How Open WebUI MCP tool servers connect models to your systems

If you want models in Open WebUI to call internal systems such as ticketing, asset inventory or a document store, the question is whether the connection method is supported and who is allowed to set it up. Open WebUI's topic scope for this page covers connecting MCP servers over streamable HTTP with OAuth 2.1, and it restricts adding them to administrators. An MCP tool server is a service that exposes named tools, each with a description and input schema, so a model can decide when to call them and pass structured arguments. In practice, the MCP server sits between the model and your system, and it is the place where access to that system is actually enforced.

Treat the MCP server as a privileged integration rather than a convenience plugin. Before anything is configured, decide which systems the tools may touch, whether each tool reads or writes data, and which identity the server uses when it calls back into those systems. Ask the MCP server's maintainer or your internal platform owner to confirm the transport it supports, how OAuth 2.1 tokens are issued and refreshed, and which scopes each tool requires. Admins register the server in Open WebUI, so the approval step for each new endpoint belongs with your security or platform team, not with individual model users.

Exact settings, menu paths and any MCP-specific environment variables must be confirmed against the current Open WebUI tools and extensibility documentation for the version you run, since no MCP-specific facts have been verified for this page. The Open WebUI features documentation is the starting point for checking what the admin interface exposes. Record the version, the transport, the OAuth client registration and the allowed tool list in your change record, and retest after every Open WebUI upgrade, because tool behavior and permission checks can change between releases.

What you need before adding an MCP server

Most failed MCP connections trace back to a missing prerequisite rather than the connection itself. The cards below cover the version, the admin account, the network path, the OAuth 2.1 server and the secret key that every other step depends on. Confirm each item before you touch the admin settings.

Open WebUI version and install method

Confirm that the release you run includes MCP support, because the feature set changes between releases and this page does not assume one version. Check the release notes on the project's GitHub releases page for your exact version. Record your install method (Docker, Docker Compose, Helm on Kubernetes, or pip), since upgrade and configuration steps differ by method. Confirm MCP support before planning anything else.

Latest release cited
v0.12.3
Open WebUI releases

An admin account

Only administrators can add MCP tool servers, so you need an account with the admin role before the first connection. Plan who holds that role and how many people share it. Keep the admin account separate from day-to-day user accounts, and confirm that the role assignment survives your identity provider sync if you use SSO or SCIM.

An HTTPS endpoint for the MCP server

The MCP server must expose a streamable HTTP endpoint over HTTPS and be reachable from the Open WebUI host or each replica, not only from your workstation. Confirm DNS, firewall rules and any reverse proxy path between them. Check that the certificate chains to a CA that the Open WebUI host trusts, because a private CA certificate that the host does not trust will break the connection.

An OAuth 2.1 authorization server

The MCP server's OAuth 2.1 authorization server must be reachable and must issue tokens that the MCP server accepts. Decide which client registration Open WebUI will use, which scopes the MCP server expects, and where the token endpoint lives. Confirm with the MCP server vendor which OAuth 2.1 flows and metadata it supports, since this page does not assume a specific provider.

The WEBUI_SECRET_KEY set consistently

Set WEBUI_SECRET_KEY to the same value on every instance and replica before you store MCP credentials. Changing the key later or letting replicas differ can make stored secrets and tokens unreadable or invalid. Store the value in your secrets manager, not in a plain configuration file, and record where it lives so that restores and rebuilds use the same key.

Shared state for multi-replica deployments

If you run several replicas, the scaling guide requires PostgreSQL instead of SQLite, Redis as shared state for sessions and websockets, and shared file storage. Without Redis, signing out does not revoke tokens, which matters when MCP access depends on a signed-in session. Confirm each of these components in your environment before you add a server that users will reach from every replica.

Default token lifetime
4 weeks
Scaling guide

How to configure an MCP server in Open WebUI

This sequence connects one MCP server to Open WebUI over streamable HTTP with OAuth 2.1, from registering the client with the authorization server to a confirmed tool list. It ends when an administrator has discovered the server's tools and completed one successful test call. Setting names and admin menu labels change between releases, so check them against the documentation for the version you run.

  1. Register Open WebUI with the authorization server

    The identity administrator creates an OAuth client for Open WebUI in the authorization server that protects the MCP server. Record the client ID, the client secret if one is issued, and the redirect URI that your Open WebUI version expects, using your exact public address. Confirm the client can request the scopes the MCP server's documentation lists. Done means the client exists, the redirect URI matches your deployment exactly, and the required scopes are allowed for it.

  2. Set WEBUI_SECRET_KEY and OAuth environment values

    The person who manages the Open WebUI deployment sets WEBUI_SECRET_KEY to a long, random value stored in your secrets manager. Use the same value on every replica, because tokens signed with it must remain valid across instances and restarts. Add the client ID, client secret and related OAuth values named in the documentation for your version. Done means each running instance shows these variables in its environment and none reports a missing or mismatched key at startup.

  3. Restart Open WebUI and check the configuration

    Restart the service so the new environment takes effect on every instance. Open the admin settings and confirm the OAuth values appear as configured, with secrets masked. Review the startup logs for errors that mention the secret key or the OAuth configuration. Done means all instances start cleanly, the admin view shows the expected values, and no secret appears in plain text in the interface or logs.

  4. Add the MCP server as an admin

    Sign in with an administrator account and add the MCP server's streamable HTTP endpoint in the admin settings for external tools. Enter the server URL and the OAuth details from the first two steps, then save. Only administrators can add MCP servers, so users see the server only after an admin enables it and makes it available to their groups. Done means the server appears in the admin list with a status that reflects the sign-in still pending.

  5. Complete the OAuth 2.1 sign-in flow

    From the same administrator account, start the sign-in for the MCP server. Open WebUI redirects to the authorization server, where the administrator reviews and approves the requested scopes before returning to Open WebUI. Confirm the approving identity is the intended administrator and the scopes match the list from step one. Done means Open WebUI shows the server as connected and the logs record a completed token exchange without errors.

  6. Confirm the tool list and run a test call

    After sign-in, check that the server's tools load in Open WebUI and that the list matches the tools the MCP server's own documentation describes. From the administrator account, run one read-only tool call with a harmless input, and compare the result with the server's own tooling or logs. Done means the tool list is complete, the test call returns the expected result, and the test is recorded in your change log before any user group receives access.

How MCP tool servers differ from user-added OpenAPI tool servers

This table compares MCP tool servers that administrators add to Open WebUI with OpenAPI tool servers that users can add themselves. Read each row as a control point: who makes the decision, where credentials live and who can use the tool. Rows marked to confirm depend on your Open WebUI version and admin settings, so verify them in a test instance before you write a policy.

AspectMCP tool serverUser-added OpenAPI tool server
Who can add itAdministrators only, by design of the featureUsers can add their own, if your settings allow it (confirm)
Protocol and transportMCP over streamable HTTPOpenAPI description of an HTTP API (confirm supported spec versions)
AuthenticationOAuth 2.1 flow configured by the admin (confirm supported flows)Set by the user, typically an API key or bearer token (confirm options)
Where credentials are storedServer-side, managed by Open WebUI (confirm storage and encryption)In the user's settings, scoped to that user (confirm storage)
How tools are discoveredOpen WebUI queries the MCP server for its tool list (confirm refresh behavior)Operations are read from the uploaded or linked OpenAPI document
Who can see and use the toolsDepends on admin-set access to the server (confirm group and model permissions)Typically the adding user, unless shared (confirm sharing options)
Dependency on WEBUI_SECRET_KEYRequired for a secure setup (confirm for your version)Confirm whether stored user credentials depend on it

How a tool call moves from chat to your internal system

A chat message starts in the user's browser and reaches Open WebUI, which sends it to the language model. When the model decides to use a tool, Open WebUI calls the MCP server over streamable HTTP, and the MCP server reaches the internal system it wraps. Before it accepts that call, the MCP server checks a token issued by the OAuth 2.1 authorization server in the identity provider. The result returns through the model into the chat reply. At each boundary, check which network the request leaves, which credential it carries, and who can change the server list.

Trust boundaries separate the user, Open WebUI, MCP and identity networks.

Why only administrators can add MCP servers

Adding an MCP server is a trust decision, not a user preference. An MCP server advertises tools that a model can call, and those tools can read or change data in internal systems. Some servers also receive credentials, either through an OAuth 2.1 sign-in flow or through configured headers. When an administrator adds a server, the organization is effectively approving that the server, its operator and its tool definitions may act on company systems on behalf of users. That approval belongs with people who own the risk, which is why the onboarding step sits with administrators rather than with whoever happens to be signed in.

The admin-only step sets the ceiling for everything that follows. Group permissions and per-resource access decide which signed-in users may use a server that has already been approved, so they narrow access after onboarding rather than replacing the onboarding review. Confirm in your own release how server registration, tool visibility and per-group access are controlled, including whether a group can be granted use of an existing server without the ability to add or edit servers. Also confirm whether a non-administrator can ever supply their own endpoint, and whether tool definitions are re-read after a server changes, because a previously approved server can alter the tools it exposes.

Write the approval record before you enable access. For each server, note the business purpose, the systems it can reach, the identity it uses, who owns the server, and which groups receive it. Test the restriction directly: sign in as a non-administrator, try to add a server, and confirm that a group without grant cannot see or call the tools. The Open WebUI features documentation is the starting point for the current role and permission model, and your security review should verify it against the version you run.

Securing MCP connections in production

An MCP server gives a model live access to systems, so each connection needs the same controls as any other privileged integration. The cards below cover identity and token handling, secret storage, group-based tool exposure, network paths, call logging and revocation. Work through them in order before any MCP server reaches a shared user group.

OAuth 2.1 client registration and scope

Register Open WebUI as a client with each MCP server's authorization server and request only the scopes the chosen tools need. Broad scopes turn one compromised session into access to every tool the MCP server exposes. Check which redirect URIs are allowed, how client secrets are issued and whether the authorization server supports the token lifetimes you want. Confirm scope names with each MCP server's documentation before granting them.

Open WebUI features

Protecting WEBUI_SECRET_KEY

Open WebUI uses WEBUI_SECRET_KEY to sign tokens, so anyone who obtains it can forge sessions. Set it explicitly, never rely on a generated default, and inject it from a secrets manager or orchestrator secret rather than a committed .env file. Keep the same value across all replicas so tokens verify everywhere, and plan a rotation procedure that accounts for forced sign-outs.

Restricting tools by group

Decide which groups may use which MCP tools before users are onboarded, and treat the model's tool list as an authorization surface. A group that can reach a write-capable tool can ask the model to use it from any chat. Map each tool to a named group, review the mapping when new tools arrive and confirm in testing that a user outside the group cannot invoke the tool through prompts.

Outbound network rules

Limit outbound traffic from the Open WebUI host to the specific MCP server addresses and ports that have been approved. Without egress rules, a manipulated prompt or a misconfigured server URL can reach internal services that the host can see. Use network policies or firewall rules, record which destinations are allowed and test that connections to unapproved hosts fail.

Logging tool calls

Record which user invoked which MCP tool, with which server and when, and keep those records separate from chat content where your privacy review requires it. Tool logs are the evidence you need after an incident involving an MCP action. Confirm what Open WebUI and the MCP server each record, where logs are shipped and who can read them, and set retention before go-live.

Revoking tokens after sign-out

Without Redis in a multi-replica deployment, signing out does not revoke tokens, which stay valid until they expire, by default after 4 weeks. The same gap applies to tokens an MCP server issued through OAuth, so sign-out alone will not cut off an MCP session. Plan shorter token lifetimes where the authorization server allows them, add Redis for shared state, and document how an administrator revokes access for a departing user.

Scaling Open WebUI docs

How to test an MCP connection before users depend on it

Test the connection in a non-production Open WebUI instance before any user in your organization can reach it. Connect the MCP server there as an administrator, using the same identity provider, OAuth 2.1 client settings and WEBUI_SECRET_KEY handling you plan to use in production, so the test exercises the real authentication path rather than a shortcut. Start with a read-only tool, if the server offers one, and confirm that the model can call it, that the response renders in chat and that the server rejects any request the OAuth grant does not cover. Only after that first tool works should you enable tools that write or touch sensitive systems.

Before you widen access, check what the logs record. For each tool, confirm that you can see the tool name, the inputs the model sent, the outputs returned and the user identity behind the call. Check this in both the Open WebUI logs and the MCP server's own logs, since a gap in either one will matter during an incident review. Then run a negative test with a non-admin account: confirm that the account cannot add or edit an MCP server, and that it cannot reach a server an administrator has not enabled for its group. Repeat the test with a token that has expired and after signing out, because without Redis, signing out does not revoke tokens, and they stay valid until they expire, by default after 4 weeks (Scaling Open WebUI).

Plan the rollback before you need it. Write down the steps that remove the server from Open WebUI, revoke the OAuth client at the identity provider, and confirm that the tool no longer appears for any user. Rehearse those steps in the test instance. The scope of this test depends on how many tools the server exposes and which systems those tools touch: a server with a handful of read-only tools against one internal database needs a short plan, while a server that writes to ticketing, finance or identity systems needs a longer one with more negative cases. Ask your team or DeployOpen to confirm the tool list and data access in writing before estimating the work.

Common MCP connection failures and what causes them

This table pairs each common MCP connection failure in Open WebUI with its probable cause and the first check to run. Read it from the top down when a tool server misbehaves, since the early rows (registration and OAuth) block everything after them. Items marked as needing confirmation depend on your identity provider, proxy or Open WebUI version and should be verified in your own environment.

FailureProbable causeFirst check
Server does not appear after adding itAdded by a non-admin account, or the endpoint URL is not reachable from the Open WebUI container or podConfirm the account is an admin, then request the server URL from inside the Open WebUI runtime and check the response
OAuth redirect or callback mismatchThe redirect URI registered with the MCP server's authorization server differs from the one Open WebUI sends, often because of scheme, host or path after a reverse proxy changeCompare the redirect URI in the authorization server client settings with the public URL Open WebUI is configured to advertise, character by character
Token rejected by the MCP serverWrong audience or scope, expired client secret, or the OAuth 2.1 client is not allowed to call that serverDecode the access token claims and check audience, scope and expiry against what the MCP server expects (confirm the exact requirements with that server's documentation)
Tools list loads but calls failThe listing request succeeds while tool invocation needs a scope or token the listing did not use, or the tool's backend credentials are missingTrigger one tool call with a single simple input and read the Open WebUI logs and the MCP server logs for the same request
Timeouts over streamable HTTPA reverse proxy or load balancer closes idle or long-running streamed responses, or buffers the stream so events arrive lateDisable response buffering for the MCP path on the proxy and raise idle timeouts there, then repeat a slow tool call
Sessions break across replicasStreamable HTTP session state lives in one replica while the next request lands on another, and no shared state store is configuredConfirm Redis and shared file storage are configured as the scaling guide describes, and check whether affinity is needed for the MCP route (confirm with your Open WebUI version)
Tokens still valid after sign-outRedis is not configured, so signing out does not revoke tokens, which then stay valid until expiry (by default 4 weeks per the scaling guide)Check whether Redis is in place and test sign-out with a captured token to see whether it is still accepted
Server works for one user but not anotherPer-user OAuth consent or group permissions differ, so the second user has no valid grant or access to the toolCompare the two users' group memberships and whether each has completed the OAuth authorization flow

Questions buyers ask about Open WebUI MCP tool servers

What does connecting MCP tool servers to Open WebUI cost?

The cost follows the written scope, which DeployOpen agrees with you before work starts. DeployOpen does not publish a price list, so the quote is built from what you need. The main cost drivers are the number of MCP servers, whether each server already runs with streamable HTTP and OAuth 2.1 or must be built or adapted, the identity configuration needed to issue tokens, the network paths to each server, and how much testing each tool needs. One-time work covers design, configuration and verification. Recurring work covers upgrades, server maintenance and retesting when a tool changes, which can run under a retainer. Ask any quote to list each server, its authentication method and its named owner.

How long does a first MCP connection take to set up and verify?

The duration depends on the server and its identity setup, so ask for milestones in the written scope rather than a single number. The biggest variables are whether the MCP server is already reachable and supports the required authentication, how many approvals the tool owner needs before permissions are granted, and how many test cases the tools need. Verification usually checks that non-admin users cannot add servers, that tokens are issued with the intended scope, that signing out behaves as expected in your setup, and that the tool calls the model makes stay within the permissions you approved. A first connection with one well-understood server will take less time than a set of servers that each need new identity work.

Can our own team set up MCP tool servers in Open WebUI?

Yes, if your team covers four skills: Open WebUI administration, OAuth 2.1 and OpenID Connect configuration, network and TLS work between the services, and a clear owner for each tool. The harder parts are rarely the connection itself. They are deciding which tools each group should see, scoping tokens to the least access the tool needs, handling WEBUI_SECRET_KEY consistently across replicas, and making sure sign-out behaves as expected when several instances run. Count who would own each of these tasks after go-live. If the answer is one person who is also responsible for other platforms, a scoped engagement often makes more sense than a build that stalls later.

What do we need to provide for MCP tool server connections?

Plan to provide three things before work starts, plus a test environment. First, identity: an OAuth 2.1 authorization server or identity provider that issues tokens for each MCP server, with client registrations and group mappings your identity team can administer. Second, network: routes from Open WebUI to each MCP server, egress rules, TLS certificates and any reverse proxy in the path. Third, tool owners: a named person for each server who approves the permissions it exposes and reviews its logs. You will also need a generated WEBUI_SECRET_KEY stored in your secrets manager, and a non-production instance where the connections can be tested before users see them.

Can users add their own MCP servers to Open WebUI?

No. MCP servers are added by administrators, because a connected server gives the model callable actions using the credentials it was configured with. If ordinary users could add servers, the model could be pointed at endpoints nobody reviewed, and chat content could be sent to them. The usual pattern is to add each approved server centrally, then control which groups can use its tools. Confirm the current permission settings for your Open WebUI version in the features documentation, since the admin and group controls for tools may change between releases. Also confirm whether any user-level tool setting remains available in your version and whether you want it enabled.

How do MCP tool servers differ from OpenAPI tool servers in Open WebUI?

The main difference is the protocol. An MCP server advertises its tools through the Model Context Protocol and, in this setup, is reached over streamable HTTP with OAuth 2.1 authorization. OpenAPI tool servers are described by an OpenAPI specification and called as HTTP endpoints. In practice, MCP servers are admin-added, while user-added OpenAPI tool servers are a separate path with different trust implications. Check the Open WebUI features documentation for the exact behavior, supported authentication options and which settings apply to each type in your version. Choose MCP when the tool needs standard discovery and OAuth 2.1 access, and OpenAPI when an existing HTTP API already has a stable specification and a clear owner.

What breaks when Open WebUI runs MCP connections on several replicas?

The most common failure is session and token handling. Without Redis, signing out does not revoke tokens, so they remain valid until they expire, which is 4 weeks by default according to the Open WebUI scaling guide. Multi-replica deployments need Redis for shared session and application state, and shared file storage so uploads reach every replica. The scaling guide also warns that the default ChromaDB crashes in multi-process setups, so an external vector database is needed if tool results feed knowledge bases. Also confirm that WEBUI_SECRET_KEY is identical across replicas and that your reverse proxy passes streaming responses through without buffering them.

How DeployOpen works on this

DeployOpen scopes MCP tool server work for Open WebUI in writing before any build starts, so the endpoints, OAuth 2.1 settings, admin-only registration and secret handling are agreed up front. The work is delivered inside your own infrastructure, with testing, documentation and handover planned alongside the configuration.

How we scope

  • Inventory the MCP servers you want, their transport, and whether each supports streamable HTTP and OAuth 2.1 authorization.
  • Define which tools each server exposes, which groups may use them, and which tasks need admin-only registration.
  • Agree the written scope, deliverables and timeline before work starts, since most engagements are fixed-scope.

How we build

  • Configure each MCP server connection in Open WebUI with OAuth 2.1 settings and a WEBUI_SECRET_KEY set from your secrets store.
  • Test token handling, sign-out behavior and tool permissions, including what happens to tokens after sign-out.
  • Compare MCP connections with any user-added OpenAPI tool servers to confirm which path each tool uses and who controls it.

How we hand over

  • Document each MCP server, its owner, scopes, group access and the admin procedure for adding or removing servers.
  • Record the WEBUI_SECRET_KEY rotation steps and where the key is stored, without including the key itself.
  • Walk your administrators through the configuration and leave a runbook they can operate without DeployOpen.

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer when your tool catalog changes over time.
  • Retest tool permissions and OAuth settings after Open WebUI upgrades, since release changes can affect connection behavior.
  • Confirm with your team which MCP servers, identity provider settings and audit requirements a retainer should cover.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.