BM

beautyfree/mcp-telegram

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

34 stars 6 forks 品質 78 トレンド 0MIT

テレグラムMCPサーバー(MTProto)。 Claude、Cursor、Claudeコード、VSコード、Codex、Cline、Windsurfを実際のTelegramアカウントに接続します。 読み取り/検索/送信メッセージ、適度なチャネル、管理...

概要

クロード、コーデックス、カーソル、クロードコード、VSコード、Cline、WindsurfなどのMCPクライアント用のmcp-telegram Telegram MCPサーバー。 MTProto、ブラウザベースのローカルサインイン、100以上のツールを使用して、実際のTelegramユーザーアカウント。 レイジーローディング+コンテキストコストを下げる必要がありますか? テレグラムエージェント、スキルベースの仲間を参照してください。 Claude デスクトップ、Codex CLI、 Cursor、Claude コード、VS コード、Cline、Windsurf、Goose などの MCP 互換クライアントを MTProto 経由で実際の Telegram ユーザアカウントに接続するモデルコンテキストプロトコル (MCP) サーバー。そのため、エージェントは、Telegram UI を経由して、チャットや自動ツール呼び出しから Telegram チャットや自動ツールの呼び出しを読み取り、検索、送信、管理できます。 ダイアログを読んで、メッセージをグローバルに検索する · send/edit/forward/react/poll · メディアをダウンロードし、ボイスノートをダウンロード · 適度なチャネル (禁止/制限/プロモーション, リンクを招待します, 遅くモード, 管理者ログ, フォーラムトピック) · ストーリーを管理する, 連絡先, ドラフト, 通知, フォルダ, プライバシー · 何か他のもののための未加工MTProto橋に落ちる.

概要(AI 翻訳)

mcp-telegramの使い方

Claude、Codex、Cursor、Claudeコード、VSコード、Cline、WindsurfなどのMCPクライアント用のTelegram MCPサーバー。 MTProto、ブラウザベースのローカルサインイン、100以上のツールを使用して、実際のTelegramユーザーアカウント。 レイジーローディング+コンテキストコストを下げる必要がありますか? テレグラムエージェント、スキルベースの仲間を参照してください。

Claude デスクトップ、Codex CLI、 Cursor、Claude コード、VS コード、Cline、Windsurf、Goose などの MCP 互換クライアントを MTProto 経由で実際の Telegram ユーザアカウントに接続するモデルコンテキストプロトコル (MCP) サーバー。そのため、エージェントは、Telegram UI を経由して、チャットや自動ツール呼び出しから Telegram チャットや自動ツールの呼び出しを読み取り、検索、送信、管理できます。

: ダイアログを読み、メッセージをグローバルに検索する · 送信/edit/forward/react/poll · メディアをダウンロードし、音声メモをトランクアウト · 適度なチャンネル (禁止/restrict/promote, リンクを招待します, 遅いモード, 管理者ログ, フォーラムトピック) · ストーリーを管理する, 連絡先, ドラフト, 通知, フォルダ, プライバシー · またはその他の何かのための未加工MTProto橋まで下落. 1つの署名付きユーザーアカウントに対して、ボットは必要ありません。

[!警告] 実際のTelegramユーザ(ボットではなく)でこのサーバがサインインします。 セッションは `~/ に住んでいます.

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

mcp-telegram

Telegram MCP server for Claude, Codex, Cursor, Claude Code, VS Code, Cline, Windsurf, and other MCP clients. Real Telegram user account via MTProto, browser-based local sign-in, 100+ tools. Need lazy-loading + lower context cost? See telegram-agent, the skill-based companion.

A Model Context Protocol (MCP) server that connects Claude Desktop, Codex CLI, Cursor, Claude Code, VS Code, Cline, Windsurf, Goose, and any other MCP-compatible client to a real Telegram user account via MTProto—so your agent can read, search, send, moderate, and manage Telegram chats from chat or automated tool calls instead of clicking through the Telegram UI.

Use it to: read dialogs and search messages globally · send/edit/forward/react/poll · download media and transcribe voice notes · moderate channels (ban/restrict/promote, invite links, slow-mode, admin log, forum topics) · manage stories, contacts, drafts, notifications, folders, privacy · or fall through to the raw MTProto bridge for anything else. All against a single signed-in user account—no bot required.

[!WARNING] This server signs in as a real Telegram user (not a bot). Sessions live in ~/.telegram-agent/. Treat that directory like a password.

Prerequisites

  1. Node.js >=20
  2. Telegram API credentials from my.telegram.org/apps — api_id and api_hash

Want a lighter transport?

This package is the MCP server — every tool schema (~12,700 tokens) sits in your agent’s context on every turn. Good for any MCP client and for hosted runtimes that can’t shell out.

If your agent is Claude Code / Codex CLI / Cursor / Gemini CLI / Cline / Windsurf, there’s a companion package — telegram-agent — that ships the same Telegram surface as a universal agent skill. The agent only loads the skill instructions when your prompt mentions Telegram — ~50× lower context cost in idle. Standalone (no MCP server in the loop), but uses the same ~/.telegram-agent/ session store as this package — sign in once, use either or both.

npm i -g telegram-agent
telegram-agent login
npx skills add beautyfree/telegram-agent -a claude-code -g
GitHub で README 全文を見る

インストール

npx -y mcp-telegram
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "telegram": { "command": "npx", "args": ["-y", "mcp-telegram"], "env": { "TELEGRAM_API_ID": "123456", "TELEGRAM_API_HASH": "abc..." } } } }