Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By stufentlyv0.1.3MITIn 2 marketplaces
Read and act on a Telegram user account over MTProto: 21 immediate tools, and every write prepared as a plan a human applies from a terminal — chat allowlists, a hard denylist and an audit log underneath. Requires the `tg-ai` command on PATH.
Claude loads one when your task matches it, or you run it by name.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
2 marketplaces, most starred first
telegram, mtproto, telethon, userbot, mcp, claude-code, ai-agents, automation
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
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. Before
1.0.0a breaking change can come in any0.xrelease, and the changelog names it; deliberate non-goals and accepted local-boundary risks are recorded indocs/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
Handing a model raw Telethon or a thin MTProto wrapper hands it Telegram's sharp edges too:
@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.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.AuthKeyDuplicatedError or SessionRevokedError, and a client that retries every disconnect the same way ends up looping against a session that is never coming back.Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub stufently/telegram-ai-cli-mcp --plugin telegram-ai-cli-mcpPlugins from other owners that cover similar ground