Better Telegram MCP
Better Telegram MCP
mcp-name: io.github.n24q02m/better-telegram-mcp
Bot API (httpx) による迅速なボット統合と、MTProto (Telethon) によるユーザーアカウントのフルアクセスを両立した、デュアルモード対応のTelegram用MCPサーバーです。
特徴
デュアルモード -- ボット用のBot API (httpx) と、ユーザーアカウント用のMTProto (Telethon) に対応
6つのツール -- アクションディスパッチ機能付き:
message,chat,media,contact,config,help自動モード検出 -- ボットトークンを設定すればボットモード、API認証情報を設定すればユーザーモードとして動作
WebベースのOTP認証 -- ブラウザベースの認証。ヘッドレス環境向けのリモートリレーをサポート
ツールアノテーション -- 各ツールは
readOnlyHint,destructiveHint,idempotentHint,openWorldHintを宣言MCPリソース -- ドキュメントを
telegram://docs/*リソースとして利用可能セキュリティ強化 -- SSRF保護、パストラバーサル防止、エラーサニタイズを実装
Related MCP server: Telegram MCP Server & Channel Monitor
セットアップ
AIエージェントを使用する場合 -- 以下をコピーしてAIエージェントに送信してください:
Please set up better-telegram-mcp for me. Follow this guide: https://raw.githubusercontent.com/n24q02m/better-telegram-mcp/main/docs/setup-with-agent.md
手動セットアップ -- docs/setup-manual.md に従ってください
ツール
ツール | アクション | 説明 |
|
| メッセージの送信、編集、削除、転送。ピン留め、リアクション、検索、履歴の閲覧 |
|
| チャット、グループ、チャンネルのリスト表示と管理。メンバー、管理者、フォーラムトピックの管理 |
|
| 写真、ファイル、ボイスメモ、動画の送信。メッセージからのメディアダウンロード |
|
| 連絡先のリスト表示、検索、追加。ユーザーのブロック/ブロック解除(ユーザーモードのみ) |
|
| サーバー状態、実行時設定、キャッシュ、認証情報セットアップ(リレー、状態、リセット、完了) |
| -- | あらゆるトピックに関する詳細ドキュメント |
MCPリソース
URI | コンテンツ |
| メッセージ操作リファレンス |
| チャット管理リファレンス |
| メディア送信/ダウンロードリファレンス |
| 連絡先管理リファレンス |
| 全ドキュメントの統合 |
セキュリティ
SSRF保護 -- すべてのURLは内部/プライベートIP範囲に対して検証され、DNSリバインディングをブロック
パストラバーサル防止 -- ファイルパスを検証し、機密ディレクトリへのアクセスをブロック
セッションファイルのセキュリティ -- 600パーミッションを設定。2FAはWeb UI経由のみ(環境変数には保存されません)
エラーサニタイズ -- エラーメッセージに認証情報が含まれないように保護
ソースからのビルド
git clone https://github.com/n24q02m/better-telegram-mcp.git
cd better-telegram-mcp
uv sync
uv run better-telegram-mcpライセンス
MIT -- LICENSE を参照してください。
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Multi-tenant Telegram gateway for AI agents — HTTP+stdio, 8 tools, MTProto User API
Hosted Telegram MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Telegram bridge for your MCP-compatible agent. Bidirectional, no LLM in our stack.
Unified messaging MCP server: WhatsApp, Instagram, Telegram, SMS, Messenger & email support inbox
Related MCP Servers
- AlicenseBqualityDmaintenanceFull-featured Telegram Bot API server for MCP (Model Context Protocol). 174 tools covering the entire Bot API — messages, chats, stickers, payments, forums, stories, and more.1007MIT
- AlicenseAqualityDmaintenanceA comprehensive MCP server providing 35 tools for managing Telegram messages, media, and chat interactions via the Bot API. It also features a real-time monitoring system using the Telethon User API to log messages from specific channels.35Apache 2.0
- AlicenseNot gradedqualityBmaintenanceTelegram MTProto-based MCP server with 19 tools for reading, searching, sending, forwarding, and summarizing messages3MIT
- AlicenseNot gradedqualityBmaintenanceDual-plane Telegram MCP server providing read-only analytics and guarded write actions with built-in rate limiting, anti-spam protection, and session management.10MIT