
areweai/tsgram-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
isweai/tsgram-mcp は https://github.com/areweai/tsgram-mcp. からインポートされた MCP サーバーの候補です
概要
isweai/tsgram-mcp は https://github.com/areweai/tsgram-mcp. からインポートされた MCP サーバーの候補です
概要(AI 翻訳)
3分でTelegramに話せるローカルプロジェクトでClaudeコードを入手!
TSGram MCP は、TS/Node/Docker/cli-utils を使用して、Claude Code セッションを Telegram に接続し、Telegram チャットでAI によるコードアシスタンスを有効にします。 あなたのコードベース、AIインサイト、さらには編集ファイルに関する質問をしましょう - あなたの携帯電話でTelegramからすべて!
までの流れ
- ローカル Docker コンテナが Telegram の Webhook サーバーを実行
- TSGram MCPサーバーはローカルで動きます
- ClaudeコードまたはClaudeデスクトップはローカルで実行され、MCPをローカルに追加します
- Telegramを通してボットをアプリ内で作成および削除し、あなたの電報ユーザーIDに限られるアクセス
- ローカルホストからボットを管理するための近代的なローカルWebダッシュボード
- ローカルはローカルを意味します! コンピューターがオフラインの場合、ボットです。
クイックスタート(3分)
✔ AI エージェントがセットアップを強化 (推奨!)
Claude は、設定全体を処理し、必要な値を求めるようにしましょう。
端末から: 0. Docker デスクトップと 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