Skip to content

Neige-Neige/Groupchat-mcp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MCP Telegram Group Chat Server (Standalone)

让 Claude 通过 MCP 协议读取和发送 Telegram 群聊消息的独立服务。

快速开始

  1. 安装依赖:
pip install -r requirements.txt
  1. 配置环境变量:
cp .env.example .env
# 编辑 .env,填入你的 bot token 和群组 chat_id
  1. 启动服务:
python mcp_server.py
  1. 在 Claude Desktop 的 MCP 配置中添加 SSE 端点:http://your-server:8766/sse

获取 Chat ID

把 bot 拉进群后,在群里发一条消息,然后访问:

https://api.telegram.org/bot<YOUR_TOKEN>/getUpdates

在返回的 JSON 里找 chat.id(群组的 chat_id 通常是负数)。

工具说明

  • read_group_chat — 读取群聊最近的消息记录
  • send_group_chat — 发送消息到 Telegram 群聊

Build with 🌀 Claude Code

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages