mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-15 21:19:39 -05:00
[GH-ISSUE #24001] issue: MCP connection with bearer failed #90887
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @samuixx on GitHub (Apr 22, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/24001
Check Existing Issues
Installation Method
Docker
Open WebUI Version
V08.12
Ollama Version (if applicable)
0.21.0
Operating System
debian
Browser (if applicable)
Chrome
Confirmation
README.md.Expected Behavior
I'm trying to integrate the Home Assistant MCP server via the OpenWebUI interface. /admin/settings/integrations
URL: http://xx.xx.xx:8123/api/mcp
Authentication:
Bearer: xxxxxxxxxxxxxxxxxxx
I expect a successful connection test and a tool selection in the chat
Actual Behavior
The connection test returns no result, but the following logs appear in the Docker container:
Steps to Reproduce
Config:
Logs & Screenshots
Relevant part of the log:
Additional Information
No response
@mikesprague commented on GitHub (Apr 22, 2026):
I am seeing similar behavior for all remote MCP servers in Open WebUI v0.9.0 and above.
Same ASGI Exception error messge as reported above.
Reverting Open WebUI to v0.8.12 restores the remote MCP server functionality for me.
@samuixx commented on GitHub (Apr 22, 2026):
I'm using the latest Docker image from: ghcr.io/open-webui/open-webui:main
The "About" section shows Open WebUI version v0.8.12 (latest)
changed from main to Tag [v0.8.12] and now the connection test works
@cyberrranger commented on GitHub (Apr 23, 2026):
thx, i use
after an downgrade to 0.8.12 verify is working
@calculus-ask commented on GitHub (Apr 23, 2026):
i have time mcp server in litellm proxy and trying to add the time mcp server in open-webui.
url: http://localhost:6080/mcp/fcff69ac-d224-4850-a398-075fe9dc9d34
bearer token: sk-4wVDO8...
Traceback (most recent call last):
File "/home/--/openwebui/.venv/bin/open-webui", line 8, in
sys.exit(app())
│ │ └ <typer.main.Typer object at 0x7c02b20616d0>
│ └
└ <module 'sys' (built-in)>
File "/home/--/openwebui/.venv/lib/python3.12/site-packages/typer/main.py", line 1135, in call
return get_command(self)(*args, **kwargs)
│ │ │ └ {}
│ │ └ ()
│ └ <typer.main.Typer object at 0x7c02b20616d0>
└ <function get_command at 0x7c02b1b99440>
File "/home/--/openwebui/.venv/lib/python3.12/site-packages/click/core.py", line 1485, in call
return self.main(*args, **kwargs)
│ │ │ └ {}
│ │ └ ()
│ └ <function TyperGroup.main at 0x7c02b1b98ea0>
└
File "/home/--/openwebui/.venv/lib/python3.12/site-packages/typer/core.py", line 795, in main
return _main(
└ <function _main at 0x7c02b1b7bb00>
File "/home/--/openwebui/.venv/lib/python3.12/site-packages/typer/core.py", line 188, in _main
rv = self.invoke(ctx)
│ │ └ <click.core.Context object at 0x7c02b1380650>
│ └ <function Group.invoke at 0x7c02b1c85760>
└
File "/home/--/openwebui/.venv/lib/python3.12/site-packages/click/core.py", line 1873, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
│ │ │ │ └ <click.core.Context object at 0x7c02b1dd37a0>
│ │ │ └ <function Command.invoke at 0x7c02b1c84540>
│ │ └
│ └ <click.core.Context object at 0x7c02b1dd37a0>
└ <function Group.invoke.._process_result at 0x7c02b0faade0>
File "/home/--/openwebui/.venv/lib/python3.12/site-packages/click/core.py", line 1269, in invoke
return ctx.invoke(self.callback, **ctx.params)
│ │ │ │ │ └ {'host': '0.0.0.0', 'port': 8080}
│ │ │ │ └ <click.core.Context object at 0x7c02b1dd37a0>
│ │ │ └ <function serve at 0x7c02b0faaac0>
│ │ └
│ └ <function Context.invoke at 0x7c02b1c7b740>
└ <click.core.Context object at 0x7c02b1dd37a0>
File "/home/--/openwebui/.venv/lib/python3.12/site-packages/click/core.py", line 824, in invoke
return callback(*args, **kwargs)
│ │ └ {'host': '0.0.0.0', 'port': 8080}
│ └ ()
└ <function serve at 0x7c02b0faaac0>
File "/home/--/openwebui/.venv/lib/python3.12/site-packages/typer/main.py", line 1514, in wrapper
return callback(**use_params)
│ └ {'host': '0.0.0.0', 'port': 8080}
└ <function serve at 0x7c02b11ca2a0>
File "/home/--/openwebui/.venv/lib/python3.12/site-packages/open_webui/init.py", line 71, in serve
uvicorn.run(
│ └ <function run at 0x7c02b11ca520>
└ <module 'uvicorn' from '/home/--/openwebui/.venv/lib/python3.12/site-packages/uvicorn/init.py'>
File "/home/--/openwebui/.venv/lib/python3.12/site-packages/uvicorn/main.py", line 606, in run
server.run()
│ └ <function Server.run at 0x7c02b1222020>
└ <uvicorn.server.Server object at 0x7c0088411d30>
File "/home/--/openwebui/.venv/lib/python3.12/site-packages/uvicorn/server.py", line 75, in run
return asyncio_run(self.serve(sockets=sockets), loop_factory=self.config.get_loop_factory())
│ │ │ │ │ │ └ <function Config.get_loop_factory at 0x7c02b11ca0c0>
│ │ │ │ │ └ <uvicorn.config.Config object at 0x7c02b10e71d0>
│ │ │ │ └ <uvicorn.server.Server object at 0x7c0088411d30>
│ │ │ └ None
│ │ └ <function Server.serve at 0x7c02b12220c0>
│ └ <uvicorn.server.Server object at 0x7c0088411d30>
└ <function run at 0x7c02b1b9a480>
File "/usr/lib/python3.12/asyncio/runners.py", line 194, in run
return runner.run(main)
│ │ └ <coroutine object Server.serve at 0x7c008831da80>
│ └ <function Runner.run at 0x7c02b1308c20>
└ <asyncio.runners.Runner object at 0x7c008b7bac00>
File "/usr/lib/python3.12/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
│ │ │ └ <Task pending name='Task-1' coro=<Server.serve() running at /home/--/openwebui/.venv/lib/python3.12/site-packages/uvicor...
│ │ └ <cyfunction Loop.run_until_complete at 0x7c008a62f880>
│ └ <uvloop.Loop running=True closed=False debug=False>
└ <asyncio.runners.Runner object at 0x7c008b7bac00>
not getting any reponse also.
@Daabramov commented on GitHub (Apr 23, 2026):
same on 0.9.1
@mikesprague commented on GitHub (Apr 24, 2026):
FWIW this appears to be resolved for me in
v0.9.2