issue: cannot connect to multiple mcp server with mcpo #27

Closed
opened 2026-02-15 20:17:31 -05:00 by yindo · 7 comments
Owner

Originally created by @tom-cat-mao on GitHub (Apr 8, 2025).

Check Existing Issues

  • I have searched the existing issues and discussions.
  • I am using the latest version of Open WebUI.

Installation Method

Pip Install

Open WebUI Version

0.6.2

Ollama Version (if applicable)

No response

Operating System

Archlinux 6.12.21

Browser (if applicable)

chromium 135.0

Confirmation

  • I have read and followed all instructions in README.md.
  • I am using the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have listed steps to reproduce the bug in detail.

Expected Behavior

use the mcpo --config /path/to/config.json to connect to multiple mcp server with mcpo
my config.jsonn is here

config.json

Actual Behavior

the http://localhost:8000/fetch give me 404
but the localhost:8000/fetch/docs can give me the document
and other tools have the same problem
but if i use the uvx mcpo --port 8000 it can connect to the mcp server

Steps to Reproduce

  1. mcpo --config /path/to/config.json
  2. open localhost:8000/fetch
  3. or use the tool in open-webui

Logs & Screenshots

❯ mcpo --config ~/bin/open-webui/config.json
Starting MCP OpenAPI Proxy with config file: /home/tomcat/bin/open-webui/config.json
INFO: Started server process [7629]
INFO: Waiting for application startup.
2025-04-08 14:08:28,936 - BlenderMCPServer - INFO - BlenderMCP server starting up
2025-04-08 14:08:28,936 - BlenderMCPServer - ERROR - Failed to connect to Blender: [Errno 111] Connection refused
2025-04-08 14:08:28,936 - BlenderMCPServer - ERROR - Failed to connect to Blender
2025-04-08 14:08:28,936 - BlenderMCPServer - WARNING - Could not connect to Blender on startup: Could not connect to Blender. Make sure the Blender addon is running.
2025-04-08 14:08:28,936 - BlenderMCPServer - WARNING - Make sure the Blender addon is running before using Blender resources or tools
2025-04-08 14:08:28,940 - mcp.server.lowlevel.server - INFO - Processing request of type ListToolsRequest
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
INFO: 127.0.0.1:47984 - "POST /fetch HTTP/1.1" 307 Temporary Redirect
INFO: 127.0.0.1:47984 - "POST /fetch/ HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:48000 - "POST /fetch HTTP/1.1" 307 Temporary Redirect
INFO: 127.0.0.1:48000 - "POST /fetch/ HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:57152 - "GET /openapi.json HTTP/1.1" 200 OK
INFO: 127.0.0.1:40014 - "GET /fetch/docs HTTP/1.1" 200 OK
INFO: 127.0.0.1:40014 - "GET /fetch/openapi.json HTTP/1.1" 200 OK
INFO: 127.0.0.1:51510 - "POST /fetch HTTP/1.1" 307 Temporary Redirect
INFO: 127.0.0.1:51510 - "POST /fetch/ HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:46798 - "POST /fetch HTTP/1.1" 307 Temporary Redirect
INFO: 127.0.0.1:46798 - "POST /fetch/ HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:55094 - "OPTIONS /openapi.json HTTP/1.1" 200 OK
INFO: 127.0.0.1:55094 - "GET /openapi.json HTTP/1.1" 200 OK
INFO: 127.0.0.1:57612 - "GET /docs HTTP/1.1" 200 OK

Additional Information

No response

Originally created by @tom-cat-mao on GitHub (Apr 8, 2025). ### Check Existing Issues - [x] I have searched the existing issues and discussions. - [x] I am using the latest version of Open WebUI. ### Installation Method Pip Install ### Open WebUI Version 0.6.2 ### Ollama Version (if applicable) _No response_ ### Operating System Archlinux 6.12.21 ### Browser (if applicable) chromium 135.0 ### Confirmation - [x] I have read and followed all instructions in `README.md`. - [x] I am using the latest version of **both** Open WebUI and Ollama. - [x] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have listed steps to reproduce the bug in detail. ### Expected Behavior use the **mcpo --config /path/to/config.json** to connect to multiple mcp server with mcpo my config.jsonn is here [config.json](https://github.com/user-attachments/files/19643890/config.json) ### Actual Behavior the http://localhost:8000/fetch give me 404 but the localhost:8000/fetch/docs can give me the document and other tools have the same problem but if i use the uvx mcpo --port 8000 it can connect to the mcp server ### Steps to Reproduce 1. mcpo --config /path/to/config.json 2. open localhost:8000/fetch 3. or use the tool in open-webui ### Logs & Screenshots ❯ mcpo --config ~/bin/open-webui/config.json Starting MCP OpenAPI Proxy with config file: /home/tomcat/bin/open-webui/config.json INFO: Started server process [7629] INFO: Waiting for application startup. 2025-04-08 14:08:28,936 - BlenderMCPServer - INFO - BlenderMCP server starting up 2025-04-08 14:08:28,936 - BlenderMCPServer - ERROR - Failed to connect to Blender: [Errno 111] Connection refused 2025-04-08 14:08:28,936 - BlenderMCPServer - ERROR - Failed to connect to Blender 2025-04-08 14:08:28,936 - BlenderMCPServer - WARNING - Could not connect to Blender on startup: Could not connect to Blender. Make sure the Blender addon is running. 2025-04-08 14:08:28,936 - BlenderMCPServer - WARNING - Make sure the Blender addon is running before using Blender resources or tools 2025-04-08 14:08:28,940 - mcp.server.lowlevel.server - INFO - Processing request of type ListToolsRequest INFO: Application startup complete. INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit) INFO: 127.0.0.1:47984 - "POST /fetch HTTP/1.1" 307 Temporary Redirect INFO: 127.0.0.1:47984 - "POST /fetch/ HTTP/1.1" 404 Not Found INFO: 127.0.0.1:48000 - "POST /fetch HTTP/1.1" 307 Temporary Redirect INFO: 127.0.0.1:48000 - "POST /fetch/ HTTP/1.1" 404 Not Found INFO: 127.0.0.1:57152 - "GET /openapi.json HTTP/1.1" 200 OK INFO: 127.0.0.1:40014 - "GET /fetch/docs HTTP/1.1" 200 OK INFO: 127.0.0.1:40014 - "GET /fetch/openapi.json HTTP/1.1" 200 OK INFO: 127.0.0.1:51510 - "POST /fetch HTTP/1.1" 307 Temporary Redirect INFO: 127.0.0.1:51510 - "POST /fetch/ HTTP/1.1" 404 Not Found INFO: 127.0.0.1:46798 - "POST /fetch HTTP/1.1" 307 Temporary Redirect INFO: 127.0.0.1:46798 - "POST /fetch/ HTTP/1.1" 404 Not Found INFO: 127.0.0.1:55094 - "OPTIONS /openapi.json HTTP/1.1" 200 OK INFO: 127.0.0.1:55094 - "GET /openapi.json HTTP/1.1" 200 OK INFO: 127.0.0.1:57612 - "GET /docs HTTP/1.1" 200 OK ### Additional Information _No response_
yindo added the bug label 2026-02-15 20:17:31 -05:00
yindo closed this issue 2026-02-15 20:17:31 -05:00
Author
Owner

@tjbck commented on GitHub (Apr 8, 2025):

You need to add in multiple endpoints.

Each tool will be accessible under its own unique route, e.g.:
http://localhost:8000/memory
http://localhost:8000/time
Each with a dedicated OpenAPI schema and proxy handler. Access full schema UI at: http://localhost:8000/[tool]/docs (e.g. /memory/docs, /time/docs)

@tjbck commented on GitHub (Apr 8, 2025): You need to add in multiple endpoints. > Each tool will be accessible under its own unique route, e.g.: > http://localhost:8000/memory > http://localhost:8000/time > Each with a dedicated OpenAPI schema and proxy handler. Access full schema UI at: http://localhost:8000/[tool]/docs (e.g. /memory/docs, /time/docs)
Author
Owner

@tjbck commented on GitHub (Apr 8, 2025):

Could you share a screenshot of your tool server configuration?

@tjbck commented on GitHub (Apr 8, 2025): Could you share a screenshot of your tool server configuration?
Author
Owner

@tjbck commented on GitHub (Apr 8, 2025):

http://localhost:8000/memory should be the url.

@tjbck commented on GitHub (Apr 8, 2025): `http://localhost:8000/memory` should be the url.
Author
Owner

@tom-cat-mao commented on GitHub (Apr 8, 2025):

Fix it with the endpoint change. Thank you for your help.

@tom-cat-mao commented on GitHub (Apr 8, 2025): Fix it with the endpoint change. Thank you for your help.
Author
Owner

@iwongta commented on GitHub (Apr 13, 2025):

@tom-cat-mao How can it be specifically solved?

@iwongta commented on GitHub (Apr 13, 2025): @tom-cat-mao How can it be specifically solved?
Author
Owner

@tom-cat-mao commented on GitHub (Apr 15, 2025):

@iwongta
in the settings>>tools and add a mcp server using the server name as the endpoint

@tom-cat-mao commented on GitHub (Apr 15, 2025): @iwongta in the settings>>tools and add a mcp server using the server name as the endpoint
Author
Owner

@bklebel commented on GitHub (Jan 30, 2026):

@tom-cat-mao I have this same issue. No matter what I do, I get the "307 Temporary Redirect" and then "404 Not Found" errors. OpenWebUI v0.7.2 - could you provide a screenshot? :S

@bklebel commented on GitHub (Jan 30, 2026): @tom-cat-mao I have this same issue. No matter what I do, I get the "307 Temporary Redirect" and then "404 Not Found" errors. OpenWebUI v0.7.2 - could you provide a screenshot? :S
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: open-webui/mcpo#27