MCP cover image
See in Github
2025-04-14

Un exemple d'image Docker pour MCPO (avec NPM, curl, nodejs, uv pré-construit; MCP pré-construit: AMAP; baiduMap; serveur-brave-recherche; Tavily; Fetch), un outil qui expose les serveurs MCP (Protocole de contexte du modèle) en tant que points de terminaison HTTP compatibles OpenAPI pour OpenWeBUI.

1

Github Watches

3

Github Forks

27

Github Stars

mcpo_docker_use

An example Docker image for mcpo(with api-key environment set; npm,curl,nodejs,uv Pre-Built;Pre-Built MCP:amap;baidumap;server-brave-search; tavily;fetch), 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/flyfox666/mcpo_docker_use.git
cd mcpo_docker_use

# Copy sample files and edit them as you like.
cp config.example.json config.json    #remember to update the apikey for the mcp if need
cp docker-compose.example.yml docker-compose.yml  #remember to update the environment parameter

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

you can use docker run as follow:

docker run -d \
  --name mcpo \
  --restart unless-stopped \
  -p 8000:8000 \
  -v "$(pwd)/config.json:/app/config/config.json" \
  -v "$(pwd)/logs:/app/logs" \
  -e MCPO_API_KEY=xxx \
  --health-cmd 'curl -f http://localhost:8000/docs' \
  --health-interval=30s \
  --health-timeout=10s \
  --health-retries=3 \
  --health-start-period=40s \
  ghcr.io/flyfox666/mcpo_docker_use

Or you can build the docker from source.

docker build -t mcpo .

docker volumes & environment setting

Update the setting as your set in docker-compose.yml

volumes:
  - ./config.json:/app/config/config.json
  - ./logs:/app/logs
environment:
  - MCPO_API_KEY=xxxx  # set the API key for openwebui here
  
  # if needed ,update for your own parameter
  # - MCPO_HOST=0.0.0.0
  # - MCPO_PORT=8000
  # - MCPO_CONFIG=/app/config.json

Connect OpenWebUI to your servers

OpenAPI Tool Servers details

OpenAPI Tool Servers FAQ

  1. Open OpenWebUI > Settings > Tools
  2. Add a connection http://localhost:8000/fetch
  3. Add the apikey if you set in docker-compose.yml
  4. Check available tools on the chat page

get the API key firstly for mcp like amap-maps;brave-search;tavily from their website.

get the example and guide from mcpo.so

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

  • http://localhost:8000/fetch
  • http://localhost:8000/amap-maps
  • http://localhost:8000/brave-search
  • http://localhost:8000/tavily-mcp

MCP configuration

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

License

MIT

相关推荐

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • https://appia.in
  • Siri Shortcut Finder – your go-to place for discovering amazing Siri Shortcuts with ease

  • apappascs
  • Découvrez la collection la plus complète et la plus à jour de serveurs MCP sur le marché. Ce référentiel sert de centre centralisé, offrant un vaste catalogue de serveurs MCP open-source et propriétaires, avec des fonctionnalités, des liens de documentation et des contributeurs.

  • ShrimpingIt
  • Manipulation basée sur Micropython I2C de l'exposition GPIO de la série MCP, dérivée d'Adafruit_MCP230XX

  • modelcontextprotocol
  • Serveurs de protocole de contexte modèle

  • jae-jae
  • MCP Server pour récupérer le contenu de la page Web à l'aide du navigateur sans tête du dramwright.

  • ravitemer
  • Un puissant plugin Neovim pour gérer les serveurs MCP (Protocole de contexte modèle)

  • Mintplex-Labs
  • L'application tout-en-un desktop et Docker AI avec chiffon intégré, agents AI, constructeur d'agent sans code, compatibilité MCP, etc.

  • patruff
  • Pont entre les serveurs Olllama et MCP, permettant aux LLM locaux d'utiliser des outils de protocole de contexte de modèle

  • pontusab
  • La communauté du curseur et de la planche à voile, recherchez des règles et des MCP

  • WangRongsheng
  • 🧑‍🚀 全世界最好的 LLM 资料总结 (数据处理、模型训练、模型部署、 O1 模型、 MCP 、小语言模型、视觉语言模型) | Résumé des meilleures ressources LLM du monde.

    Reviews

    2 (1)
    Avatar
    user_mmravNBb
    2025-04-17

    As a loyal user of the MCP application, I find mcpo_docker_use by flyfox666 to be an incredibly efficient tool for Docker environment management. The setup is straightforward, well-documented, and immensely useful for streamlining container operations. Highly recommend checking it out on GitHub!