Token导航 LogoToken导航

MCP Server · 开发工具

MCP Chat Assistant

一个基于Model Context Protocol (MCP)和本地LLM (Ollama)构建的强大命令行AI聊天助手,支持智能、上下文感知的对话,无需依赖付费API。

stdio官方级别未说明来源级核验工具 0
命令行工具PythonClaude上下文感知

快速开始

作者 / 组织
Kuldeepkolage
提供方
Kuldeepkolage
运行时
Python

工具数量

0

来源目录标注

资源数量

0

来源目录标注

提示词数量

0

来源目录标注

GitHub Star

1

仓库热度

收录来源

1 个

MCP World

选型结论

MCP Chat Assistant 属于开发工具类 MCP Server,公开资料标注 0 个工具,通过stdio 本地进程接入,适配 Claude,有可以直接复制的安装命令;接入前先确认权限范围。

分类

开发工具

传输方式

stdio

认证方式

无需认证

部署方式

公开资料未说明

安装与配置

安装命令

Python 3.9+

公开命令不是通用的启动方式,拼不出可靠配置示例;请在客户端 MCP 配置里按官方文档填写 command 和 args。

上手步骤

  1. 1

    准备运行环境

    stdio 服务在本地起进程,需要先装好 Python,再按安装命令拉取依赖。

  2. 2

    安装服务

    复制下面的安装命令执行;命令里带占位符的位置换成自己的密钥或路径。

  3. 3

    写入客户端配置

    在客户端的 MCP 配置里填启动命令和参数,保存后完全退出客户端再打开,让新配置生效。

  4. 4

    验证是否可用

    连接成功后客户端会列出 0 个工具,随便调一个只读工具确认能返回结果。

接入前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

详细介绍

🚀 MCP聊天助手

⚡ 一个强大的命令行AI聊天机器人,使用 模型上下文协议(MCP) 和 当地LLM(Ollama) --实现智能、上下文感知的对话,而无需依赖付费API。

______________________________________________________________________

✨ 特性

  • 🤖 交互式人工智能聊天机器人(基于CLI)
  • 🧠 上下文感知对话处理(RAG风格提示)
  • 📄 使用文档检索 @filename
  • ⚙️ 基于命令的执行使用 /commands
  • 🔌 通过MCP(模型上下文协议)可扩展的工具架构
  • 💻 完全运行 离线 使用Ollama(无API成本)

______________________________________________________________________

🧑‍💻 技术栈

  • 语言: python
  • 架构: 模型上下文协议(MCP)
  • LLM Ollama(calla3-本地推理)
  • CLI框架: 提示工具包
  • 环境管理: python dotenv
  • 包管理器(可选): 紫外线

______________________________________________________________________

📸 演示

> what's 1+1?
2
> Tell me about @report.pdf
The report.pdf document contains information about...
> /summarize deposition.md
📦 Prerequisites
Python 3.9+
Ollama installed → https://ollama.com
⚙️ Setup
1️⃣ Configure Environment Variables

Create a .env file in the root directory:

CLAUDE_MODEL=llama3
2️⃣ Install Dependencies
Option 1: Using uv (Recommended)
pip install uv
uv venv
source .venv/bin/activate  # Windows: .venv\Scripts\activate
uv pip install -e .
uv run main.py
Option 2: Without uv
python -m venv .venv
source .venv/bin/activate  # Windows: .venv\Scripts\activate
pip install python-dotenv prompt-toolkit "mcp[cli]==1.8.0" ollama
python main.py
🧠 Usage
💬 Basic Chat
> Hello
📄 Document Retrieval

Use @filename to include document context:

> Tell me about @deposition.md
⚙️ Commands

Execute MCP-defined commands:

> /summarize deposition.md
🏗️ Project Structure
MCP-Chat-Assistant/
│
├── core/
│   ├── chat.py          # Core chat logic
│   ├── claude.py        # LLM interface (Ollama-based)
│   ├── cli.py           # CLI controller
│   ├── cli_chat.py      # CLI + MCP integration
│   └── tools.py         # MCP tool management
│
├── mcp_client.py        # MCP client (tool + resource access)
├── mcp_server.py        # MCP server (documents + tools)
├── main.py              # Entry point
├── .env                 # Environment config
└── README.md
⚠️ Note on Tool Execution

This project fully implements the MCP architecture, including tools and resources.

However:

🔹 Ollama (local LLM) does not support native tool-calling
🔹 Tool execution logic is preserved but currently disabled
🔹 System still supports context-based document retrieval (RAG)

👉 This architecture can be extended with OpenAI/Anthropic APIs for full tool execution.

🚀 Future Improvements
🧠 Persistent memory (chat history storage)
🌐 Web UI (React / Next.js frontend)
🔊 Voice input/output integration
☁️ Hybrid mode (local + API-based LLM)
🧩 Advanced MCP tool execution with function-calling LLMs
🎯 Learning Outcomes
Deep understanding of Model Context Protocol (MCP)
Building AI systems with client-server architecture
Implementing RAG (Retrieval-Augmented Generation)
Integrating local LLMs (Ollama) into applications
Handling real-world limitations of LLM tool usage
👨‍💻 Author

Kuldeep Kolage
🔗 GitHub: https://github.com/Kuldeepkolage

⭐ Support

If you found this project helpful:

⭐ Star this repository
🍴 Fork it
🚀 Build and improve on top of it

💡 This project demonstrates how modern AI systems can be built using local models, structured protocols, and scalable architecture — without relying on paid APIs.

---

工具与能力

工具数量

0

资源数量

0

提示词数量

0

能力标签

命令行工具Python本地部署AI聊天上下文感知离线运行文档检索

支持客户端

Claude

数量来自来源目录的标注,具体工具清单以官方文档为准。

典型使用场景

让助手直接读代码

把仓库、提交记录和 issue 交给模型检索,补全和重构时不用来回复制文件。

在对话里跑命令

触发构建、测试和脚本,执行结果直接回到上下文,省去切终端。

接进开发流程

把 PR、CI 状态和代码审查接进助手,减少在几个工具之间跳。

选择建议

值得选的地方

  • 只提供 0 个工具,职责集中,接入后不容易误操作。
  • 有现成的安装命令,不用自己找入口,照着跑就能起服务。
  • 公开说明写得比较完整,接入前能看清能力边界。

先想清楚的地方

  • stdio 方式要求本地装好 Python,换机器要重新装一遍。
  • 第三方目录整理,版本更新和行为细节以官方仓库为准。

更适合

  • 需要在开发工具场景里让模型直接调用外部能力的人。
  • 已经在用 Claude 的用户,接入路径最短。
  • 想先快速试一下、能接受在本地跑服务的人。

不太适合

  • 完全不想在本地装环境的人。
  • 需要厂商级 SLA 和技术支持的生产环境。

同类对比

5 个同类
MCP Server工具数传输方式安装命令收录来源最后核验
MCP Chat Assistant

MCP World · 本页

0stdio有1 个2026-05-17
Git 838e2ec1

MCP World

12stdio有2 个2026-05-17
Markitdown MCP 2c653a5f

MCP World

1stdio有1 个2026-05-17
Context7 MCP C671e75a

MCP World

0stdio有1 个2026-05-17
Context7 831acf40

MCP World

0stdio有1 个2026-05-17

按同分类和工具数量挑出最接近的几条,字段以各自详情页为准。

常见问题

5 条

MCP Chat Assistant 怎么安装?

公开资料给出的安装命令是 Python 3.9+,运行环境为 Python。装完后按客户端要求写进 MCP 配置,重启客户端生效。

MCP Chat Assistant 怎么在 Claude Desktop、Cursor 里配置?

它是stdio 本地进程,客户端配置里要写启动命令和参数,运行环境是 Python;保存后完全退出客户端再打开,配置才会生效。

MCP Chat Assistant 收费吗?

本站只整理公开资料,不代收费用,也没有标注具体价格。是否收费取决于服务本身和背后的接口额度,正式使用前按官方说明确认。

MCP Chat Assistant 需要 API Key 吗?

公开资料标注为无需认证,装好就能连;如果实际调用时报鉴权错误,按官方文档补上凭据。

MCP Chat Assistant 支持哪些客户端?

公开资料标注支持 Claude;其他客户端只要能配置 MCP Server,也能用同样的命令或地址接入。

来源信息

继续浏览同类 MCP