
areweai/tsgram-mcp 是从 https://github.com/areweai/tsgram-mcp. 导入的 MCP 服务器候选
概览
areweai/tsgram-mcp 是从 https://github.com/areweai/tsgram-mcp. 导入的 MCP 服务器候选
概述(AI 翻译)
让Claude Code在你本地项目中3分钟内与Telegram对话!
TSGram MCP 通过 TS/Node/Docker 和 cli-utils 将 Claude Code 会话连接到 Telegram,直接在你的 Telegram 聊天中获得 AI 驱动的代码协助。在手机上的 Telegram 上,你可以提问代码库问题,获取 AI 洞察,甚至编辑文件!
🔒 运作方式(全部本地)
- 本地 Docker 容器运行 Telegram webhook 服务器
- TSGram MCP 服务器本地运行
- 你的 Claude 代码或 Claude Desktop 在本地运行,并在本地添加 MCP
- 通过Telegram在应用内创建和删除机器人,访问权限仅限于你的Telegram用户ID。
- 现代本地网页仪表盘,用于管理本地主机中的机器人
- 本地就是本地!如果你的电脑离线,你的机器人也离线了。
快速开始(3分钟)
🤖 AI 代理增强配置(推荐!)
让Claude来处理整个设置,并要求你提供所需的数值。
从你的终端: 0. 安装Docker Desktop并Node.js 20+(包含npm)
-
克隆仓库:
-
从命令行启动 Claude:
-
初始化
/init -
复制粘贴此提示:
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
TSGram MCP 🚀
Get Claude Code in your local project talking to Telegram in 3 minutes!
TSGram MCP connects Claude Code sessions to Telegram using TS/Node/Docker/cli-utils, enabling AI-powered code assistance directly in your Telegram chats. Ask questions about your codebase, get AI insights, and even edit files - all from Telegram on your phone!
🔒 How It Works (All Local)
- Local Docker container runs the Telegram webhook server
- TSGram MCP server runs locally
- Your Claude Code or Claude Desktop runs locally and adds MCP locally
- Create and delete bots in-app through Telegram, access limited to your telegram user id
- Modern local web dashboard to manage bots from localhost
- Local means local! If your computer is offline, so are your bots.
Quick Start (3 Minutes)
🤖 AI Agent Enhanced Setup (Recommended!)
Let Claude handle the entire setup and ask you for the required values.
From your terminal: 0. Install Docker Desktop and Node.js 20+ (npm included)
-
Clone the repository:
git clone https://github.com/areweai/tsgram-mcp.git cd tsgram-mcp -
From the command line, start Claude:
claude --model sonnet -
Initialize with
/init -
Copy and paste this prompt:
First, explain to the human how to register a new Telegram bot with @BotFather and get their bot token (TELEGRAM_BOT_TOKEN), and how to get their Telegram user ID from @userinfobot (for AUTHORIZED_CHAT_ID). They can work on getting these credentials while you set up the system. Then help the user set up tsgram-mcp for claude code. Do everything from installing node modules to creating and deploying the local docker containers. Finally, when everything is deployed, remind the user to configure their bot token and authorized chat ID along wither other required .env variables.
Make sure you replace the TELEGRAM_BOT_TOKEN and AUTHORIZED_CHAT_ID placeholders with the actual values.
In order to retrieve those values, you will have to message the following Telegram bots and follow their instructions:
The AI will then handle all the setup steps for you, including:
- Installing dependencies
- Configuring environment variables
- Building Docker containers
- Starting services
- Guiding you through bot registration
- Setting up the MCP server (and allow you to extend functionality locally)
CLI no-AI Alternative If Hitting LLM troubles: Setup Shell Script Run from your project root:
# One-line install (macOS/Linux)
curl -sSL https://raw.githubusercontent.com/areweai/tsgram-mcp/main/setup.sh | bash
# Or if you prefer to review first:
curl -sSL https://raw.githubusercontent.com/areweai/tsgram-mcp/main/setup.sh > setup.sh
chmod +x setup.sh
安装
docker exec -i tsgram-mcp-workspace npx tsx src/mcp-server.ts