/ 目录 / 演练场 / Open WebUI
● 官方 open-webui ⚡ 即开即用

Open WebUI

作者 open-webui · open-webui/open-webui

Self-hosted ChatGPT-like UI with MCP support — point it at Ollama or any provider and consume MCP tools through a real web app.

Open WebUI is the most-used self-hosted chat UI. It supports MCP servers as tools, so you can run Claude-style workflows on your hardware. Useful when you need a multi-user UI in front of MCP that isn't Claude Desktop.

为什么要用

核心特性

实时演示

实际使用效果

就绪

安装

选择你的客户端

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "open-webui-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-p",
        "3000:8080",
        "ghcr.io/open-webui/open-webui:main"
      ]
    }
  }
}

打开 Claude Desktop → Settings → Developer → Edit Config。保存后重启应用。

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "open-webui-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-p",
        "3000:8080",
        "ghcr.io/open-webui/open-webui:main"
      ]
    }
  }
}

Cursor 使用与 Claude Desktop 相同的 mcpServers 格式。项目级配置优先于全局。

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "open-webui-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-p",
        "3000:8080",
        "ghcr.io/open-webui/open-webui:main"
      ]
    }
  }
}

点击 Cline 侧栏中的 MCP Servers 图标,然后选 "Edit Configuration"。

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "open-webui-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-p",
        "3000:8080",
        "ghcr.io/open-webui/open-webui:main"
      ]
    }
  }
}

格式与 Claude Desktop 相同。重启 Windsurf 生效。

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "open-webui-mcp",
      "command": "docker",
      "args": [
        "run",
        "-p",
        "3000:8080",
        "ghcr.io/open-webui/open-webui:main"
      ]
    }
  ]
}

Continue 使用服务器对象数组,而非映射。

~/.config/zed/settings.json
{
  "context_servers": {
    "open-webui-mcp": {
      "command": {
        "path": "docker",
        "args": [
          "run",
          "-p",
          "3000:8080",
          "ghcr.io/open-webui/open-webui:main"
        ]
      }
    }
  }
}

加入 context_servers。Zed 保存后热重载。

claude mcp add open-webui-mcp -- docker run -p 3000:8080 ghcr.io/open-webui/open-webui:main

一行命令搞定。用 claude mcp list 验证,claude mcp remove 卸载。

使用场景

实战用法: Open WebUI

Give a team a chat UI that uses your internal MCPs

👤 Developers ⏱ ~15 min intermediate

何时使用: Not everyone runs Claude Desktop, but you want them on the same MCP tools.

步骤
  1. Deploy
    Run Open WebUI via Docker.✓ 已复制
    → UI up
  2. Register MCPs
    Add your MCP servers in admin settings.✓ 已复制
    → Tools visible
  3. Invite
    Add team accounts.✓ 已复制
    → Team using MCPs

结果: Team chat UI on top of internal MCP tools.

组合

与其他 MCP 搭配,撬动十倍杠杆

open-webui-mcp + ollama

Pair Open WebUI with local Ollama for fully-private team chat

Combine open-webui-mcp with ollama: Pair Open WebUI with local Ollama for fully-private team chat✓ 已复制

工具

此 MCP 暴露的能力

工具输入参数何时调用成本
mcp.register (see docs) Register an MCP server 1 call
chat.invoke (see docs) Send a chat that may call MCP tools 1 call

成本与限制

运行它的成本

API 配额
N/A self-host
每次调用 Token 数
Per provider
费用
Free OSS
提示
Use local models for low-stakes chats

安全

权限、密钥、影响范围

最小权限: openwebui:admin
凭据存储: User DB + provider keys
数据出站: Configured providers
切勿授予: Run on the public internet without auth

故障排查

常见错误与修复

MCP tool not visible

Re-register and check the server is reachable from the container

替代方案

Open WebUI 对比其他方案

替代方案何时用它替代权衡
5ireSingle-user desktopNot multi-user

更多

资源

📖 阅读 GitHub 上的官方 README

🐙 查看未解决的 issue

🔍 浏览全部 400+ MCP 服务器和 Skills