Ollama MCP bridge
MCP server by jonigl Verified · gh:jonigl
Ollama MCP Bridge is a proxy in front of the Ollama API that adds tools from several MCP servers to chat requests. It is for developers building local LLM apps, AI agents and custom chatbots.
Install Ollama MCP bridge
Built from the published package, never by AI.
claude mcp add ollama-mcp-bridge -- uvx ollama-mcp-bridgeRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"ollama-mcp-bridge": {
"args": [
"ollama-mcp-bridge"
],
"command": "uvx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"ollama-mcp-bridge": {
"args": [
"ollama-mcp-bridge"
],
"command": "uvx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"ollama-mcp-bridge": {
"args": [
"ollama-mcp-bridge"
],
"command": "uvx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add ollama-mcp-bridge -- uvx ollama-mcp-bridge{
"mcpServers": {
"ollama-mcp-bridge": {
"args": [
"ollama-mcp-bridge"
],
"command": "uvx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add ollama-mcp-bridge uvx ollama-mcp-bridgeGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the ollama-mcp-bridge block.
About
Ollama MCP Bridge sits in front of the Ollama API and connects to multiple MCP servers at startup. It supports stdio, StreamableHTTP and SSE transports. On each /api/chat request, it adds the tools from all connected servers, runs any tool calls through the matching MCP server, and feeds the results back to Ollama. This repeats until no more tool calls are needed, and responses stream to the client throughout.
All other Ollama endpoints are proxied without modification, so existing clients can keep working. Tools can be filtered per server with include or exclude lists. The bridge works with local and Ollama cloud models. It is aimed at developers building local LLM applications, AI agents and custom chatbots.
Written from the project's README and checked against it.
Tools it gives your assistant
Multi-server tool loadingConnects to several MCP servers at startup and makes their tools available to Ollama.Multi-round tool executionLoops through rounds of tool calls on /api/chat until the model finishes.Tool filteringUses include or exclude lists per server to control which tools are available.Transparent API proxyProxies all Ollama endpoints except /api/chat, /health and /version without changes.Streaming responsesStreams responses to the client in real time during tool execution.Config variable expansionExpands ${env:VAR_NAME} and ${workspaceFolder} in config strings.
What you need
- Python 3.10.15 or newer
- A running Ollama server, local or remote
- An MCP server configuration file with at least one server
Try asking
- Use the weather tools through my local Ollama model to get the forecast for Berlin.
- Ask my Ollama chat app to check the temperature using the connected MCP tools.
- Set up an Ollama chatbot that can call tools from several MCP servers.
Good to know
- Tools from MCP servers are only integrated on the /api/chat endpoint.
- Other Ollama endpoints are passed through unmodified.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Ollama MCP bridge
All alternatives →Turns GitHub repositories into architecture diagrams, written explanations, Mermaid source and narrated explainer videos. Built for developers who want to understand a codebase, and for AI agents that need to read one.
Mocks, records, and chaos-tests HTTP(S) dependencies for development and testing. One port serves many protocols, including gRPC, WebSockets, and LLM chat APIs. Built for developers and testers who need stand-in services during tests.
Provides MCP server and CLI tools that let AI coding agents build, test and manage iOS and macOS projects with Xcode and simulators. It is aimed at developers working on Apple platform apps.
Creates editable draw.io diagrams in AI chat from Mermaid, PlantUML, CSV or draw.io XML. Built for people who want diagrams from text prompts that stay editable in draw.io.
Indexes your code, git history, tests and decisions on your machine so AI coding agents can query the index instead of re-reading files. Built for developers who want fewer files opened and clearer answers about change risk and code health.
Gives your AI assistant hosted codebase intelligence for repos indexed on repowise.dev. Use it to ask how code works, what a change may break, and which tests to run.
Compare with GitDiagram, mockserver or XcodeBuildMCP
Ollama MCP bridge: common questions
Does it work with Ollama cloud models?
Yes. The source says the bridge works with Ollama cloud models as well as local ones.
Which MCP transports are supported?
The source lists stdio for local processes, StreamableHTTP for remote endpoints, and SSE for URLs ending in /sse.
Will existing Ollama clients still work?
The source says all Ollama API endpoints other than /api/chat are transparently proxied, so clients can keep using them.
How do I install Ollama MCP bridge?
In Claude Code run claude mcp add ollama-mcp-bridge -- uvx ollama-mcp-bridge. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Ollama MCP bridge the official server?
Ollama MCP bridge is published by gh:jonigl from its verified domain in the official MCP Registry.
Is Ollama MCP bridge free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Ollama MCP bridge safe to use?
It scores 78 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Ollama MCP bridge?
Similar MCP servers: GitDiagram, mockserver, XcodeBuildMCP, draw.io.
Does Ollama MCP bridge work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
