telegram-mcp
Use your own Telegram account from Claude Code. Claude can read your chats, search messages,
look up people and download files freely. Every action that changes anything — sending,
editing, deleting, forwarding, reacting, pinning, creating or leaving chats, invite links,
admin rights, your profile, file sends — and every marking as read runs only after you
press Allow in a confirmation dialog on your Mac. Each Allow runs exactly one action.
Everything runs locally on your Mac. Your Telegram session is kept in the macOS Keychain and
never leaves the machine except to talk to Telegram.
This version is for trying out, not for daily use. Some behaviour is only checked by
automated tests so far; see What is not verified yet.
Contents
Requirements
- macOS, used from its desktop (the confirmation dialog needs your logged-in desktop
session; over SSH every write is refused). Other systems are refused.
- Claude Code, in the terminal or in the desktop app's Code tab, with its
claude
command line on your PATH (install Claude Code).
- uv, which brings
uv and
uvx. uv installs Python 3.12 and the exact pinned packages the first time the tool runs;
nothing else is needed.
- Your own Telegram
api_id and api_hash, from
my.telegram.org → API development tools. The tool ships no app
credentials.
Install
Run this in your terminal:
curl -fsSL https://raw.githubusercontent.com/maksymskuibida/telegram-mcp/v0.2.0/install.sh | sh
To install a specific release tag instead:
curl -fsSL https://raw.githubusercontent.com/maksymskuibida/telegram-mcp/v0.2.0/install.sh | sh -s -- --tag vX.Y.Z
What the script does, in order:
- Checks, and changes nothing if one fails: the machine is a Mac;
uv, uvx and
claude are on your PATH (it names whatever is missing and where to get it); the tag has
the form vMAJOR.MINOR.PATCH.
- Reads what Claude Code has installed (
claude plugin marketplace list --json and
claude plugin list --json).
- Already installed at this tag: it says so and changes nothing.
- Installed at another tag: it first checks with
git ls-remote that the tag exists on
GitHub (if it does not, or GitHub cannot be reached, it refuses and changes nothing), then
removes that copy and installs this one.
- A marketplace named
telegram-mcp added from somewhere else (a local folder, another
repository): it refuses and changes nothing; run --uninstall first.
- Installs the plugin for your user, pinned to the tag:
claude plugin install telegram-mcp --marketplace maksymskuibida/telegram-mcp#<tag> --scope user,
then checks that Claude Code reports exactly that tag.
- Prepares the Python packages by running
telegram-mcp --version once, exactly as the
MCP server is started, so uv has every package cached before Claude Code's first call. If
this fails you get a warning only; the plugin is installed.
- Prints the next steps, including an alias for the
telegram-mcp command.
The script exits 0 when it is done or had nothing to do, 1 when a step failed (the message
says which, and how to get back to where you were), and 2 when it refused.
The plugin registers its MCP server, named telegram, by itself: there is no MCP
configuration to write. Start a new Claude Code session and run /mcp; telegram is listed
with its tools (they appear to Claude as mcp__plugin_telegram-mcp_telegram__tg_…). The plugin
installs no hooks: nothing of it runs when Claude uses its own shell, file or search tools.
Without the script
The script runs only documented Claude Code commands. To do the same by hand:
claude plugin install telegram-mcp --marketplace maksymskuibida/telegram-mcp#v0.2.0 --scope user
This skips the checks and the first run, so the first call in Claude Code may take several
seconds while uv downloads its packages.
The telegram-mcp command
Login, logout, status and the log command run in your own terminal, never inside Claude
Code. The install script prints a line like this one, with your plugin folder filled in; add
it to ~/.zshrc: