プロトタイプ · プレビュー版:公式レジストリのすべてのサーバーを掲載し、30分ごとに同期しています。レビューとアカウント機能は今後のステップで始まります。
PopNx MCPAIを使う人のためのMCPサーバー · やさしい言葉で解説

Telethon Plus

作者:psyb0tバージョン 0.5.7i★ –iパソコンで動く
レジストリ名io.github.psyb0t/telethon-plus

インストール

概要

作者による説明(英語の原文)

Self-hosted MCP server: Telegram userbot control (Telethon) via HTTP and MCP.

PopNx MCPの3つの柱

この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。

できること

このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。

  • 接続方法: パソコンで動く
  • トランスポート: Streamable HTTP
  • カテゴリ: チャット・メール

インストール

使っているAIアプリを選んで、設定をコピーしてください。

インストールの前に

  • 基本チェック:1項目中1項目に合格
  • あなたのパソコンで、あなたのユーザーと同じ権限(ファイル、ネットワーク、アプリ)で動きます。
  • レジストリには、入力が必要なキーは載っていません。

必要なもの

  • DockerDockerのインストール

どのアプリを使っていますか?

上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。

Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます

{
  "mcpServers": {
    "telethon-plus": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "docker.io/psyb0t/telethon-plus:v0.5.7"
      ]
    }
  }
}

ターミナルでこれを実行します

claude mcp add telethon-plus -- docker run -i --rm docker.io/psyb0t/telethon-plus:v0.5.7

Cursorで開く

または、設定を自分でコピーする

プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます

{
  "mcpServers": {
    "telethon-plus": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "docker.io/psyb0t/telethon-plus:v0.5.7"
      ]
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

VS Codeで開く

または、設定を自分でコピーする

プロジェクトの .vscode/mcp.json に貼り付けます

{
  "servers": {
    "telethon-plus": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "docker.io/psyb0t/telethon-plus:v0.5.7"
      ]
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

これはパソコンで動くサーバーですが、ChatGPTがつなげるのはインターネット上のサーバーだけです。ほかのアプリを選んでください。

選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。

この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。

できること

パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。

基本チェックi

誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月6日にチェック

  • ✓ 合格

    作者とリポジトリが一致

    レジストリ名は、リポジトリを所有するGitHubアカウント psyb0t で確認済みです

  • … 未チェック

    今もメンテナンスされている

    このリポジトリはまだGitHubから読み取っていません

  • … 未チェック

    ライセンスがある

    このリポジトリはまだGitHubから読み取っていません

  • – 対象外

    エンドポイントが応答する

    これはパソコンで動くため、インターネット上のエンドポイントはありません

  • – 対象外

    OAuthでサインイン

    パソコンで動き、代わりにローカルの設定を使います

  • … 未チェック

    ツールの説明に隠れた指示がない

    パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです

チャット・メールのほかのサーバーとの比較i

  • このカテゴリのほかの1771件のうち0%よりスターが多い
  • このカテゴリのほかの1771件のうち20%より最近レジストリに公開
  • 基本チェックの結果が、このカテゴリのほかの1771件のうち100%と同じかそれ以上

レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。

よくある質問

Telethon Plusは安全ですか?

当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。

どんなキーやコードが必要ですか?

レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。

パソコンで動きますか、それともクラウドですか?

あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。

今もメンテナンスされていますか?

GitHubリポジトリの最終更新は–、最新バージョン(0.5.7)がレジストリに届いたのは3 か月前です。

どのアプリで使えますか?

Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにDockerも必要です。

代わりに使えるものは?

同じカテゴリには:Vexa, emailmd, MCP WhatsApp Cloud

代わりの候補

同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。

カードの見方:★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i

Vexa

作者:Vexa-ai

Meeting bot and transcripts for Google Meet, Teams and Zoom. Live or after, speakers labelled.

クラウドで動く★ 2,949Apache-2.02 か月前更新
インストール

emailmd

作者:anypost

Render markdown into email-safe HTML, lint drafts for deliverability problems, and preview emails.

パソコンでもクラウドでも★ 1,385MIT31 日前更新
インストール

MCP WhatsApp Cloud

作者:codespar

MCP server for WhatsApp Cloud API (Meta) — messages, media, and templates via Graph API

パソコンで動く★ 277MIT5 か月前更新
インストール

作者のREADME

READMEを開く

作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。

docker-telethon-plus

Your Telegram account, but it takes HTTP requests. Wraps Telethon — the real MTProto userbot client, not that neutered Bot API garbage — behind a JSON HTTP API and a Model Context Protocol endpoint.

Same tools, two doors. POST some JSON, or point your AI agent at /mcp and let it go nuts. Either way it's talking to Telegram as *you*, with full account access.

One login. One session string. Never type a code again.

Table of Contents

  • How it works
  • Quick start
  • First-time login
  • Configuration
  • Tools
  • HTTP API
  • MCP
  • Agent integrations
  • Development
  • Tests
  • License

How it works

+-------------------+        +-----------------------+

| Any HTTP client | -----> | REST /api/... | --+ +-------------------+ +-----------------------+ | | +-----------+ Telegram +-------------------+ +-----------------------+ +-> | Telethon | <----> Servers | MCP-aware agent | -----> | /mcp (Streamable | --+ +-----------+ (MTProto) | (Claude, etc.) | | HTTP transport) | +-------------------+ +-----------------------+

One Telethon client. One async lock. Both surfaces share the same tool registry — no duplication, no weird state, no bullshit.

Quick start

services:

telethon-plus: image: psyb0t/telethon-plus ports:

  • "8080:8080" environment: TELETHON_API_ID: "123456" TELETHON_API_HASH: "your-api-hash" TELETHON_SESSION: "1Aa...long-string-from-login-helper..." restart: unless-stopped

Get API_ID / API_HASH from https://my.telegram.org/apps. Get the session string from the login helper below.

First-time login

Telegram makes you prove you're a human once — phone number, SMS code, optionally 2FA. Do it once, never again.

cp .env.example .env

$EDITOR .env # put in TELETHON_API_ID and TELETHON_API_HASH

make login

make login builds the image, runs the interactive flow, and shoves TELETHON_SESSION straight into your .env. That's it. Run make run and you're live.

No repo? No problem:

docker run --rm -it \

-e TELETHON_API_ID=123456 \ -e TELETHON_API_HASH=your-api-hash \ psyb0t/telethon-plus login

Copy the session string it spits out, set it as TELETHON_SESSION, done.

The session string is full account access. Whoever has it is you. Don't commit it, don't paste it in Slack, don't tattoo it anywhere.

Configuration

All config via environment variables. Copy .env.example to get the full list with comments.

VariableRequiredDefaultDescription
TELETHON_API_IDyes—API ID from my.telegram.org
TELETHON_API_HASHyes—API hash from my.telegram.org
TELETHON_SESSIONyes—StringSession from the login helper
TELETHON_HTTP_LISTEN_ADDRESSno0.0.0.0:8080host:port to bind
TELETHON_LOG_LEVELnoINFODEBUG, INFO, WARNING, ERROR
TELETHON_REQUEST_TIMEOUTno60Per-request timeout in seconds
TELETHON_FLOOD_SLEEP_THRESHOLDno60Auto-sleep through FLOOD_WAIT errors below this many seconds. Telegram will rate-limit you — this is the safety valve.
TELETHON_DEVICE_MODELnodocker-telethon-plusWhat Telegram thinks your device is
TELETHON_SYSTEM_VERSIONno1.0Ditto for OS
TELETHON_APP_VERSIONno1.0Ditto for app
TELETHON_DOWNLOAD_DIRno/tmp/telethon-plusScratch space for send_file uploads
TELETHON_AUTH_KEYno""When set, all endpoints require Authorization: Bearer . /healthz stays public. Empty = no auth.
Throttling & cache (anti-flood)

Telegram bans accounts that hammer it. Defaults here are conservative — meant to keep you under the server-side limits without you having to think about it. Tune only if you know what you're doing.

VariableDefaultWhat it does
TELETHON_THROTTLE_ENABLEDtrueMaster switch for all rate-limiting below
TELETHON_THROTTLE_GLOBAL_INTERVAL_MS50Min gap between any two outgoing requests
TELETHON_THROTTLE_JITTER_MS200Random ±jitter added on top (kills metronome traffic patterns)
TELETHON_THROTTLE_PER_CHAT_INTERVAL_MS1100Min gap between sends to the same chat (Telegram's "1/sec/chat" ceiling, with margin)
TELETHON_THROTTLE_PER_CHAT_READ_INTERVAL_MS250Min gap between reads from the same chat. Stops single-channel scraping from monopolizing the read bucket.
TELETHON_THROTTLE_ADAPTIVEtrueOn each FLOOD_WAIT, multiply all waits ×2 for an hour. Resets after a quiet hour.
TELETHON_BUCKET_RESOLVE_PER_MIN5Cap on resolveUsername — the main thing that gets accounts 22-hour-banned
TELETHON_BUCKET_GET_FULL_PER_MIN10Cap on getFullChannel / getFullUser / get_participants
TELETHON_BUCKET_JOIN_PER_HOUR5Cap on channel/group joins
TELETHON_BUCKET_CREATE_PER_HOUR5Cap on channel/group creation
TELETHON_BUCKET_SEND_PER_MIN20Cap on sends across all chats
TELETHON_BUCKET_READ_PER_MIN600Cap on read ops. Counted per server-side API call, not per tool call: get_messages(limit=300) charges 3 slots (Telegram caps GetHistory at 100/page); get_dialogs(limit=500) similarly charges 5.
TELETHON_CACHE_ENABLEDtruePersist resolved entities to disk
TELETHON_CACHE_PATH/cache/entities.jsonMount /cache as a host volume to keep this across rebuilds
TELETHON_CACHE_TTL_SECONDS6048007 days. Set 0 for no expiry.
TELETHON_FLOOD_SLEEP_THRESHOLD60Telethon's reactive auto-sleep: if a FLOOD_WAIT is shorter than this many seconds, sleep through it. Above this, raise. Set very high (e.g. 86400) to never raise — but then a hostile FLOOD_WAIT will block your process for the full duration.

How the layers stack:

  1. Entity cache short-circuits resolveUsername — first lookup of @somechannel calls Telegram; every subsequent lookup is free. Survives container restarts via the /cache volume.
  2. Per-method token buckets cap the dangerous methods. If you try to resolve 6 new usernames in one minute, the 6th sleeps until the oldest expires.
  3. Per-chat send interval throttles sends to each chat to ≤1/sec (with margin).
  4. Global gap + jitter humanizes the overall traffic shape.
  5. Adaptive backoff: a single FLOOD_WAIT halves your effective rate for an hour. Three in a row → ÷8. Auto-recovers after an idle hour.

For bulk scraping work (the scenario that caused 22-hour bans before): the cache + bucket_resolve_per_min=5 combination is what saves you. Resolving 200 new channels takes ~40 minutes instead of getting you banned in 5.

Tools

JSON in, JSON out. All inputs are pydantic-validated — send garbage, get a 400 back with exactly what's wrong.

Chat references (chat, from_chat, to_chat) accept whatever Telethon accepts:

FormatExample
Username@psyb0t
Phone number+1234567890
t.me linkhttps://t.me/psyb0t
Numeric ID123456789
Supergroup/channel ID-1001234567890
Your own Saved Messagesme

Numeric IDs only resolve for entities Telethon has already seen — i.e. cached in your session via a prior @username / t.me lookup, dialog list, or incoming message. MTProto needs an access_hash, not just an ID, and bare numbers don't carry one. Especially relevant for bots: pass @botusername first (or call GET /api/dialogs / GET /api/entities?chat=@bot once) before referring to it by numeric ID. If you only have the bot's token and no username, hit Telegram's Bot API getMe to fetch the username, then use that.

Response shape

Every 2xx returns the resource directly. No {"result": ...} wrapper, no envelope. Lists are JSON arrays, singles are JSON objects.

Errors return {"detail": "..."} (FastAPI standard). Telegram RPC errors arrive as 502 with detail = {"telegram_error": "...", "message": "..."}.

Quick reference
EndpointRequired paramsWhat it does
GET /api/me—Account profile.
GET /api/entitieschatResolve a username/ID/link to a profile.
POST /api/entities/bulkchatsBulk resolve, honoring the resolve-username bucket.
GET /api/dialogs—List dialogs. Optional: limit, archived, search (substring on title/@).
GET /api/messageschatRead recent messages. Optional: limit, offset_id, search.
GET /api/messages/{id}chatFetch a single message.
GET /api/messages/{id}/mediachatDownload attachment as raw bytes (binary stream). Returns Content-Type from Telegram + Content-Disposition: attachment; filename=.... Optional: max_bytes. MCP clients should use the download_media tool which returns base64.
POST /api/messageschat, `text` or `file_url`Send a message. If file_url is present, fetches it and sends as media (with text as caption). Otherwise sends text. Optional: parse_mode, reply_to, silent, link_preview, schedule, force_document, max_bytes.
POST /api/messages/forwardfrom_chat, to_chat, message_idsForward messages.
POST /api/messages/readchatMark as read. Optional max_id.
PATCH /api/messages/{id}chat, textEdit.
DELETE /api/messageschat, message_idsBulk delete (body has the list).
POST /api/messages/{id}/pinchatPin. Optional silent, pm_oneside.
POST /api/messages/{id}/unpinchatUnpin.
POST /api/messages/{id}/reactionschat, emojiReact. Optional big.
DELETE /api/messages/{id}/reactionschatRemove your reaction.
GET /api/participantschatList members. Optional: limit, search.
POST /api/chatstitleCreate supergroup or channel.
DELETE /api/chatschatDelete supergroup/channel you own (body).
POST /api/chats/joinchatJoin public channel/group.
POST /api/chats/inviteinviteJoin via private t.me/+hash.
POST /api/chats/leavechatLeave.
GET /api/chats/{chat}/linked—Resolve a channel's linked discussion group.
POST /api/chats/{chat}/admin/banuserBan a user. Optional until_seconds.
POST /api/chats/{chat}/admin/unbanuserLift a ban.
POST /api/chats/{chat}/admin/kickuserKick (ban + immediate unban).
POST /api/chats/{chat}/admin/promoteuserGrant admin rights + optional title.
POST /api/chats/{chat}/admin/demoteuserStrip admin rights.
POST /api/pollschat, question, optionsCreate a poll. Optional quiz, correct_option, solution.
POST /api/polls/{id}/votechat, optionsVote (0-based indices).
GET /api/polls/{id}/resultschatCurrent vote counts.
GET /api/throttle/status—Live rate-limit + cache state.
GET /api/account/health—Flood-risk tier.

| `GET /metrics

冒頭だけを表示しています。続きはリポジトリで読めます

PopNxに聞く