テレグラム-MCP
要件
使用法
依存関係をインストールする
.env ファイルを Telegram API ID とハッシュ ( My Telegram ) で編集します。他のユーザーと共有しないでください。
httpサーバーを起動する
uv run http-server/http-server.py
MCPサーバーをインストールする
uv run mcp install mcp-server/mcp-server.py
利用可能な機能
MCP サーバーは次の機能を提供します。
get_unread_entities
: 未読メッセージがあるエンティティを取得するget_unread_messages(id)
: 指定されたエンティティIDからすべての未読メッセージを取得するget_messages(id, count)
: エンティティからカウントで制限されたメッセージを取得しますget_entities
: 現在のセッション内のすべてのエンティティを取得するget_entity_by_id(id)
: 現在のセッションからエンティティを取得するsend_message(entity_id, content, reply_to_message_id)
: オプションのマークアップと返信を付けてエンティティにメッセージを送信する
よくある問題とその解決方法
Claude は MCP サーバーを実行できません >> brew で uv をインストールします:
brew install uv
Telegramで新しいアプリを作成できません >> VPNを切断して再試行してください
ライセンス
local-only server
The server can only run on the client's local machine because it depends on local resources.
Telegram メッセージング プラットフォームとのやり取りを可能にする MCP サーバー。ユーザーは未読メッセージを取得したり、エンティティ情報を取得したり、自然言語インターフェースを通じてメッセージを送信したりできます。
Related MCP Servers
- -securityFlicense-qualityAn MCP server that provides safe access to your iMessage database through MCP, enabling LLMs to query and analyze iMessage conversations with proper phone number validation and attachment handlingLast updated -68
- -securityFlicense-qualityAn MCP server that enables communication with users through Telegram. This server provides a tool to ask questions to users and receive their responses via a Telegram bot.Last updated -038
- -securityAlicense-qualityA server that enables interaction with Telegram chats directly through MCP-compatible hosts like Claude for Desktop, providing tools to retrieve chats, get messages, and send messages.Last updated -324Apache 2.0
- -securityAlicense-qualityA simple MCP server that allows Claude to access your Telegram account to read and send messages on your behalf.Last updated -6Apache 2.0