Skip to content

Ollama MCP Bridge

Extend the Ollama API with dynamic AI tool integration from multiple MCP (Model Context Protocol) servers. Fully compatible, transparent, and developer-friendly, ideal for…

Install

One-click install

Runs locally
Claude Code (no install link, copy and run)
$claude mcp add ollama-mcp-bridge -- uvx ollama-mcp-bridge

Buttons open the app on your computer and ask you to confirm before anything is added.

$uvx ollama-mcp-bridge
mcp.json (Cursor, Claude Desktop, Windsurf)
{
  "mcpServers": {
    "ollama-mcp-bridge": {
      "command": "uvx",
      "args": [
        "ollama-mcp-bridge"
      ]
    }
  }
}

Install command taken from the project's README or registry entry. Always review code before running it.

Provides an API layer in front of the Ollama API, seamlessly adding tools from multiple MCP servers so every Ollama request can access all connected tools transparently.

Ollama MCP Bridge

📖 Full documentation: https://jonigl.github.io/ollama-mcp-bridge/

Installation, configuration reference, architecture notes and a code reference, all searchable.

Table of Contents

Features

  • 🚀 Pre-loaded Servers: All MCP servers are connected at startup from JSON configuration
  • 📝 JSON Configuration: Configure multiple servers with complex commands and environments
  • 🌐 Multiple Transport Types: Connect to MCP servers via stdio (local processes), HTTP (StreamableHTTP), or SSE
  • 🎯 Tool Filtering: Filter tools per server with include/exclude modes for fine-grained control
  • 🧩 Config Variable Expansion: Supports ${env:VAR_NAME} and ${workspaceFolder} in config strings
  • 🔗 Tool Integration: Automatic tool call processing and response integration
  • 🔄 Multi-Round Tool Execution: Automatically loops through multiple rounds of tool calls until completion
  • 🛡️ Configurable Tool Limits: Set maximum tool execution rounds to prevent excessive tool calls
  • 🛠️ All Tools Available: Ollama can use any tool from any connected server simultaneously
  • 🔌 Complete API Compatibility: /api/chat adds tools while all other Ollama API endpoints are transparently proxied
  • 🔧 Configurable Ollama: Specify custom Ollama server URL via CLI (supports local and cloud models)
  • 🔐 Optional Upstream Headers: Send fixed custom headers (e.g. an API key) with every request to the upstream server
  • ☁️ Cloud Model Support: Works with Ollama cloud models
  • 🔄 Version Check: Automatic check for newer versions with upgrade instructions
  • 🌊 Streaming Responses: Supports incremental streaming of responses to clients
  • 🤔 Thinking Mode: Proxies intermediate "thinking" messages from Ollama and MCP tools
  • ⚡️ FastAPI Backend: Modern async API with automatic documentation
  • 🏗️ Modular Architecture: Clean separation into CLI, API, and MCP management modules
  • 💻 Typer CLI: Clean command-line interface with configurable options
  • 📊 Structured Logging: Uses loguru for comprehensive logging
  • 📦 PyPI Package: Easily installable via pip or uv from PyPI
  • 🗣️ System Prompt Configuration: Allows setting a system prompt for the

Similar plugs

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

Java 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发

MCP serverDatabases+24 this week

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype…

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

Explore related