Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

Telegram MCP CLI

MCP server by thenavidm Verified · npm:@thenavidm

Telegram MCP server and CLI for Claude Code, Codex and AI agents. It signs in as your own account, so agents can read and reply in your real chats, not only messages sent to a bot.

  • Score 73
  • 2 stars
  • 66 a week
  • MIT
  • Updated

Install Telegram MCP CLI

Built from the published package, never by AI.

claude mcp add telegram-mcp-cli -- npx -y @thenavidm/telegram-mcp-cli

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Telegram MCP CLI in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the telegram-mcp-cli block.

About

Telegram MCP CLI is a Telegram server and command line tool for Claude Code, Codex and other AI agents. It provides 74 tools covering chats, history, search, sending, media, contacts, groups, admin, topics, reactions, polls, folders and privacy. The same tools run as a telegram-cli command and as an MCP server under the same names.

It signs in as your own Telegram account over MTProto rather than as a bot, so an agent can read the conversations you are in and answer in them. The session string gives full access to your account and does not expire, so it should be kept private and revoked from Telegram's device settings if it leaks. The project is built and maintained by Navid Moazzez. It suits people who want agents to search their chat history or reply in their own conversations.

Written from the project's README and checked against it.

Tools it gives your assistant

  • whoamiShows which Telegram account the session is signed in as.
  • list_chatsLists your chats, with options such as unread only.
  • get_chatReturns the details of one chat.
  • historyReads message history for a conversation.
  • searchSearches messages across every chat.
  • sendSends a message to a chat or to Saved Messages.
  • editEdits a message you sent.
  • deleteDeletes messages, which requires a confirmation.
  • forwardForwards messages between chats.
  • download_mediaDownloads media attached to a message.

What you need

  • Node.js 20 or newer
  • A Telegram account
  • An api_id and api_hash from my.telegram.org
  • A session string created with the login command

Try asking

  • What did I miss in the group chats while I was asleep?
  • Search every chat for the wifi password someone sent me last year.
  • Send myself a note in Saved Messages with these three links.

Good to know

  • The session string gives full access to the account and does not expire.
  • Telegram rate limits apply, and flood waits get longer if calls continue.
  • Deleting messages requires an explicit confirmation.
  • Bot tokens from BotFather cannot be used, because bots cannot read your own chats.

Security check

C
  • Asks for administrator rights (sudo)In README.md: sudo

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to Telegram MCP CLI

All alternatives →

Compare with Jitsu, Vexa or Linkedin MCP server

Telegram MCP CLI: common questions

Does it work with a Telegram bot?

No. The source says it needs an api_id from my.telegram.org, not a bot token from BotFather, because a bot cannot read your own chats.

Is the session string safe to store?

The source says it grants full access to your account and does not expire, so it should be kept out of repos. If it leaks, you can terminate the session under Settings, Devices in Telegram.

Can I use it without an AI assistant?

Yes. The telegram-cli command offers the same tools in a terminal, with JSON output for scripts and cron jobs.

How do I install Telegram MCP CLI?

In Claude Code run claude mcp add telegram-mcp-cli -- npx -y @thenavidm/telegram-mcp-cli. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is Telegram MCP CLI the official server?

Telegram MCP CLI is published by npm:@thenavidm from its verified domain in the official MCP Registry.

Is Telegram MCP CLI free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is Telegram MCP CLI safe to use?

It scores 73 of 100. Grades: maintenance A, licence A, quality C. Security check: grade C (asks for administrator rights (sudo)). Review the code before you install. How grades work.

What are alternatives to Telegram MCP CLI?

Similar MCP servers: Jitsu, Vexa, Linkedin MCP server, Netsapiens MCP.

Does Telegram MCP CLI work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

Telegram MCP CLI Install

Add to stack

Loading.