经 AI Skill Hub 精选评估,MCP客户端 获评「推荐使用」。这款MCP工具在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 7.5 分,适合有一定技术背景的用户使用。
MCP客户端 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
MCP客户端 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/jonigl/mcp-client-for-ollama
# 方式二:手动配置 claude_desktop_config.json
{
"mcpServers": {
"mcp---": {
"command": "npx",
"args": ["-y", "mcp-client-for-ollama"]
}
}
}
# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
# 安装后在 Claude 对话中直接使用 # 示例: 用户: 请帮我用 MCP客户端 执行以下任务... Claude: [自动调用 MCP客户端 MCP 工具处理请求] # 查看可用工具列表 # 在 Claude 中输入:"列出所有可用的 MCP 工具"
// claude_desktop_config.json 配置示例
{
"mcpServers": {
"mcp___": {
"command": "npx",
"args": ["-y", "mcp-client-for-ollama"],
"env": {
// "API_KEY": "your-api-key-here"
}
}
}
}
// 保存后重启 Claude Desktop 生效
<p align="center">
<img src="https://github.com/jonigl/mcp-client-for-ollama/blob/main/misc/ollmcp-logo-512.png?raw=true" width="256" /> </p> <p align="center"> <i>A simple yet powerful Python client for interacting with Model Context Protocol (MCP) servers using Ollama, allowing local LLMs to use tools.</i> </p>
---
MCP Client for Ollama (ollmcp) is a modern, interactive terminal application (TUI) for connecting local Ollama LLMs to one or more Model Context Protocol (MCP) servers, enabling advanced tool use and workflow automation. With a rich, user-friendly interface, it lets you manage tools, models, and server connections in real time—no coding required. Whether you're building, testing, or just exploring LLM tool use, this client streamlines your workflow with features like fuzzy autocomplete, advanced model configuration, MCP servers hot-reloading for development, and Human-in-the-Loop safety controls.
Option 1: Install with pip and run
pip install --upgrade ollmcp
ollmcp
Option 2: One-step install and run
uvx ollmcp
Option 3: Install from source and run using virtual environment
git clone https://github.com/jonigl/mcp-client-for-ollama.git
cd mcp-client-for-ollama
uv venv && source .venv/bin/activate
uv pip install .
uv run -m mcp_client_for_ollama
Run with default settings:
ollmcp
If you don't provide any options, the client will use auto-discovery mode to find MCP servers from Claude's configuration.
Simplest way to run the client:
ollmcp > [!TIP] > This will automatically discover and connect to any MCP servers configured in Claude's settings and use the default model qwen2.5:7b or the model specified in your configuration file.
Connect to a single server:
```bash ollmcp --mcp-server /path/to/weather.py --model llama3.2:3b
A common point of confusion is where to store MCP server configuration files and how the TUI's save/load feature is used. Here's a short, practical guide that has helped other users:
save-config / load-config (or sc / lc) commands are intended to save TUI preferences like which tools you enabled, your selected model, thinking mode, display mode, and other client-side settings. They are not required to register MCP server connections with the client.mcpServers object shown above) we recommend keeping them outside the TUI config directory or in a clear subfolder, for example:~/.config/ollmcp/mcp-servers/config.json
You can then point ollmcp at that file at startup with -j / --servers-json.
[!IMPORTANT] When using HTTP-based MCP servers, use thestreamable_httptype (not justhttp). Also check the Common MCP endpoint paths section below for typical endpoints.
Here a minimal working example let's say this is your ~/.config/ollmcp/mcp-servers/config.json:
{
"mcpServers": {
"github": {
"type": "streamable_http",
"url": "https://api.githubcopilot.com/mcp/",
"headers": {
"Authorization": "Bearer mytoken"
}
}
}
}
[!TIP] When using GitHub MCP server, make sure to replace "mytoken" with your actual GitHub API token.
With that file in place you can connect using:
ollmcp -j ~/.config/ollmcp/mcp-servers/config.json
Here you can find a GitHub issue related to this common pitfall: https://github.com/jonigl/mcp-client-for-ollama/issues/112#issuecomment-3446569030
A short demo (asciicast) that should help anyone reproduce the working setup quickly. This example uses an MCP server example with streamable HTTP protocol usage:
Streamable HTTP MCP servers typically expose the MCP endpoint at /mcp (e.g., https://host/mcp), while SSE servers commonly use /sse (e.g., https://host/sse). Below is an excerpt from the MCP specification (2025-06-18): > The server MUST provide a single HTTP endpoint path (hereafter referred to as the MCP endpoint) that supports both POST and GET methods. For example, this could be a URL like https://example.com/mcp.
You can find more details in the MCP specification version 2025-06-18 - Transports.
The model-config (mc) command opens the advanced model settings interface, allowing you to fine-tune how the model generates responses:

1-15 to edit settingssp to edit the system promptu1, u2, etc. to unset parameters, or uall to reset allh/help: Show parameter details and tipsundo: Revert changess/save: Apply changesq/quit: Canceltemperature: 0.0-0.3, top_p: 0.1-0.5, seed: 42temperature: 1.0+, top_p: 0.95, presence_penalty: 0.2repeat_penalty: 1.1-1.3, presence_penalty: 0.2, frequency_penalty: 0.3temperature: 0.7, top_p: 0.9, typical_p: 0.7seed: 42, temperature: 0.0num_ctx: 8192 or higher for complex conversations requiring more context[!TIP] All parameters default to unset, letting Ollama use its own optimized values. Use help in the config menu for details and recommendations. Changes are saved with your configuration.
/human-in-the-loop or /hil to toggle on/offhil command anytime to turn confirmations back onBenefits: - Enhanced Safety: Prevent accidental or unwanted tool executions - Awareness: Understand what actions the model is attempting to perform - Selective Control: Choose which operations to allow on a case-by-case basis - Flexible Workflow: Session mode for efficient multi-tool queries, individual approval for sensitive operations - Clean Abort: Stop problematic queries immediately without polluting conversation history - Peace of Mind: Full visibility and control over automated actions
[!TIP] It will automatically load the default configuration from ~/.config/ollmcp/config.json if it exists.
The client supports saving and loading tool configurations between sessions:
save-config, you can provide a name for the configuration or use the default~/.config/ollmcp/ directory~/.config/ollmcp/config.json~/.config/ollmcp/{name}.jsonThe configuration saves:
The JSON configuration file supports STDIO, SSE, and Streamable HTTP server types (MCP 1.10.1):
{
"mcpServers": {
"stdio-server": {
"command": "command-to-run",
"args": ["arg1", "arg2", "..."],
"env": {
"ENV_VAR1": "value1",
"ENV_VAR2": "value2"
},
"disabled": false
},
"sse-server": {
"type": "sse",
"url": "http://localhost:8000/sse",
"headers": {
"Authorization": "Bearer your-token-here"
},
"disabled": true
},
"http-server": {
"type": "streamable_http",
"url": "http://localhost:8000/mcp",
"headers": {
"X-API-Key": "your-api-key-here"
},
"disabled": false
}
}
} > [!NOTE] > MCP 1.10.1 Transport Support: The client now supports the latest Streamable HTTP transport with improved performance and reliability. If you specify a URL without a type, the client will default to using Streamable HTTP transport.
高质量的MCP客户端,易于使用
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
AI Skill Hub 点评:MCP客户端 的核心功能完整,质量良好。对于Claude Desktop / Claude Code 用户来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。
| 原始名称 | mcp-client-for-ollama |
| 原始描述 | 开源MCP工具:A text-based user interface (TUI) client for interacting with MCP servers using 。⭐716 · Python |
| Topics | mcpai命令行工具python |
| GitHub | https://github.com/jonigl/mcp-client-for-ollama |
| License | MIT |
| 语言 | Python |
收录时间:2026-05-27 · 更新时间:2026-05-27 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端