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.
Install Telegram MCP CLI
Built from the published package, never by AI.
claude mcp add telegram-mcp-cli -- npx -y @thenavidm/telegram-mcp-cliRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"telegram-mcp-cli": {
"args": [
"-y",
"@thenavidm/telegram-mcp-cli"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"telegram-mcp-cli": {
"args": [
"-y",
"@thenavidm/telegram-mcp-cli"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"telegram-mcp-cli": {
"args": [
"-y",
"@thenavidm/telegram-mcp-cli"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add telegram-mcp-cli -- npx -y @thenavidm/telegram-mcp-cli{
"mcpServers": {
"telegram-mcp-cli": {
"args": [
"-y",
"@thenavidm/telegram-mcp-cli"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add telegram-mcp-cli npx -y @thenavidm/telegram-mcp-cliGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
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 →Jitsu MCP server lets AI assistants configure and operate Jitsu data pipelines. It covers destinations, streams, connections and functions, plus Live Events and connector syncs. It is aimed at teams that run event data pipelines.
Vexa sends a bot into Google Meet, Microsoft Teams, Zoom and Jitsi calls to capture speaker-labelled transcripts live or after the call. It suits teams that want meeting transcripts they can self-host.
Gives Claude and other MCP-compatible AI agents access to LinkedIn through your own browser session. It reads profiles, researches companies, finds jobs, and manages messages and connection requests.
Runs a NetSapiens phone system from Claude, ChatGPT, or any MCP client. Each person signs in as themselves, and their assistant gets role-aware tools for calls, voicemail, queues, and provisioning.
Resend MCP Server connects AI assistants to the Resend email platform. It lets them send and receive emails and manage contacts, broadcasts, templates, and domains. It suits developers and teams who use MCP clients such as Claude or Cursor.
The source does not describe labelhead-artist-momentum. It is a README for Paperclip, an open-source orchestration app for teams of AI agents.
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.
