mcpbeat Sign in

Better-TG-CLI (Telegram) MCP Server

by thevilfer Your server? Claim it
local only

Better-TG-CLI (Telegram) runs on your own machine — the client starts it, so there is no endpoint to ping. 1 053 installs a week from npm. Last commit 22 Nov 2026.

Telegram on your own account: read, search, send and press bot buttons. Writes need your approval.

Installs per day peak 1 889 · avg 139 · +22% w/w
a month agotoday
1 053
Installs / week
npm · better-tg-cli
13
Stars
37 open issues
22 Nov 2026
Last commit
48 releases in 90 days
MIT
License
TypeScript

Connect this server

This server runs on your own machine — install it with the package manager and the client starts it for you. Package name taken from the official registry entry.

run in your terminal
claude mcp add better-tg-cli -- npx -y better-tg-cli mcp
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "better-tg-cli": {
      "command": "npx",
      "args": [
        "-y",
        "better-tg-cli",
        "mcp"
      ]
    }
  }
}
~/.codex/config.toml
[mcp_servers.better-tg-cli]
command = "npx"
args = ["-y", "better-tg-cli", "mcp"]
.cursor/mcp.json
{
  "mcpServers": {
    "better-tg-cli": {
      "command": "npx",
      "args": [
        "-y",
        "better-tg-cli",
        "mcp"
      ]
    }
  }
}
.vscode/mcp.json
{
  "servers": {
    "better-tg-cli": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "better-tg-cli",
        "mcp"
      ]
    }
  }
}

Optional settings from the registry entry, left out of the block above: TG_PROFILE (Optional profile name, to keep this client on a separate Telegram session).

What the code does

We read the source, 7 d ago · rules 995398eba69f

Capabilities

What this server is able to do. For an MCP server this is often the job itself — a terminal server runs commands because that is what it is for. Listed so you know what you are plugging in, not as an accusation.

A line of code looks encrypted broker/src/assets.ts:3
  "iVBORw0KGgoAAAANSUhEUgAABQAAAAKACAIAAABMkUL2AAAQAElEQVR4nOzdCbhd4/kw/CWCmGKoKcRMRaih5qnmeSrqX1U1vWiooVozRQeqKFUtQVVbSkupocbEFDFPMQVREYkhIvmbEpSQ7/72ut71ru69z8k5Z5+ck32e3+/KlWvtde6zh7XXWue5n3s9z+qVAQAAQAJ6ZQAAAJAACTAAAABJkAADAACQBAkwAAAASeidAQDM9GaZZZb4f9q0aSJFihQpUmSHI1WAAQAAS…
    spawn(cmd, args, { stdio: "ignore", detached: true, windowsHide: true })
Long encoded blob in source broker/src/assets.ts:3
  "iVBORw0KGgoAAAANSUhEUgAABQAAAAKACAIAAABMkUL2AAAQAElEQVR4nOzdCbhd4/kw/CWCmGKoKcRMRaih5qnmeSrqX1U1vWiooVozRQeqKFUtQVVbSkupocbEFDFPMQVREYkhIvmbEpSQ7/72ut71ru69z8k5Z5+ck32e3+/KlWvtde6zh7XXWue5n3s9z+qVAQAAQAJ6ZQAAAJAACTAAAABJkAADAACQBAkwAAAASeidAQDM9GaZZZb4f9q0aSJFihQpUmSHI1WAAQAAS…

Is this your server and something here is wrong? Tell us — corrections are free and do not require a plan.

This code can reach further than it looks

We found places where it runs commands, builds paths or queries from values it is given. None of that is a flaw by itself — it becomes one when the code changes, and code changes quietly between releases. We re-read it on every one.

Three servers free · no card

Alternatives to Better-TG-CLI (Telegram)

same job, measured the same way
WireCat Telegram
by wirecat

Your Telegram account for agents: read, search and send messages. Sign in with the tg CLI first.

3 410 installs/wk local only
Chatroost — unofficial Telegram MCP server
by mcp-telegram

Unofficial Telegram MCP server — read, search, reply and react in your own Telegram account.

1 536 installs/wk answering
WhatsApp MCP server (wacli)
by zanellig

Search WhatsApp chats and messages and send replies through your paired wacli account.

1 208 installs/wk local only
Relay for WhatsApp
by viaanshetty3-debug

Your WhatsApp as 54 MCP tools: read, search, send and media across accounts, self-hosted.

607 installs/wk local only
Telegram Bot MCP Server
by cyuanxv

Self-hosted Telegram Bot MCP server for rich text, media and interactive buttons.

300 installs/wk local only
Telegram Archive
by geiserx

Search and read your archived Telegram chats and messages

210 installs/wk local only
TG multi-account MCP
by mesteriis

Self-hosted, consent-based access to Telegram accounts and bots for MCP clients

188 installs/wk local only
Email
by wraps

Send email through your own Amazon SES account, and check domains, suppressions and sandbox status.

165 installs/wk local only

Better-TG-CLI (Telegram) — questions

Answers built from our own checks of this server.

Why is there no uptime for Better-TG-CLI (Telegram)?
Better-TG-CLI (Telegram) runs on your own machine over stdio — there is no network address to reach, so uptime cannot be measured for it by anyone. What can be measured is adoption: the npm package better-tg-cli was installed 1 053 times last week.
How do I connect Better-TG-CLI (Telegram)?
Copy the ready config from this page. We generate it for Claude Code, Claude Desktop, Codex, Cursor and VS Code, each in the form that client actually reads. It runs locally, so the command pulls better-tg-cli straight from npm; nothing to host, nothing to sign up for.
How many people use Better-TG-CLI (Telegram)?
The npm package better-tg-cli was installed 1 053 times in the last week. Week over week that is +22%. We show installs rather than GitHub stars on purpose: a star is a bookmark, an install is someone actually running it.
Is Better-TG-CLI (Telegram) open source?
Yes — it is published under the MIT licence, written in TypeScript, 13 stars on GitHub and 37 open issues. The source link is on this page, so you can read exactly what it does with your data before you connect it.