Let Claude Code read your Telegram

Three steps, about 5 minutes, on your Mac or Windows PC. Then you can ask Claude Code things like “what did Brad say about the Amazon order this week?” and it searches your chats for you. It can read, never send. Sending, editing and deleting are switched off.

One thing to know

Step 2 logs your computer into Telegram as you, the same way Telegram Desktop does. The login is kept in one file on your computer and nowhere else. You can end it anytime from your phone (see the bottom of this page).

If something goes wrong
“Claude Code isn't installed on this Mac” (or PC)
Install Claude Code first, then paste the line again.
“api_id should be only digits” or “api_hash should be 32 letters and numbers”
A key was pasted wrong. Paste the line again. It picks up where it stopped.
Telegram shows as failed in a second Claude window
That's on purpose. Only one window can use your Telegram login at a time, because Telegram can end a login that is used from two places at once. Close the other window.
“FloodWait” or “wait N seconds”
Telegram is slowing down a big read. Wait the time it says, then ask about one chat or fewer days.
Turn it off
End the login now
On your phone: Telegram → Settings → Devices, then end the session for this computer. Claude can't read anything after that.
Remove it completely
Mac, in Terminal:
claude mcp remove telegram -s user && rm -rf ~/telegram-mcp
Windows, in PowerShell:
claude mcp remove telegram -s user; Remove-Item -Recurse -Force ~\telegram-mcp