
prgebish/mcp-telegram
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
Telegram 用の MCP サーバー — Claude をユーザー API 経由で実際の Telegram アカウントに接続 (MTProto)
概要
ClaudeのようなAIアシスタントをUser API(MTProto)経由で接続するMCPサーバー。 ボットではなく、Claude はメッセージを読み、送信します。 取得/td と公式 MCP Go SDK で構築。 : このプロジェクトでは、Telegram User API を使用します。 独自の api id と api hash を my.telegram.org から取得し、 Telegram API の利用規約に従う必要があります。 ユーザーAPI(スパム、バルクメッセージング、スクレイピング)の誤用は、アカウントが禁止されている可能性があります。 このツールを使用する方法については、単独で責任を負います.
概要(AI 翻訳)
ClaudeのようなAIアシスタントをUser API(MTProto)経由で*real Telegramアカウント**に接続するMCPサーバー。 ボットではなく、Claude はメッセージを読み、送信します。
取得/td と公式 MCP Go SDK で構築。
Telegram API 利用規約: このプロジェクトでは、Telegram ユーザー API を使用します。 my.telegram.org から
api_idと [[T1] を取得し、Telegram API の利用規約に従う必要があります。 ユーザーAPI(スパム、バルクメッセージング、スクレイピング)の誤用は、アカウントが禁止されている可能性があります。 このツールを使用する方法については、単独で責任を負います。
コンテンツ
- 特徴
- できること
- どのようにそれはchaindead/telegram-mcpと比較します
- クイックスタート
- クライアント構成
- 構成の参照
- セキュリティ
お問い合わせ
##特徴
| ツール | お問い合わせ | 必須アクセス |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| [[T2] | 現在のアカウント情報に戻る | |
| [tg_dialogs | ACLホワイトリストの一覧 | | |
| [tg_history | 集約・日付フィルタ・メディアダウンロードによるメッセージ履歴 | [read |
| [tg_search | テキストクエリでチャットでメッセージを検索し、オプションの送信者フィルターで | [read |
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
mcp-telegram
An MCP server that connects AI assistants like Claude to your real Telegram account via the User API (MTProto). Not a bot — Claude reads and sends messages as you.
Built with gotd/td and the official MCP Go SDK.
Telegram API Terms of Service: This project uses the Telegram User API. You must obtain your own
api_idandapi_hashfrom my.telegram.org and comply with the Telegram API Terms of Service. Misuse of the User API (spam, bulk messaging, scraping) may result in your account being banned. You are solely responsible for how you use this tool.
Contents
- Features
- What you can do with it
- How it compares to chaindead/telegram-mcp
- Quick start
- Client configuration
- Configuration reference
- Security
Features
| Tool | What it does | Required permission |
|---|---|---|
tg_me |
Returns current account info | — |
tg_dialogs |
Lists dialogs visible to the ACL whitelist | — |
tg_history |
Fetches message history with pagination, date filtering, and media download | read |
tg_search |
Searches messages in a chat by text query, with optional sender filter | read |
tg_send |
Sends a text message or file, with optional reply-to | send |
tg_forward |
Forwards messages from one chat to another | read + send |
tg_draft |
Saves a draft message (does not send) | draft |
tg_mark_read |
Marks a chat as read | mark_read |
Additional capabilities:
- File and photo sending
- Forward messages between chats
- Reply to specific messages
- Download photos and documents from message history
- Filter history by date range (
since/until) - Typed peer references (
user:ID,chat:ID,channel:ID) to prevent ID collisions - Lazy peer resolution — avoids
FLOOD_WAITerrors at startup - Global rate limiting at the RPC level
What you can do with it
Once connected, you can ask your AI assistant things like:
Catch up on messages
- “Check my unread Telegram messages and give me a summary”
- “What did @alice write in the last 24 hours?”
- “Show me messages from the Dev Team chat since Monday”
Reply and communicate
- “Draft a response to the last message from @bob — don’t send it yet”
- “Send ‘sounds good, let’s meet at 3pm’ to @alice”
- “Reply to message 1234 in the project chat with my feedback”
Manage your inbox
インストール
npx @prgebish/mcp-telegram serve --config config.yaml設定
{
"mcpServers": {
"telegram": {
"command": "/path/to/mcp-telegram",
"args": ["serve", "--config", "/path/to/config.yaml"],
"env": {
"TG_APP_ID": "12345",
"TG_API_HASH": "your_api_hash"
}
}
}
}