Home
What it does¶
The bridge sits in front of your Ollama server and speaks the same API. Every endpoint
behaves identically except /api/chat, which injects the tools from all
connected MCP servers and runs the tool-calling loop server-side.
Your client never sees the loop. It sends one chat request and gets one answer back — with tool results already folded in, streamed in real time.
-
Drop-in replacement
Same endpoints, same payloads. Change the host your Ollama client points at and nothing else. Existing SDKs and libraries keep working.
-
Any MCP transport
Local processes over stdio, remote servers over StreamableHTTP or SSE. The transport is inferred from the config — you just declare the server.
-
Multi-round tool calling
The bridge loops until the model stops asking for tools, then returns the final answer. Cap it with
--max-tool-roundswhen you want a ceiling. -
Per-server tool filtering
Allow-list or deny-list the tools each server exposes, so the model only sees what you want it to reach for.
-
Local and cloud models
Point it at a local Ollama, a remote one, or Ollama's cloud models. Add upstream headers when there's a gateway or auth layer in between.
-
Runs anywhere
uvx,pip, or pre-built multi-arch Docker images forlinux/amd64andlinux/arm64published on every release.
Get running in a minute¶
You'll need an mcp-config.json with at least one server
in it, and an Ollama server running.
Full quick start Installation options
Related projects¶
- MCP Client for Ollama — a TUI client for MCP servers with Ollama. Multi-server support, model switching, streaming, tool management, human-in-the-loop, thinking mode and saved preferences.
- simple-ollama-chat — a small chat UI that works with the bridge, handy for exercising tool-augmented models quickly.