Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 78
  • 107 stars
  • MIT
  • Updated

Install Ollama MCP bridge

Built from the published package, never by AI.

claude mcp add ollama-mcp-bridge -- uvx ollama-mcp-bridge

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Ollama MCP bridge in Claude Code

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

A

No 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 →

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.

Ollama MCP bridge Install

Add to stack

Loading.