How can I add CORS settings? #8

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

Originally created by @wedobetter on GitHub (Apr 1, 2025).

Originally assigned to: @tjbck on GitHub.

Please document how to configure CORS settings.

Originally created by @wedobetter on GitHub (Apr 1, 2025). Originally assigned to: @tjbck on GitHub. Please document how to configure CORS settings.
yindo closed this issue 2026-02-15 20:17:23 -05:00
Author
Owner

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

--cors-allow-origins flag added with 1670568e5a

usage: uvx mcpo --port 8000 --cors-allow-origins "*" -- your_mcp_server_command

@tjbck commented on GitHub (Apr 2, 2025): `--cors-allow-origins` flag added with 1670568e5a4dab41bfeaaf1a0928506f3347771f usage: `uvx mcpo --port 8000 --cors-allow-origins "*" -- your_mcp_server_command`
Author
Owner

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

Released with 0.0.6

@tjbck commented on GitHub (Apr 2, 2025): Released with 0.0.6
Author
Owner

@mobilestack commented on GitHub (Apr 14, 2025):

--cors-allow-origins flag added with 1670568

usage: uvx mcpo --port 8000 --cors-allow-origins "*" -- your_mcp_server_command

still not working when I use it in Docker doployed on a server and access the url by ip and port.

FROM python:3.11-alpine

WORKDIR /app
COPY ./config.json .

# Install Node.js and npm
RUN apk add --no-cache nodejs npm

RUN pip3 install --break-system-packages mcpo uv

EXPOSE 8100

CMD uvx mcpo --host 0.0.0.0 --port 8100 --cors-allow-origins "*" --config /app/config.json
@mobilestack commented on GitHub (Apr 14, 2025): > `--cors-allow-origins` flag added with [1670568](https://github.com/open-webui/mcpo/commit/1670568e5a4dab41bfeaaf1a0928506f3347771f) > > usage: `uvx mcpo --port 8000 --cors-allow-origins "*" -- your_mcp_server_command` still not working when I use it in Docker doployed on a server and access the url by ip and port. ``` FROM python:3.11-alpine WORKDIR /app COPY ./config.json . # Install Node.js and npm RUN apk add --no-cache nodejs npm RUN pip3 install --break-system-packages mcpo uv EXPOSE 8100 CMD uvx mcpo --host 0.0.0.0 --port 8100 --cors-allow-origins "*" --config /app/config.json ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: open-webui/mcpo#8