Ollama MCP Bridge is an MCP server that provides an API proxy layer between local or cloud Ollama instances and external Model Context Protocol servers. It allows software developers, researchers, and automation engineers using local language models to equip Ollama with external tool execution capabilities. The service loads configured MCP servers on startup, gathering tools across local process transports (stdio), StreamableHTTP, and SSE connections. When a client application sends a chat completion request to the bridge's /api/chat endpoint, the service injects all available MCP tool definitions into the Ollama payload. If the model invokes one or more tools, the bridge executes those calls against the target MCP servers, returns the outputs to Ollama, and handles multi-round execution loops until completion. All standard Ollama endpoints other than the chat endpoint are proxied directly to the upstream server without modification, preserving native compatibility with existing Ollama clients and frontends while providing real-time streaming and thinking-mode output.
Category: AI & LLM Tooling
Tags: bridge, llm, local-models, ollama
uvx ollama-mcp-bridge or install it with pip using pip install --upgrade ollama-mcp-bridge. 3. Create an mcp-config.json file defining your target MCP servers using stdio, HTTP, or SSE transport formats. 4. Run the bridge specifying your configuration file and target Ollama instance: ollama-mcp-bridge --config mcp-config.json --ollama-url http://localhost:11434. 5. Alternatively, launch the pre-built container using Docker: docker run -p 8000:8000 -e OLLAMA_URL=http://host.docker.internal:11434 -v "$PWD/mcp-config.json:/mcp-config.json" ghcr.io/jonigl/ollama-mcp-bridge:latest. 6. Direct your AI application or frontend client to use http://localhost:8000 as the Ollama host URL.Part of MCP Servers
Ollama MCP Bridge acts as a proxy in front of an Ollama server. It aggregates tools from multiple Model Context Protocol servers configured over stdio, HTTP, or SSE and exposes them to Ollama models during /api/chat requests. It handles automatic multi-round tool execution loops, tool filtering, variable expansion, response streaming, and direct proxying for non-chat endpoints.
You can run Ollama MCP Bridge instantly without manual package setup by using uvx with uvx ollama-mcp-bridge. Alternatively, install it through pip using pip install --upgrade ollama-mcp-bridge, run it via Docker Compose using docker compose up, or deploy the official multi-arch container image directly from GitHub Container Registry.
Ollama MCP Bridge acts as a middleware client to other MCP servers while exposing an Ollama-compatible API. Any client application, frontend, or library that communicates with the standard Ollama API can connect to the bridge by changing the target base URL to the bridge's host address.
Yes, Ollama MCP Bridge is an open source project distributed under the MIT license. The source code, issue tracker, and contribution guidelines are publicly accessible on GitHub.