Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 37 additions & 1 deletion docs/features/extensibility/plugin/tools/openapi-servers/mcp.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ No complex setup—just REST APIs ready to use.

Deploying your MCP-to-OpenAPI proxy (powered by mcpo) is straightforward. Here's how to easily Dockerize and deploy it to cloud or VPS solutions:

### 🐳 Dockerize your Proxy Server using mcpo
### Dockerize your Proxy Server using mcpo

1. **Dockerfile Example**

Expand All @@ -162,6 +162,42 @@ docker build -t mcp-proxy-server .
docker run -d -p 8000:8000 mcp-proxy-server
```

If you want to use the published mcpo image instead of building your own image, bind the proxy to `0.0.0.0` so Docker port publishing can reach it:

```bash
docker run --rm -p 8000:8000 ghcr.io/open-webui/mcpo:main \
--host 0.0.0.0 \
--port 8000 \
--api-key "top-secret" \
-- your_mcp_server_command
```

For Docker Compose, put the same mcpo arguments in the service command:

```yaml
services:
mcpo:
image: ghcr.io/open-webui/mcpo:main
ports:
- "8000:8000"
command:
- --host
- 0.0.0.0
- --port
- "8000"
- --api-key
- top-secret
- --
- your_mcp_server_command
```

Replace `your_mcp_server_command` with your MCP server command, adding each argument as its own `command` list item. Then start and remove the proxy with:

```bash
docker compose up
docker compose down
```

3. **Deploying Your Container**

Push to DockerHub or another registry:
Expand Down