Airsc miễn phí cho tất cả. Nếu nó giúp bạn, hãy ủng hộ $2–$20.

Ủng hộ
MCP serverAn toànTính năng AI & LLMDễ cho người mới

mcp-client-for-ollama

jonigl · jonigl/mcp-client-for-ollama

Một MCP Client TUI Python đơn giản nhưng mạnh mẽ cho Ollama, cho phép các LLM cục bộ với khả năng thực thi công cụ nâng cao, chế độ agent và tính năng tương tác với con người.

Khai thác sức mạnh của các LLM cục bộ với TUI MCP Client này dành cho Ollama. Với tất cả các MCP primitives cốt lõi (công cụ, lời nhắc, tài nguyên), chế độ agent, đa máy chủ, chuyển đổi model, phản hồi trực tuyến, human-in-the-loop, chế độ tư duy, cấu hình tham số model, system prompts và các tùy chọn đã lưu.

826 sao127Giấy phép: MITCập nhật 14 ngày trước0 lượt mở

Xem kết quả thực tế

Phản hồi từ mô hình và các thông số hiệu suất chi tiết trong terminal

Ảnh từ README của tác giảPhản hồi từ mô hình và các thông số hiệu suất chi tiết trong terminal

1/3

Ảnh từ README của tác giả jonigl ·Nguồn

Bạn có thể làm gì với nó

  • Tận dụng các LLM cục bộ chạy trên Ollama để thực thi các công cụ MCP cho nhiều tác vụ khác nhau.
  • Tương tác với các MCP server và quản lý quy trình làm việc của agent bằng giao diện dòng lệnh mạnh mẽ.
  • Phát triển và kiểm thử các kỹ năng và prompt của AI agent cho môi trường LLM cục bộ.

Kiểm tra an toàn

An toàn

Không thấy dấu hiệu rủi ro trong các file đã quét.

Quét tự động các file trong repo. Luôn xem lại code trước khi chạy.

Trích từ README

A simple yet powerful Python client for interacting with Model Context Protocol (MCP) servers using Ollama, allowing you to harness local LLMs for advanced tool execution.

English | 简体中文 | Español


MCP Client for Ollama (ollmcp)

Sponsored by

Learn how to use Atlas Cloud with ollmcp in the Sponsors section

🎥 Watch this demo as an Asciinema recording

Table of Contents

Overview

MCP Client for Ollama (ollmcp) is a modern, interactive terminal application (TUI) built for harness engineering, connecting local Ollama LLMs to one or more Model Context Protocol (MCP) servers. By fully supporting the core MCP primitives (tools, prompts, and resources), it provides a controlled terminal space where you steer, and the agent executes. With a rich, user-friendly interface, it lets you safely manage your setup in real time with no coding required. Whether you're building, testing, or exploring, this client streamlines your workflow with features like fuzzy autocomplete, advanced model configuration, MCP server hot-reloading for rapid development, and strict Human-in-the-Loop safety controls.

Features

  • 🤖 Agent Mode: Iterative tool execution when models request multiple tool calls, with a configurable loop limit and interactive choices when the limit is reached (continue, wrap up, or abort)
  • 🌐 Multi-Server Support: Connect to multiple MCP servers simultaneously
  • 🚀 Multiple Transport Types: Supports STDIO, SSE, and Streamable HTTP server connections
  • 📋 MCP Prompts Support: Browse, invoke, and manage prompts from MCP servers with argument collection, preview, and safe rollback
  • 📦 MCP Resources Support: Browse and read contextual data from MCP servers including files, documents, and structured data
  • ☁️ Ollama Cloud Support: Works seamlessly with Ollama Cloud models for tool calling, enabling access to powerful cloud-hosted models while using local MCP tools
  • 🌍 Multiple LLM Providers: Use Ollama (default) or OpenAI-compatible providers (OpenAI, OpenRouter, DeepSeek, etc.), with connection settings remembered per provider
  • 🎨 Rich Terminal Interface: Interactive console UI with modern styling
  • 🌊 Streaming Responses: View model outputs in real-time as they're generated
  • 📝 Answer Display Modes: Switch between Plain, Markdown, Both, or Markdown (blocks) response views while streaming
  • 🛠️ Tool Management: Enable/disable specific tools or entire servers during chat sessions
  • 🧑‍💻 Human-in-the-Loop (HIL): Review and approve tool executions before they run for enhanced control and safety
  • 🎮 Advanced Model Configuration: Fine-tune 15+ model parameters including context window size, temperature, sampling, repetition control, and more
  • 💬 System Prompt Customization: Define and edit the system prompt to control model behavior and persona
  • 🧠 Context Window Control: Adjust the context window size (num_ctx) to handle longer conversations and complex tasks
  • 🎨 Enhanced Tool Display: Beautiful, structured visualization of tool executions with JSON syntax highlighting
  • 🧠 Context Management: Control conversation memory with configurable retention settings
  • 🤔 Thinking Mode: Advanced reasoning capabilities with visible thought processes for supported models (e.g., gpt-oss, deepseek-r1, qwen3, etc.)
  • 💪 **Reaso
Xem mã nguồn trên GitHub