ต้นแบบ · รุ่นทดลอง: มีทุก server ในทะเบียนทางการ อัปเดตทุก 30 นาที รีวิวและบัญชีผู้ใช้จะมาในขั้นถัดไป
PopNx MCPที่รวม MCP สำหรับคนใช้ AI · อธิบายเป็นภาษาคน

Telegram AI CLI MCP

โดย stufentlyรุ่น 0.1.3i★ –iรันบนเครื่อง
ชื่อใน registryio.github.stufently/telegram-ai-cli-mcp

ติดตั้ง

ภาพรวม

คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)

Read a personal Telegram account over MTProto; every write is a plan a human applies.

สามเสาของ PopNx MCP

สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน

ใช้ทำอะไรได้

ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry

  • การเชื่อมต่อ: รันบนเครื่อง
  • ช่องทาง (transport): stdio
  • หมวด: แชตและอีเมล

ติดตั้ง

เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง

ก่อนติดตั้ง

ต้องเตรียมก่อน

  • PyPIติดตั้ง uv ของ Python (มีคำสั่ง uvx) ในเครื่อง

คุณใช้แอปไหน

เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”

เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json

{
  "mcpServers": {
    "telegram-ai-cli": {
      "command": "uvx",
      "args": [
        "telegram-ai-cli-mcp",
        "mcp"
      ],
      "env": {
        "TGAI_PROFILE": "ใส่ค่าของคุณ",
        "TGAI_CONFIG": "ใส่ค่าของคุณ"
      }
    }
  }
}

พิมพ์คำสั่งนี้ใน Terminal

claude mcp add telegram-ai-cli --env TGAI_PROFILE='ใส่ค่าของคุณ' --env TGAI_CONFIG='ใส่ค่าของคุณ' -- uvx telegram-ai-cli-mcp mcp

เติมค่าที่เว้นว่างไว้ก่อนรัน

เปิดใน Cursor

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json

{
  "mcpServers": {
    "telegram-ai-cli": {
      "command": "uvx",
      "args": [
        "telegram-ai-cli-mcp",
        "mcp"
      ],
      "env": {
        "TGAI_PROFILE": "ใส่ค่าของคุณ",
        "TGAI_CONFIG": "ใส่ค่าของคุณ"
      }
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

เปิดใน VS Code

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .vscode/mcp.json ของโปรเจกต์

{
  "servers": {
    "telegram-ai-cli": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "telegram-ai-cli-mcp",
        "mcp"
      ],
      "env": {
        "TGAI_PROFILE": "ใส่ค่าของคุณ",
        "TGAI_CONFIG": "ใส่ค่าของคุณ"
      }
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น

ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี

ค่าที่ต้องใส่เอง

  • TGAI_PROFILE env
    readonly (default) or plan: plan lets the agent prepare plans, never apply them
  • TGAI_CONFIG env
    Path to tgai.yaml if not ~/.config/telegram-ai-cli-mcp/tgai.yaml

ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README

ทำอะไรได้บ้าง

รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง

ผลตรวจเบื้องต้นi

เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569

  • ✓ ผ่าน

    ตัวตนผู้ทำตรงกับ repo

    ชื่อใน registry ยืนยันด้วยบัญชี GitHub stufently ซึ่งเป็นเจ้าของ repo

  • … ยังไม่ตรวจ

    ยังมีคนดูแล

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • … ยังไม่ตรวจ

    มีสัญญาอนุญาต (license)

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • – ไม่เกี่ยว

    endpoint ตอบ

    ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต

  • – ไม่เกี่ยว

    ล็อกอินแบบ OAuth

    ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน

  • … ยังไม่ตรวจ

    คำอธิบายเครื่องมือไม่มีคำสั่งแอบแฝง

    รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต

เทียบกับตัวอื่นในหมวด แชตและอีเมลi

  • ดาวมากกว่า 0% ของอีก 1774 ตัวในหมวดนี้
  • ส่งรุ่นใหม่เข้า registry ล่าสุดกว่า 54% ของอีก 1774 ตัวในหมวดนี้
  • ผลตรวจเบื้องต้นดีกว่าหรือเท่ากับ 100% ของอีก 1774 ตัวในหมวดนี้

เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo

คำถามที่พบบ่อย

Telegram AI CLI MCP ปลอดภัยไหม?

จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น

ต้องใช้กุญแจหรือรหัสอะไรบ้าง?

registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก

ตัวนี้รันบนเครื่องหรือบนคลาวด์?

รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)

ยังมีคนดูแลอยู่ไหม?

repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.1.3) เข้า registry 23 วันที่ผ่านมา

ใช้กับโปรแกรมไหนได้บ้าง?

โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Python (uv) ในเครื่องด้วย

มีตัวไหนใช้แทนได้บ้าง?

ในหมวดเดียวกันมี Vexa, emailmd, MCP WhatsApp Cloud

ตัวที่ใช้แทนได้

server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว

อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi

Vexa

โดย Vexa-ai

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

รันบนคลาวด์★ 2,949Apache-2.0อัปเดต 2 เดือนที่ผ่านมา
ติดตั้ง

emailmd

โดย anypost

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

บนเครื่องหรือคลาวด์★ 1,385MITอัปเดต 31 วันที่ผ่านมา
ติดตั้ง

MCP WhatsApp Cloud

โดย codespar

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

รันบนเครื่อง★ 277MITอัปเดต 5 เดือนที่ผ่านมา
ติดตั้ง

README จากผู้ทำ

เปิดอ่าน README

ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ

telegram-ai-cli-mcp — CLI and MCP server for AI agents on a personal Telegram account

telegram-ai-cli-mcp is a CLI and MCP server, built from one Python codebase, for automating a personal Telegram account over MTProto. It gives Claude Code, Claude Desktop, Codex, Cursor and other MCP clients task-shaped access to Telegram — read chats, search messages, resolve who a username belongs to, check who's in a group — while anything that changes something on Telegram (sending a message, joining a chat, deleting, promoting an admin) goes through an explicit plan-and-apply step instead of running the moment a model asks for it.

It is for people who want an AI agent to have a hand on their own Telegram — triaging messages, drafting replies, watching a chat for something specific — without giving that agent the standing ability to send, join or invite on its own.

This automates a personal Telegram account (MTProto), not a bot account (Bot API). Telegram can limit or permanently ban accounts it judges to be running abusive automation — mass joins, high-volume sends, scraping members. Using this tool against your own account is at your own risk; see Why not another MTProto wrapper for why a personal account behaves differently from a bot in the first place.

Status: 0.1.x, on [PyPI](https://pypi.org/project/telegram-ai-cli-mcp/). Before 1.0.0 a breaking change can come in any 0.x release, and the changelog names it; deliberate non-goals and accepted local-boundary risks are recorded in docs/product-boundaries.md.

tg-ai account add --label work

tg-ai account login --label work tg-ai chats --search "team" tg-ai chat read --chat 123456789 --limit 50 tg-ai message send --chat 123456789 --text "On my way" # writes a plan, sends nothing tg-ai plan apply 4f0f8a2b9c7e1d3a5b6c7d8e9f0a1b2c tg-ai mcp

Why not another MTProto wrapper

Handing a model raw Telethon or a thin MTProto wrapper hands it Telegram's sharp edges too:

  • Usernames are not stable identifiers. @someone can change hands; a tool that plans against a handle and sends against the same handle later can address a different person than the one it was approved for. Every plan here resolves a target to a numeric peer id once, and re-checks that id — not the handle — at apply time.
  • `FloodWaitError` is not something to swallow. Telethon's default flood_sleep_threshold sleeps and retries a failed call automatically, which is exactly the wrong behavior for a plan-and-apply tool: an automatic retry after a timeout is how one intended send becomes two. This project turns that default off and drives retries itself.
  • Reading a chat is not free of side effects by default. Most Telegram clients move the read pointer the moment a dialog is opened. A tool an agent can call to "just look" has to guarantee that looking never marks the other person's messages read — that's asserted by a dedicated test here, not left to documentation.
  • `noforwards` (protected content) is enforced by Telegram, not by your client. A chat marked content-protected refuses forwards at the server (CHAT_FORWARDS_RESTRICTED), and no client gets round that — so message.forward out of one fails, and this project's job is only to say so in those words instead of surfacing a Telethon class name. Downloading is not blocked here: Telegram asks *clients* to stop people saving protected attachments, which the official apps honour and a raw MTProto library does not — Telethon saves the file like any other, and this project adds no guard of its own rather than pretending to one. That means re-posting the bytes as a fresh upload is possible — it is media fetch followed by message send-file, two plans somebody approves separately — and there is deliberately no one-step feature for it, because a message you post yourself is your own act and should read like one.
  • A revoked session does not fail cleanly. Terminating a session from the phone's Settings → Devices doesn't raise a friendly "logged out" error on the next call — it raises AuthKeyDuplicatedError or SessionRevokedError, and a client that retries every disconnect the same way ends up looping against a session that is never coming back.
  • A user account is not a bot account. Bot API bots are rate-limited and sandboxed by Telegram on purpose, and can't read history the way a member can. A personal account can do far more — which is also why Telegram polices unusual activity on it more aggressively: mass joins, high-volume sends and member scraping draw limits and bans, not just error codes.
  • `tdata` is Telegram Desktop's own undocumented on-disk session format, not something Telegram publishes a schema for. Getting an import wrong doesn't fail loudly — see the tdata warning under Configure.

What it does

CommandAnswers
tg-ai fleetWhich accounts are configured, authorized, expired or locked right now
tg-ai chatsWhich chats exist, and what their chat id is (search by title)
tg-ai chat readWhat was said in a chat — paged with --before-id, filtered to one forum topic with --topic-id, with media metadata
tg-ai chat topicsWhich topics a forum supergroup has, and where the unread messages are
tg-ai inboxWhat's waiting for a reply right now, across every configured account
tg-ai watchWait for the next incoming message instead of polling for it — a burst of fast replies comes back as one answer, and the wait is capped
tg-ai searchWhich messages match a phrase, and where — with --context N, the messages either side of each match
tg-ai whoisWho a @username, numeric id or invite resolves to; for channels, the "message the admins" Direct Messages chat — its name, and an id you can read or send to without joining anything
tg-ai chat membersWho's in a chat, and who administers it
tg-ai media fetchSave a message's photo, video or document to a server-controlled path
tg-ai media transcribeTurn a voice message into text — Whisper in an optional container, on your own machine, with the network switched off
tg-ai archive syncCopy one named chat into a local SQLite archive, resuming where the last run stopped
tg-ai archive searchSearch that archive offline — substring or regular expression, by sender, by date — with no Telegram request at all
tg-ai archive statusWhich chats are archived, how many messages, and when each was last synced
tg-ai archive forgetErase one chat, and every message of it, from the local archive
tg-ai draftsWhat was started and never sent, and in which chat
tg-ai scheduledWhat is queued to be sent to a chat later, and when
tg-ai account sessionsWhich devices and apps this account is signed in on — and whether one of them isn't yours
tg-ai message send / message send-file / chat join / chat promote / …Validate and save an intent — send a message or a file, edit, delete, forward, join, leave, create a group, invite, promote, change the profile — as a plan. Nothing goes out yet
tg-ai chat ban / unban / kick / restrict / demoteModeration, planned the same way: one member per plan, and the preview says who, where, which rights and for how long
tg-ai message scheduleQueue a message for an exact time — or for when the other person is next online — as a plan. Once applied it sits in Telegram's own scheduled queue, visible and cancellable in the app
tg-ai chat archive / chat mutePut a chat in Archived, or silence it for a while or indefinitely — settings only this account can see, planned like every other write
tg-ai folder addPut a chat into one of the folders the account already has. Telegram replaces a folder wholesale when it is edited, so everything already in it is preserved verbatim — including the chats this configuration may not list
tg-ai plan list / plan show See what's waiting for a decision, and exactly what applying it would do
tg-ai plan apply Carry out exactly what a saved plan describes
tg-ai plan reject Decline a pending plan
tg-ai daemon serve --account Hold one account open so several local callers share it instead of the second one being refused
tg-ai mcp / tg-ai mcp --httpServe MCP over stdio, or over loopback HTTP with a mandatory bearer token

Safety

Read operations run immediately. Nothing else does — every operation that changes something on Telegram is a two-step plan, then apply.

CallerReadPlanApply
CLI, a person at a terminalimmediatetg-ai message send … (each write operation is its own command; it saves a plan and prints the id)tg-ai plan apply
MCP client with no shell access (Claude Desktop, most IDE/editor integrations)immediatetelegram_plan_ tool — only under `profile: plan`; the default readonly profile does not publish plan tools at allnot reachable — there is no MCP tool that applies a plan
MCP client that *also* has its own shell (Claude Code, Codex, and similar coding agents)immediatetelegram_plan_ tool — only under `profile: plan`can run tg-ai plan apply itself, through its own shell — see the note below

Read-only by default, writing by explicit opt-in. A fresh install runs the readonly profile, and its MCP tool list contains no telegram_plan_* tool: a client sees the read tools and four local tools that write only into configured directories on this machine (see MCP tools), and a plan tool called by name anyway is refused with FORBIDDEN_BY_PROFILE before anything runs. Publishing the plan tools takes profile: plan in the config or TGAI_PROFILE=plan in the client's environment — and even then nothing is sent until a person runs tg-ai plan apply.

A write command never sends anything by itself — it records a plan and tells you how to carry it out:

$ tg-ai message send --chat 987654321 --text "Meeting moved to 3pm"

{ "plan_id": "4f0f8a2b9c7e1d3a5b6c7d8e9f0a1b2c", "operation": "message.send", "summary": "send to Marketing Team (group, 987654321): \"Meeting moved to 3pm\"", "state": "pending", "next": "tg-ai plan apply 4f0f8a2b9c7e1d3a5b6c7d8e9f0a1b2c" }

tg-ai plan show prints exactly what applying it would do — every field already passed through the same sanitizer that protects the terminal from a hostile chat title or message body (see render.py) — and only tg-ai plan apply (with a confirmation prompt, or --yes to skip it) actually carries it out.

The honest limit of this design, stated plainly: there is no MCP tool that applies a plan, on purpose — a confirmation an agent can send over MCP is a confirmation prompt injection can send. But that boundary is a property of the *transport*, not of the agent. An MCP client that has its own shell — Claude Code, Codex, and comparable coding agents — can simply run tg-ai plan apply as a shell command, the same as a person would. Nothing in this project detects or blocks that, because nothing at the process level can tell "the person typed this command" apart from "the agent typed this command" once both share a terminal.

For tha

ตัดมาแค่ช่วงต้น อ่านต่อใน repo

ถาม PopNx