MCP ExplorerExplorer

Mcpo Docker

@lkoujiuon 9 months ago
2 MIT
FreeCommunity
AI Systems
An example Docker image for mcpo, a tool that exposes MCP (Model Context Protocol) servers as OpenAPI-compatible HTTP endpoints for OpenWebUI.

Overview

What is Mcpo Docker

mcpo-docker is an example Docker image for mcpo, a tool that exposes MCP (Model Context Protocol) servers as OpenAPI-compatible HTTP endpoints for OpenWebUI.

Use cases

Use cases for mcpo-docker include developing tools that require access to various MCP functionalities, creating demos for OpenWebUI, and facilitating communication between different services using MCP.

How to use

To use mcpo-docker, clone the repository, copy and edit the sample configuration files, and then create a Docker container using ‘docker compose up -d’. Alternatively, you can build the Docker image from source using ‘docker build -t mcpo .’.

Key features

Key features of mcpo-docker include the ability to expose multiple MCP servers as separate OpenAPI-compatible endpoints, easy configuration through JSON files, and integration with OpenWebUI for enhanced usability.

Where to use

mcpo-docker can be used in web development, API integration, and any application that requires interaction with multiple MCP servers through a unified interface.

Content

mcpo-docker

The source from alephpiece .

An example Docker image for mcpo, a tool that exposes MCP (Model Context Protocol) servers as OpenAPI-compatible HTTP endpoints for OpenWebUI.

Still waiting for the official mcpo docker!

Quick start

# Pull the repo
git clone https://github.com/lkoujiu/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

Or you can build the docker from source.

docker build -t mcpo .

Connect OpenWebUI to your servers

See OpenAPI Tool Servers for details.

  1. Open OpenWebUI > Settings > Tools
  2. Add a connection http://localhost:8000/memory
  3. Check available tools on the chat page

With mcpo, each MCP server gets a separate endpoint. For example:

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

MCP configuration

Standard MCP configuration file, see config.example.json.

License

MIT

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers