MCPO Docker镜像

一个将MCP(模型上下文协议)服务器暴露为OpenAPI兼容HTTP端点的Docker镜像,适用于OpenWebUI。

  • by alephpiece
  • Dockerfile
  • 本地部署
  • 24 星标
  • 更新于
在 GitHub 查看 alephpiece/mcpo-docker

使用说明

mcpo码头

Docker镜像示例 mcpo,该工具将MCP(模型上下文协议)服务器暴露为OpenAPI兼容的HTTP端点,用于 OpenWeb用户界面.

仍在等待官方mcpo docker!

快速启动

# Pull the repo
git clone https://github.com/alephpiece/mcpo-docker.git
cd mcpo-docker

# Copy sample files and edit them as you like.
cp config.example.json config.json
cp docker-compose.example.yml docker-compose.yml

# Create a container and wait for the servers to start.
# It may take time if you have many servers enabled.
docker compose up -d

或者你可以从源代码构建docker。

docker build -t mcpo .

将OpenWebUI连接到您的服务器

看 OpenAPI工具服务器 了解详情。

  1. 打开OpenWebUI>设置>工具
  2. 添加连接 http://localhost:8000/memory
  3. 查看聊天页面上的可用工具

使用mcpo,每个MCP服务器都有一个单独的端点。例如:

  • http://localhost:8000/sequential-thinking
  • http://localhost:8000/memory
  • http://localhost:8000/time

MCP配置

标准MCP配置文件,请参阅 config.example.json.

许可证

麻省理工学院