MCP-Bridge

A middleware to provide an openAI compatible endpoint that can call MCP tools

GitHub Stars

849

User Rating

Not Rated

Favorites

0

Views

49

Forks

106

Issues

31

Installation
Difficulty
Intermediate
Estimated Time
10-20 minutes

Installation

Installation

Prerequisites

Docker: Latest version
vLLM: Tested (ollama should also be compatible)

Installation Steps

1. Clone Repository

bash
git clone https://github.com/SecretiveShell/MCP-Bridge
cd MCP-Bridge

2. Edit compose.yml File

You need to add a reference to the config.json file. Choose one of the following:
Add the config.json file to the same directory as the compose.yml file and use a volume mount
Add an HTTP URL to the environment variables to download the config.json file
Add the config.json directly as an environment variable
Example:
yaml
environment:
  - MCP_BRIDGE__CONFIG__FILE=config.json
  - MCP_BRIDGE__CONFIG__HTTP_URL=http://10.88.100.170:8888/config.json
  - MCP_BRIDGE__CONFIG__JSON={"inference_server":{"base_url":"http://example.com/v1","api_key":"None"},"mcp_servers":{"fetch":{"command":"uvx","args":["mcp-server-fetch"]}}}
Volume mount example:
yaml
volumes:
  - ./config.json:/mcp_bridge/config.json

3. Run the Service


docker-compose up --build -d

Additional Resources