Connect Open WebUI and other MCP clients
Chat clients like a self-hosted Open WebUI can call QA-Board's
MCP server at https://<your-qaboard>/mcp, as each of your users: users sign in to QA-Board once,
allow the app, and it gets tokens of theirs that can only read. QA-Board is the OAuth 2.1 authorization server: you
register the app in QA-Board, then paste its client ID and secret in the app.
Turn on QA-Board's MCP server
The MCP server for remote clients is an optional service, from the backend's image (qa mcp --http). Set
QABOARD_URL to the URL users reach QA-Board at, the same for the backend and the MCP server: the MCP server sends
clients to the backend's OAuth metadata, and clients refuse it unless its issuer is the URL the MCP server names.
- Docker Compose: add
COMPOSE_PROFILES=mcpto your env file (or rundocker compose --profile mcp up -d). nginx routes/mcpto it. - Helm: set
mcp.enabled: true, andconfig.QABOARD_URL(ormcp.publicUrl) when your ingress doesn't give the URL users reach QA-Board at. The chart gives the backend and the MCP server the same URL.
When QA-Board's URL has a path (https://example.com/qaboard), the MCP server answers at /qaboard/mcp, and its
OAuth metadata at /.well-known/oauth-protected-resource/qaboard/mcp: your proxy passes both as they are. If QA-Board
can't be reached to check a token, clients get a 503.
It keeps no state: add replicas as you need. It calls QA-Board with each user's own token, so users see exactly what they can see in the web app.
Register the app in QA-Board
- Choose the connection ID you'll give QA-Board's MCP server in Open WebUI, e.g.
qaboard: Open WebUI sends users back to a URL with it. - In QA-Board, open Admin → Connected apps, then Register an app.
- Name: what users see when they allow it, e.g.
Open WebUI. - Redirect URIs: where the app receives users back, exactly. Open WebUI's is
https://<open-webui>/oauth/clients/mcp:<connection-id>/callback, e.g.https://openwebui.example.com/oauth/clients/mcp:qaboard/callback.<open-webui>is Open WebUI's URL as its users reach it (itsWEBUI_URLsetting). - Register, then copy the Client ID and the Client secret: the secret is only shown now.
Redirect URIs use https://, except for apps on the user's own computer: http://localhost, http://127.0.0.1
and http://[::1]. You can change the name and the redirect URIs later. If you lose the secret, register the app
again and revoke the old one. Register an app for each Open WebUI connection: users allow an app once, and allowing it
again replaces what they allowed it before.
Add QA-Board's MCP server in Open WebUI
- In Open WebUI, open Admin Settings → Integrations, and add a connection (+) to External Tool Servers.
- Type: MCP (Streamable HTTP). URL:
https://<your-qaboard>/mcp. - Auth: OAuth 2.1 (Static). Paste the Client ID and the Client secret. Leave OAuth Server URL empty: Open WebUI finds QA-Board from the MCP server.
- ID: the connection ID of the redirect URI you registered, e.g.
qaboard. Then Register (it checks the client) and Save. - Users connect it from a chat's tools: Open WebUI sends them to QA-Board, which asks them to sign in, then to allow the app (see Allowing apps). Open WebUI keeps a token per user and refreshes it.
"invalid_client" means the client ID or secret is wrong, or the app's registration was revoked. "redirect_uri" means the connection ID or Open WebUI's URL don't match the redirect URI you registered: compare them in Admin → Connected apps, the match is exact.
Other MCP clients that support OAuth with a client ID and secret work the same way: register their redirect URI. QA-Board doesn't support dynamic client registration yet: clients that require it can't connect.
What the apps can do
- Read only: their tokens have the
readscope, and only see what the user can see. They can't change anything, create tokens or allow other apps. - Short-lived tokens: an access token lasts an hour, then the app refreshes it. The previous access token works until it expires, so that a long call isn't cut. Refresh tokens are used once: one that comes back a second time, like a code used twice, revokes what the user allowed.
- Unused apps expire: after
oauth.refresh_idle_expiry_days(90 days by default, Admin → Settings → API tokens and results) without a refresh, users allow the app again. - Users see and revoke them in Settings → Connected apps, one row per app: allowing an app again replaces what they allowed it before. You see the apps' tokens in Admin → Tokens, as "Connected app": revoking one revokes the app for that user, with all its tokens.
- Revoke an app in Admin → Connected apps: it can't get tokens anymore, and those it has stop working at once.
Every registration, approval, denial, first token and revocation is in the audit log, under Tokens. The hourly refreshes aren't. The jobs worker deletes the apps' expired tokens, and what users revoked over 90 days ago: the audit log keeps its events.
The OAuth endpoints, for other clients
QA-Board's metadata (RFC 8414) is at https://<your-qaboard>/.well-known/oauth-authorization-server. Its issuer is
QABOARD_URL (else the host of the request), so set it to the URL users reach QA-Board at. The flow is the authorization code flow with PKCE
(S256, required), and the resource parameter (RFC 8707). Apps authenticate to the token endpoint with HTTP Basic
(client_secret_basic) or in the form (client_secret_post). The redirects back to the app carry iss (RFC 9207).
The revocation endpoint (RFC 7009) revokes everything a refresh token or an access token came with. The endpoints
are under /api/v1/oauth/ and documented in the HTTP API reference.
Behind your own proxy, route /.well-known/oauth-authorization-server to QA-Board, like /api/.