Ollama MCP Bridge

Agent frameworks and SDKs

Bridge between Ollama and MCP servers, enabling local LLMs to use Model Context Protocol tools.

Your AI app calls Ollama MCP Bridge, which does the agent frameworks and SDKs work and sends the result back to the chat.

About Ollama MCP Bridge

Ollama MCP Bridge is a community MCP server from patruff, filed in our directory under agent frameworks and sdks. Bridge between Ollama and MCP servers, enabling local LLMs to use Model Context Protocol tools.

At a glance

Publisher
patruff (community)
Runs
See the README for setup
Written in
TypeScript
License
MIT
GitHub stars
984

How to set up Ollama MCP Bridge

  1. Follow the install steps in the Ollama MCP Bridge README; it is written in TypeScript, so have that toolchain ready.
  2. Check the Ollama MCP Bridge README for keys or settings; the registry lists none that Ollama MCP Bridge requires.
  3. Add Ollama MCP Bridge to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Ollama MCP Bridge tools to confirm the connection.
  5. Run one read-only task with Ollama MCP Bridge first, and keep your app asking before each tool call until the results look right.

Ollama MCP Bridge compared with similar servers

  • Microsoft Gateway by microsoft has fewer GitHub stars than Ollama MCP Bridge (930 against 984); Microsoft Gateway is official while Ollama MCP Bridge is a community server, and both run locally.
  • Figma MCP Bridge by gethopp has more GitHub stars than Ollama MCP Bridge (985 against 984); both are community servers, and both run locally.
  • SecretiveShell Bridge by SecretiveShell has fewer GitHub stars than Ollama MCP Bridge (922 against 984); both are community servers, and both run locally.

Before you connect Ollama MCP Bridge

  • Give Ollama MCP Bridge its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Ollama MCP Bridge tool call until you trust what it does with them.
  • Treat text that Ollama MCP Bridge fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Ollama MCP Bridge on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Ollama MCP Bridge

How marketing and sales teams put Ollama MCP Bridge to work, by company size. Pick the size closest to yours and start Ollama MCP Bridge on one use case.

Small business

  • A small business with a developer can use Ollama MCP Bridge to build one focused agent, such as lead follow-up, without a big platform.
  • Technical founders can prototype marketing agents with Ollama MCP Bridge and keep what works as a small, owned tool.
  • Ollama MCP Bridge runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Growth engineering teams can use Ollama MCP Bridge to build agents that combine CRM, analytics and content tools behind one workflow.
  • Marketing ops can standardize on Ollama MCP Bridge so every agent they ship has the same logging, approvals and error handling.
  • Start Ollama MCP Bridge on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises can build on Ollama MCP Bridge with their own identity, policy and evaluation layers, so agents meet the same bar as other software.
  • Platform teams can use Ollama MCP Bridge to give business units a governed way to ship agents without each one starting from scratch.
  • Ollama MCP Bridge is a community server, so have security review the code and pin a version before Ollama MCP Bridge touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Ollama MCP Bridge README

From patruff/ollama-mcp-bridge on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

MCP-LLM Bridge

A TypeScript implementation that connects local LLMs (via Ollama) to Model Context Protocol (MCP) servers. This bridge allows open-source models to use the same tools and capabilities as Claude, enabling powerful local AI assistants.

Overview

This project bridges local Large Language Models with MCP servers that provide various capabilities like:

  • Filesystem operations
  • Brave web search
  • GitHub interactions
  • Google Drive & Gmail integration
  • Memory/storage
  • Image generation with Flux

The bridge translates between the LLM's outputs and the MCP's JSON-RPC protocol, allowing any Ollama-compatible model to use these tools just like Claude does.

Current Setup

  • LLM: Using Qwen 2.5 7B (qwen2.5-coder:7b-instruct) through Ollama
  • MCPs:
    • Filesystem operations (@modelcontextprotocol/server-filesystem)
    • Brave Search (@modelcontextprotocol/server-brave-search)
    • GitHub (@modelcontextprotocol/server-github)
    • Memory (@modelcontextprotocol/server-memory)
    • Flux image generation (@patruff/server-flux)
    • Gmail & Drive (@patruff/server-gmail-drive)

Architecture

  • Bridge: Core component that manages tool registration and execution
  • LLM Client: Handles Ollama interactions and formats tool calls
  • MCP Client: Manages MCP server connections and JSON-RPC communication
  • Tool Router: Routes requests to appropriate MCP based on tool type
Key Features
  • Multi-MCP support with dynamic tool routing
  • Structured output validation for tool calls
  • Automatic tool detection from user prompts
  • Robust process management for Ollama
  • Detailed logging and error handling

Setup

  1. Install Ollama and required model:
ollama pull qwen2.5-coder:7b-instruct
  1. Install MCP servers:
npm install -g @modelcontextprotocol/server-filesystem
npm install -g @modelcontextprotocol/server-brave-search
npm install -g @modelcontextprotocol/server-github
npm install -g @modelcontextprotocol/server-memory
npm install -g @patruff/server-flux
npm install -g @patruff/server-gmail-drive
  1. Configure credentials:
    • Set BRAVE_API_KEY for Brave Search
    • Set GITHUB_PERSONAL_ACCESS_TOKEN for GitHub
    • Set REPLICATE_API_TOKEN for Flux
    • Run Gmail/Drive MCP auth: node path/to/gmail-drive/index.js auth
    • For example node C:\Users\patru\AppData\Roaming\npm\node_modules@patruff\server-gmail-drive\dist\index.js auth

Configuration

The bridge is configured through bridge_config.json:

  • MCP server definitions
  • LLM settings (model, temperature, etc.)
  • Tool permissions and paths

Example:

{
  "mcpServers": {
    "filesystem": {
      "command": "node",
      "args": ["path/to/server-filesystem/dist/index.js"],
      "allowedDirectory": "workspace/path"
    },
    // ... other MCP configurations
  },
  "llm": {
    "model": "qwen2.5-coder:7b-instruct",
    "baseUrl": "http://localhost:11434"
  }
}

Usage

  1. Start the bridge:
npm run start
  1. Available commands:
    • list-tools: Show available tools
    • Regular text: Send prompts to the LLM
    • quit: Exit the program

Example interactions:

> Search the web for "latest TypeScript features"
[Uses Brave Search MCP to find results]

> Create a new folder called "project-docs"
[Uses Filesystem MCP to create directory]

> Send an email to user@example.com
[Uses Gmail MCP to compose and send email]

Technical Details

Tool Detection

The bridge includes smart tool detection based on user input:

  • Email operations: Detected by email addresses and keywords
  • Drive operations: Detected by file/folder keywords
  • Search operations: Contextually routed to appropriate search tool
Response Processing

Responses are processed through multiple stages:

  1. LLM generates structured tool calls
  2. Bridge validates and routes to appropriate MCP
  3. MCP executes operation and returns result
  4. Bridge formats response for user

Extended Capabilities

This bridge effectively brings Claude's tool capabilities to local models:

  • Filesystem manipulation
  • Web search and research
  • Email and document management
  • Code and GitHub interactions
  • Image generation
  • Persistent memory

All while running completely locally with open-source models.

Future Improvements

  • Add support for more MCPs
  • Implement parallel tool execution
  • Add streaming responses
  • Enhance error recovery
  • Add conversation memory
  • Support more Ollama models

Related Projects

This bridge integrates with the broader Claude ecosystem:

  • Model Context Protocol (MCP)
  • Claude Desktop Configuration
  • Ollama Project
  • Various MCP server implementations

The result is a powerful local AI assistant that can match many of Claude's capabilities while running entirely on your own hardware.

Questions about Ollama MCP Bridge

What is the Ollama MCP Bridge MCP server?

Bridge between Ollama and MCP servers, enabling local LLMs to use Model Context Protocol tools. Ollama MCP Bridge is maintained by patruff on GitHub at patruff/ollama-mcp-bridge, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Ollama MCP Bridge MCP server?

Ollama MCP Bridge doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (patruff/ollama-mcp-bridge). Like most servers, Ollama MCP Bridge ends with a command or URL you paste into your AI app's MCP config.

Does Ollama MCP Bridge need an API key?

The registry lists no required keys for Ollama MCP Bridge. Check the Ollama MCP Bridge README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Ollama MCP Bridge an official MCP server?

No. Ollama MCP Bridge is a community server maintained by patruff. Community servers can be excellent; read the code and the open issues before you give Ollama MCP Bridge access to company data.

What license is Ollama MCP Bridge under?

Ollama MCP Bridge is released under the MIT license, according to its GitHub repository. The license covers the code of Ollama MCP Bridge; the service it connects to has its own terms.