mcpo_docker_use logo

mcpo_docker_use

by flyfox666

This is an example Docker image for mcpo, a tool that exposes MCP (Model Context Protocol) servers as OpenAPI-compatible HTTP endpoints for OpenWebUI. It includes pre-built dependencies and configurations for various MCP servers.

View on GitHub

Last updated: N/A

What is mcpo_docker_use?

This Docker image provides a pre-configured environment for running mcpo, allowing you to easily expose MCP servers like amap, baidumap, Brave Search, and Tavily as OpenAPI endpoints for use with OpenWebUI. It simplifies deployment and configuration by including necessary dependencies and example configurations.

How to use mcpo_docker_use?

  1. Clone the repository. 2. Copy and edit the example configuration files (config.json, docker-compose.yml), updating the API key and other environment parameters as needed. 3. Use docker compose up -d to create and start the container, or use docker run with the provided parameters. Alternatively, you can build the docker image from source using docker build -t mcpo .. 4. Configure OpenWebUI to connect to the exposed endpoints, adding the API key if set.

Key features of mcpo_docker_use

  • Pre-built Docker image for mcpo

  • Includes npm, curl, nodejs, and uv

  • Pre-built MCP configurations (amap, baidumap, server-brave-search, tavily, fetch)

  • Easy deployment with Docker Compose or Docker run

  • Configurable API key and environment variables

Use cases of mcpo_docker_use

  • Integrating MCP servers with OpenWebUI

  • Quickly deploying and testing MCP configurations

  • Creating custom OpenAPI endpoints for MCP services

  • Simplifying the setup process for mcpo

  • Running multiple MCP servers in a containerized environment

FAQ from mcpo_docker_use

How do I configure the API key?

Set the MCPO_API_KEY environment variable in your docker-compose.yml or docker run command.

How do I add more MCP servers?

Modify the config.json file to include the configuration for the desired MCP servers.

How do I connect OpenWebUI to the mcpo server?

In OpenWebUI, go to Settings > Tools and add a connection to http://localhost:8000/fetch (or the appropriate endpoint for your server).

Where can I find more information about mcpo?

Visit mcpo.so for examples and guides.

What is the default port?

The default port is 8000, but it can be changed by setting the MCPO_PORT environment variable.