← Back to Leaderboard
Mjonigl

jonigl/mcp-client-for-ollama

Terminal MCP client for Ollama with multi-server sessions and tool approvals

View on GitHub ↗
Engineering Health (Methodology)
A+ · 90/100
Maintenance Activity
● Updated 14d ago
Latest Release
v0.35.1
Commercial License Check
MIT · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption18/25
Release Cadence17/20
License Clarity20/20
Local AIMCPCLISelf-Hosted
Total Stars
★ 842
24h Growth
+0
7d Growth
+2
Forks
127

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

jonigl/mcp-client-for-ollama Star History (2025-05-02 - 2026-12-04) ALL-TIME STAR HISTORY (2025-05 – 2026-12) +841 in 581d · avg +1/day 889 445 0 2025-05-02: ★ 12025-06-07: ★ 132025-07-19: ★ 902025-08-30: ★ 1932025-10-11: ★ 2822025-11-22: ★ 3672026-01-03: ★ 4322026-02-14: ★ 5142026-03-28: ★ 5612026-05-09: ★ 6792026-06-20: ★ 7362026-08-01: ★ 7732026-09-12: ★ 8112026-10-24: ★ 8292026-12-04: ★ 842 ★ 842 2025-05 2026-02 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

ollmcp is a Python 3.11+ terminal client that sits between a model endpoint and one or more MCP servers. Both installed commands, ollmcp and mcp-client-for-ollama, resolve to mcp_client_for_ollama.cli:run_cli. Typer handles the CLI, with prompt-toolkit and Rich in the terminal stack. The package depends on mcp~=2.3.0, httpx>=0.27,<1, and any-llm-sdk[ollama,openai,atlascloud]~=1.29.0.

Inference and tool execution are separate: the provider generates responses and requests tool calls, while the client controls whether those calls reach the MCP server and returns tool results to the model. Local STDIO entries launch configured commands; SSE and Streamable HTTP connect to existing endpoints. The same session can combine transports and browse server-provided prompts and resources without treating them as tool calls.

Key Capabilities & Differentiators

The interactive session combines multi-server connections and hot reload with streaming, model switching, system-prompt editing, and more than 15 model settings, including context-window and sampling controls. MCP prompts support argument collection, preview, and rollback; resources can be browsed and read. Operators can disable individual tools or entire servers during a session.

Agent mode handles successive rounds of tool calls with a configurable iteration limit. At the limit, the client pauses so the operator can extend the run, wrap up, or abort. Human-in-the-loop approval can gate individual calls before execution. Ollama is the default inference path, including support for Ollama Cloud; the any-llm integration adds providers such as OpenAI, Atlas Cloud, and OpenAI-compatible services. Non-Ollama support is experimental, so validate tool calls and streaming with the actual provider and model before relying on them.

Trade-offs & Limitations

Compared with using Ollama alone, ollmcp adds MCP discovery, execution controls, and per-server diagnostics, at the cost of configuring and maintaining separate tool servers. For teams already using Claude Code, project-scoped .mcp.json lets the clients share server definitions. Adopt ollmcp when local inference and interactive MCP inspection are the goals, not on the assumption that a compatible config file confers parity with an existing coding workflow.

Approval gates tool calls, not process startup or network access. Local STDIO commands and remote endpoints must therefore be trusted independently; prefer least-privilege access and keep credentials out of versioned .mcp.json files. Registered entries resolve as local > project > user, but an explicit source that duplicates a registered name can still open both connections even though only one remains active under that name. Local inference avoids sending model inputs to a hosted provider, but remote tools can still move data off the machine. Hosted inference trades local model compute for network dependency, provider terms, and possible usage charges.

Hardware & Deployment Guide

For local use, start Ollama (the default endpoint is http://localhost:11434), check available models with ollama list, and install into an isolated environment with uv tool install --upgrade ollmcp. uvx ollmcp is available for a trial run. Python 3.11+ is required, and STDIO servers need their own launch runtimes, such as Node.js for an npx-based server. A fully offline session requires the model and server dependencies to be present locally, and the selected tools must not rely on network services.

Use ollmcp mcp list to check registered entries, and pass --claude-desktop explicitly if you want to import that configuration. Prefer OLLMCP_API_KEY or a provider-native environment variable for hosted inference; --api-key persists the value. Server stderr and MCP log notifications go into per-run logs, with the last five runs retained. v0.34.0 introduced per-session server logging; v0.35.0 prevented a dropped capability listing from terminating the client and forwarded structuredContent from tool results with no text; v0.35.1 updated any-llm to 1.29.0.

Runtime split: The Python TUI manages MCP sessions while Ollama or an any-llm provider handles inference.
Protocol coverage: Concurrent STDIO, SSE, and Streamable HTTP connections expose MCP tools, prompts, and resources.
Execution controls: Tool and server toggles, per-call approval, and a configurable agent iteration limit with an interactive decision at the limit.
Configuration scope: Registry precedence is local > project > user; project scope writes a Claude Code-compatible .mcp.json.
Provider credentials: Keys supplied through OLLMCP_API_KEY or provider-native environment variables are not saved to config; --api-key values are.
Diagnostics: Per-run logs retain the last five runs and capture STDIO stderr and MCP log notifications without interrupting streamed responses by default.
Best For

Developers who want Ollama inference in an interactive terminal to test MCP servers, inspect prompts and resources, and approve tool calls.

Skip If

You need centrally enforced tool isolation and authorization, an unattended service, or feature parity across hosted inference providers.

Reviewed on 2026-12-04 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

Local AIMCPCLISelf-Hosted
# Install ollmcp via uv
uv tool install --upgrade ollmcp
# or via pip
pip install --upgrade ollmcp
# Add an MCP server (example: playwright stdio server)
ollmcp mcp add playwright -- npx @playwright/mcp@latest
# Run the client (check optional flags with `ollmcp --help`)
ollmcp # once running, use /help for interactive commands

Comparison vs. Top Coding, Skills & MCP Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
mcp-client-for-ollama ★842+2PythonMITTerminal MCP client for Ollama with multi-server sessions and tool approvals
cc-switch159.1k+1.7kRustMITTauri desktop manager for AI coding providers, local routing, and MCP config
herdr54.1k+871RustApache-2.0Rust terminal multiplexer for persistent, multi-machine coding-agent workspaces
claude-code-router38.5k+101TypeScriptMITLocal model gateway for routing coding agents across providers

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/jonigl/mcp-client-for-ollama.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

jonigl/mcp-client-for-ollama Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about mcp-client-for-ollama

What does ollmcp run itself, and how do I connect MCP servers?

Ollama handles inference; ollmcp manages the terminal session and MCP connections. Register local commands for STDIO or remote endpoints for SSE or Streamable HTTP. The client connects to registered servers automatically and exposes their tools, prompts, and resources in the session. Project-scoped entries use .mcp.json; importing Claude Desktop entries requires --claude-desktop.

Do I need a GPU, and what determines memory usage?

The client has no separate GPU requirement. For local inference, size the Ollama host for the chosen model, context window, and concurrent inference workload. Budget separately for any local MCP server processes. Hosted inference shifts model compute off the workstation, but local servers still consume local resources.

Can we self-host ollmcp for commercial use or redistribute it?

Yes. The MIT license permits commercial use, modification, and redistribution; when distributing copies or substantial portions, retain the copyright and permission notices. Assess model licenses, MCP server licenses, and hosted-provider terms separately. Local inference does not keep data on the machine if a connected tool sends it elsewhere.

When should I choose ollmcp over Ollama alone or an existing Claude Code setup?

Compared with Ollama alone, ollmcp adds interactive access to MCP tools, prompts, and resources, plus per-call approvals. Compared with reusing the same project .mcp.json in Claude Code, choose ollmcp when you want Ollama inference and a terminal for inspecting and testing MCP behavior. The shared file makes server definitions portable; it does not make the two clients interchangeable.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining jonigl/mcp-client-for-ollama? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature jonigl/mcp-client-for-ollama on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare