MCP Client for Ollama

v1.0.0Developer Toolsstable

A text-based user interface (TUI) client for interacting with MCP servers using Ollama. Features include agent mode, multi-server, model switching, streaming responses, tool management, human-in-the-loop, thinking mode, model params config, MCP promp

agentic-aiaicommand-line-toolgenerative-ailinux
Share:
707
Stars
0
Downloads
0
Weekly
0/5

What is MCP Client for Ollama?

MCP Client for Ollama is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to text-based user interface (tui) client for interacting with mcp servers using ollama. features include agent mode, multi-server, model switching, streaming responses, tool management, human-in-the-loo...

A text-based user interface (TUI) client for interacting with MCP servers using Ollama. Features include agent mode, multi-server, model switching, streaming responses, tool management, human-in-the-loop, thinking mode, model params config, MCP promp

This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • A text-based user interface (TUI) client for interacting wit

Use Cases

TUI client for local LLMs
Multi-server and multi-model support
Agentic AI with thinking mode
jonigl

Maintainer

LicenseMIT
Languagepython
Versionv1.0.0
UpdatedMay 22, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx mcp-client-for-ollama

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use MCP Client for Ollama

MCP Client for Ollama (ollmcp) is a terminal-based TUI application that lets you interact with any MCP server using locally running Ollama models, bringing MCP tool-calling to fully offline and privacy-preserving workflows. It supports STDIO, SSE, and Streamable HTTP transports, connects to multiple MCP servers simultaneously, provides an agent mode with iterative tool execution, human-in-the-loop approval for tool calls, model parameter tuning, vision support, conversation history export, and live hot-reload of MCP servers without restarting the client.

Prerequisites

  • Python 3.10 or higher installed
  • Ollama installed and running locally at http://localhost:11434 (ollama.ai)
  • At least one Ollama model pulled that supports tool calling (e.g. qwen2.5:7b)
  • pip or uv package manager for installation
  • One or more MCP servers to connect to (can auto-discover from Claude Desktop config)
1

Install ollmcp via pip or uv

Install the mcp-client-for-ollama package (published as ollmcp on PyPI). The uv method runs without a permanent install using uvx.

# Install with pip:
pip install --upgrade ollmcp

# Or run directly with uv (no install needed):
uvx ollmcp
2

Ensure Ollama is running with a tool-capable model

Start Ollama and pull a model that supports function/tool calling. The default model is qwen2.5:7b, which works well with MCP tools.

ollama serve
ollama pull qwen2.5:7b
3

Launch ollmcp with auto-discovery

Use the --auto-discovery flag to automatically load all MCP servers defined in your Claude Desktop config. This is the fastest way to get started if you already have MCP servers configured.

ollmcp --auto-discovery
4

Or connect to a specific MCP server

Connect to a specific MCP server by script path, URL, or JSON config file. Use -m to select a different Ollama model.

# Connect to a local MCP server script:
ollmcp -s /path/to/server.py -m llama3.2:3b

# Connect to an SSE server:
ollmcp -u http://localhost:8080/sse

# Load from a JSON config:
ollmcp -j ~/.config/mcp-servers.json
5

Use interactive commands inside the TUI

Once running, use slash commands to switch models, manage tools, enable human-in-the-loop approval, and export conversation history.

/model          # Switch to a different Ollama model
/tools          # Enable or disable specific MCP tools
/human-in-the-loop  # Toggle tool execution approval
/agent          # Toggle agent mode for iterative tasks
/export-history # Save the conversation to JSON
/reload-servers # Hot-reload MCP servers without restart

MCP Client for Ollama Examples

Client configuration

ollmcp is itself an MCP client, not a server. Configure it with a servers JSON file to connect multiple MCP servers simultaneously. Example ~/.config/mcp-servers.json layout:

{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-filesystem", "/tmp"]
    },
    "web-search": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-brave-search"],
      "env": {
        "BRAVE_API_KEY": "your-brave-api-key"
      }
    }
  }
}

Prompts to try

Sample tasks that use ollmcp's agent mode and MCP tool integrations with local Ollama models.

- "Search the web for the latest news on MCP protocol adoption and summarize the top 3 results."
- "List the files in /tmp, find any log files, and show me the last 20 lines of the most recent one."
- "In agent mode, research Python async best practices and write a cheat sheet to ~/async-tips.md."

Troubleshooting MCP Client for Ollama

Connection refused to Ollama at localhost:11434

Ensure Ollama is running with `ollama serve`. If Ollama is on a different host or port, use the -H flag: `ollmcp -H http://192.168.1.100:11434`. Verify with `curl http://localhost:11434/api/tags`.

Model does not call MCP tools and just answers from training data

Not all Ollama models support tool calling. Switch to a verified tool-capable model like qwen2.5:7b, llama3.1:8b, or mistral-nemo using `/model` inside the TUI or `-m model-name` on startup.

Auto-discovery finds no MCP servers

Auto-discovery reads from ~/Library/Application Support/Claude/claude_desktop_config.json (macOS). If your Claude Desktop config is empty or in a non-standard location, use `-j path/to/config.json` to provide a custom servers config file instead.

Frequently Asked Questions about MCP Client for Ollama

What is MCP Client for Ollama?

MCP Client for Ollama is a Model Context Protocol (MCP) server that text-based user interface (tui) client for interacting with mcp servers using ollama. features include agent mode, multi-server, model switching, streaming responses, tool management, human-in-the-loop, thinking mode, model params config, mcp promp It connects AI assistants to external tools and data sources through a standardized interface.

How do I install MCP Client for Ollama?

Follow the installation instructions on the MCP Client for Ollama GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with MCP Client for Ollama?

MCP Client for Ollama works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is MCP Client for Ollama free to use?

Yes, MCP Client for Ollama is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "mcp-client-for-ollama": { "command": "npx", "args": ["-y", "mcp-client-for-ollama"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use MCP Client for Ollama?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides