Inbox Zero
Search Gmail and Outlook, save drafts, manage email rules, and view email stats.
Telegram on your own account: read, search, send and press bot buttons. Writes need your approval.
Pick the AI app you use, then copy the settings.
Passed 3/3 checks · Runs on your computer · ✓ Commands checked Nov 13, 2026
First: which AI do you use?
Pick your app and the steps appear below.
One time only; it works for every server that needs Node.js
Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.
SettingsDeveloperEdit Config
{
"mcpServers": {
"better-tg-cli": {
"command": "npx",
"args": [
"-y",
"better-tg-cli",
"mcp"
],
"env": {
"TG_PROFILE": "your-value"
}
}
}
}Paste the key only into the app’s field, never into a chat or to anyone
Use Better-TG-CLI (Telegram) and tell me what you can do for me, then show me one thing✓ If Claude says it is using Better-TG-CLI (Telegram) or shows a Better-TG-CLI (Telegram) tool in the answer, you are connected
Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version
ChatGPT cannot connect Better-TG-CLI (Telegram) yet
Better-TG-CLI (Telegram) runs on your computer, but ChatGPT can only connect servers that run on the web
A · Use an app that can connect Better-TG-CLI (Telegram)
B · Others in Chat & email that work with ChatGPT
Picked from the most used in the same category, only ones that connect by address with no key
Works with Claude Code, with some setup first
You need a Better-TG-CLI (Telegram) key (create it on the maker’s site) · Install Node.js on your computer first (one time)
One time only; it works for every server that needs Node.js
Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.
Mac: press Command+Space and type Terminal · Windows: open PowerShell
claude mcp add --scope user better-tg-cli --env TG_PROFILE=your-value -- npx -y better-tg-cli mcpReplace “your-value” with your key before pressing Enter
Paste the key only into the app’s field, never into a chat or to anyone
You should see Better-TG-CLI (Telegram) listed as connected
Use Better-TG-CLI (Telegram) and tell me what you can do for me, then show me one thing✓ If Claude Code says it is using Better-TG-CLI (Telegram) or shows a Better-TG-CLI (Telegram) tool in the answer, you are connected
Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Works with Cursor, with some setup first
You need a Better-TG-CLI (Telegram) key (create it on the maker’s site) · Install Node.js on your computer first (one time)
One time only; it works for every server that needs Node.js
Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.
In the Better-TG-CLI (Telegram) settings, TG_PROFILE is empty; add your key and save
Paste the key only into the app’s field, never into a chat or to anyone
Use Better-TG-CLI (Telegram) and tell me what you can do for me, then show me one thing✓ If Cursor says it is using Better-TG-CLI (Telegram) or shows a Better-TG-CLI (Telegram) tool in the answer, you are connected
Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Works with VS Code, with some setup first
You need a Better-TG-CLI (Telegram) key (create it on the maker’s site) · Install Node.js on your computer first (one time)
One time only; it works for every server that needs Node.js
Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.
In the Better-TG-CLI (Telegram) settings, TG_PROFILE is empty; add your key and save
Paste the key only into the app’s field, never into a chat or to anyone
Use Better-TG-CLI (Telegram) and tell me what you can do for me, then show me one thing✓ If VS Code says it is using Better-TG-CLI (Telegram) or shows a Better-TG-CLI (Telegram) tool in the answer, you are connected
Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Claude Code
claude mcp add --scope user better-tg-cli --env TG_PROFILE=your-value -- npx -y better-tg-cli mcpClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"better-tg-cli": {
"command": "npx",
"args": [
"-y",
"better-tg-cli",
"mcp"
],
"env": {
"TG_PROFILE": "your-value"
}
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"better-tg-cli": {
"command": "npx",
"args": [
"-y",
"better-tg-cli",
"mcp"
],
"env": {
"TG_PROFILE": "your-value"
}
}
}
}VS Code (mcp.json)
{
"servers": {
"better-tg-cli": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"better-tg-cli",
"mcp"
],
"env": {
"TG_PROFILE": "your-value"
}
}
}
}TG_PROFILE envThese settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.
npm: better-tg-cliBased on how this server connects and on each app’s own docs, checked Nov 10, 2026.
Run on your computer in
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
Runs on your computer; the tool list appears in your AI app after you install it.
We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 13, 2026
The registry name was verified with the GitHub account TheVilfer, which owns the repo
Code last changed 5 days ago
Uses MIT
This one runs on your computer; there is no internet endpoint
Runs on your computer and uses local settings instead
Runs on your computer; we can only read tool lists from internet endpoints
Ask, share a tip or report that it does not work. Sorted by what people marked helpful.
No posts yet. Be the first to ask or share.
Posts here are written by users, not the PopNx team.
No reviews yet
Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.
It passed 3 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.
The registry does not list a required key, though some servers ask you to sign in on first use.
It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).
The GitHub repo last changed 5 days ago, and the latest version (0.39.6) reached the registry 7 days ago.
Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Node.js on your computer.
In the same category: Inbox Zero, draw.io, TradingMCP
Servers in the same category from other makers, sorted by stars.
Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi
Search Gmail and Outlook, save drafts, manage email rules, and view email stats.
Create draw.io diagrams in chat from Mermaid or XML, shown live and interactive. 10,000+ shapes.
Market analysis for AI assistants: screeners, multi-timeframe analysis, backtests, in-chat charts.
Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.
Install · Reference · Security · Issues · Русский · Español
https://github.com/user-attachments/assets/d143f7c7-7d50-439c-b373-cbcbff5a6675
Better-TG-CLI is a Telegram CLI and MCP server for AI agents (Claude Code, Codex, Cursor, Claude Desktop, Gemini CLI) that works on your own Telegram account: agents read, search and send messages and press bot buttons, and you approve every send.
It is an unofficial, open-source client (MTProto via teleproto, TL layer 229). The command is telegram: about 60 commands for reading, searching, writing, bots, groups and exports, built so that agents can drive it cheaply and safely. It also ships as an MCP server (telegram mcp) and an agent skill.
$ telegram inbox -n 3
48 unread in 7 chats (showing 3) 1234567890 user unread=2 Alice @alice | see you at 7? -1001234567 supergroup muted unread=41 Rust Seattle @rust_sea | anyone tried 1.90? -1009876543 channel unread=5 Changelog | v2.4 is out $ telegram read @alice -n 1 --json {"chatTitle":"Alice","messages":[{"id":812,"date":"2026-09-27T10:02:11.000Z","sender":"Alice","senderId":"1234567890","text":"see you at 7?"}]}
[!WARNING]
Your account, your risk. This is an unofficial client that logs in as you. Telegram may
limit or freeze accounts that behave like bots. The risk is highest for new accounts, bulk
messaging, mass joins or invites, and anything that looks like spam. Use it the way you would
use Telegram yourself, keep writes off unless you need them, and read SECURITY.md
before letting an agent write. The authors are not responsible for restricted accounts.
Contents: Why Better-TG-CLI · Install · Log in · Usage · MCP server · FAQ · Development · Privacy · License
Made for agents:
(no text). You can press bot buttons (click) and walk bot menus.--max-text trims long posts. telegram help-all -g prints every flag, generated from the code.--since/--until, --unread, threads and channel comments, forum topics, get by ID, search filters by type, sender or date, and me / Избранное for Saved Messages.write-access on) needs your own confirmation in a terminal or a macOS dialog. Every write is logged to ~/.config/tg/audit.jsonl. Secrets live in the macOS Keychain, the Linux Secret Service or 1Password.It started as a fork of skillhq/telegram and has since been reworked throughout.
| Better-TG-CLI | chigwell/telegram-mcp | chaindead/telegram-mcp | WireCatLabs/tg-cli | |
|---|---|---|---|---|
| What you get | CLI, MCP server, agent skill | MCP server | MCP server | CLI, MCP server, agent skill |
| Language | TypeScript (Node 20+ or a standalone binary) | Python | Go | TypeScript |
| Telegram library | teleproto (GramJS fork, layer 229) | Telethon | gotd/td | mtcute |
| Runtime dependencies | none (one file) | Python packages | one Go binary | npm packages |
| Install | Homebrew, Scoop, npm, binaries | pip, uvx, Docker | Homebrew, npx, go install | npm, bun |
Taken from each project's README and manifest in November 2026; open an issue if something here is out of date. What sets Better-TG-CLI apart is the write model (read-only, ask, on, with approvals bound to the exact text) and output made for agents.
brew install thevilfer/tap/better-tg-cli # standalone binary, macOS and Linux
npm install -g better-tg-cli # Node >= 20, any OS
On Windows (experimental), with Scoop or npm:
scoop bucket add thevilfer https://github.com/TheVilfer/scoop-bucket
scoop install better-tg-cli
The Windows telegram.exe is not code-signed, so SmartScreen may warn about the release download.
telegram update upgrades an existing install, whichever of these you used. On a terminal the CLI checks for new versions once a day. Agents and pipes never see that notice, and TG_NO_UPDATE_CHECK=1 turns it off.
Downloading a binary from Releases by hand on macOS? It is not notarized, so remove the quarantine flag once: xattr -d com.apple.quarantine ./telegram. Homebrew handles this for you.
Do not install @skillhq/telegram. It is the old upstream build on GramJS (layer 198).
Every channel ships the same version from one release:
| Where | What you get | Install |
|---|---|---|
| Homebrew | standalone binary | brew install thevilfer/tap/better-tg-cli |
| npm | CLI and MCP server (Node 20+) | npm install -g better-tg-cli |
| Scoop (Windows, experimental) | standalone telegram.exe | scoop bucket add thevilfer https://github.com/TheVilfer/scoop-bucket then scoop install better-tg-cli |
| GitHub Releases | binaries and SHA256SUMS | download by hand |
| Claude Code plugin | skill (uses the installed CLI) | see below |
| Claude Desktop extension | MCP server, runs on Claude's built-in Node | download .mcpb and open it |
| Grok Build plugin | skill and MCP server | see below |
| Gemini CLI extension | skill and MCP server | gemini extensions install https://github.com/TheVilfer/better-tg-cli |
| Cursor, VS Code | MCP server | one-click buttons |
| Grok Bot | MCP server over HTTP from your Mac | see below |
| The CLI itself | agent skill for Claude Code, Codex, Cursor, Gemini CLI and 7 more | telegram skill install |
| skills.sh | agent skill for any shell agent | npx skills add TheVilfer/better-tg-cli |
| MCP Registry | MCP server entry io.github.TheVilfer/better-tg-cli | through your MCP client |
The skill as a plugin, kept up to date by Claude Code:
/plugin marketplace add TheVilfer/better-tg-cli
/plugin install better-tg-cli@better-tg-cli
The plugin is the skill alone, so install the CLI first (above) and log in once with telegram onboard in a terminal. Claude Code then runs telegram itself. Anthropic's plugin directory accepts MCP servers that run on your computer only from Verified organizations, so the MCP server is added on its own if you want it: claude mcp add telegram -- telegram mcp.
The skill and the MCP server as a Codex plugin (also shows up in the ChatGPT desktop app):
codex plugin marketplace add TheVilfer/better-tg-cli
codex plugin add better-tg-cli@better-tg-cli
Grok Build installs the plugin with the skill and the MCP server together:
grok plugin install TheVilfer/better-tg-cli --trust
grok plugin marketplace add TheVilfer/better-tg-cli && grok plugin install better-tg-cli --trust
The skill (skills/better-tg-cli) teaches any agent with a shell (Claude Code, Codex, Cursor, Gemini CLI, OpenCode and others) to use the CLI safely. It checks the setup, never logs in on its own, keeps writes behind your approval, and avoids ban-prone patterns. The CLI carries the skill and installs it itself, so it always matches your version:
telegram skill install # every supported agent found on this machine
telegram skill install -a claude-code codex telegram skill status # installed, outdated, linked or missing, per agent
It knows Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Grok Build, OpenCode, Goose, Droid, Windsurf and Pi (telegram skill status lists the folders). Run it again after telegram update to refresh the skill. A skill folder that is a symlink is left alone unless you pass --force. For other agents, use the skills CLI:
npx skills add TheVilfer/better-tg-cli # pick agents interactively
npx skills add TheVilfer/better-tg-cli -g -a claude-code -a codex -y
Through your agent (easiest): ask it to set up Telegram, or run telegram onboard yourself. It opens a page on 127.0.0.1 where you get a login key from better-tg-cli.com (it comes back to the page by itself) or enter your own keys, scan a QR code and type your 2FA password. The agent only starts the command and waits: it never sees the login key, the QR code or the password. The page answers only on a random secret path and closes when you're done.
With your own API keys (the default):
api_id and api_hash.telegram auth --qr and enter them. Then, on your phone, go to Settings → Devices → Link Desktop Device and scan the QR code. Enter your 2FA password if you have one. Plain telegram auth asks for y