Grokbot Telegram logo

Grokbot Telegram

Send and read Telegram messages through separate bot and personal-account MCP servers.

Install Grokbot Telegram

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "grokbot-telegram": {
      "command": "npx",
      "args": [
        "-y",
        "grokbot-telegram"
      ],
      "env": {
        "TELEGRAM_BOT_TOKEN": "YOUR_VALUE_HERE",
        "TELEGRAM_API_ID": "YOUR_VALUE_HERE",
        "TELEGRAM_API_HASH": "YOUR_VALUE_HERE",
        "TELEGRAM_SESSION": "YOUR_VALUE_HERE",
        "TELEGRAM_DISCLAIMER": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y grokbot-telegram

Process exited before answering initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

grokbot-telegram exposes Telegram through two MCP servers: one uses the Bot API, while the other uses MTProto with a logged-in personal account. Bot mode handles bot messages, token checks, updates, and recently observed chats; user mode supports login, inbox discovery, message history, forum topics, and sending as the account holder. Use bot mode for notifications and channel posts, user mode for personal dialogs, or configure both for separate automation paths. The package is distributed as a Cursor plugin and npm package.

Use cases

  • Send CI alerts as a Telegram bot
  • Post notifications to a channel
  • Read a personal Telegram inbox
  • Search dialogs and retrieve recent messages
  • Send messages from a logged-in user account

Key features

  • Separate Bot API and MTProto server modes
  • Bot messaging and update inspection
  • Personal-account login with phone or QR flow
  • Dialog, message, and forum-topic discovery
  • Configurable agent-message disclaimer
  • Forum topic validation before sending

Tools12

What Grokbot Telegram lets your agent do. Expand a tool for its parameters.

Self-reported~169 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

6/6 checks healthy over the last 22d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 5d ago via OSV.dev · grokbot-telegram (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads1.2kPackage downloads in the last 30 days.
Last commit2mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Tools exposed12Callable tools this server registers over MCP.

How Grokbot Telegram works

What grokbot-telegram does

grokbot-telegram provides two Telegram MCP endpoints with different identities. telegram-bot communicates through the official Bot API and sends as a bot created with BotFather. telegram-user uses MTProto through a logged-in personal account, allowing it to access that account's dialogs and send messages in the user's name.

The two modes can be enabled independently. Bot mode suits notifications, CI alerts, and channel posts. User-account mode is intended for operations that require the account's real inbox or personal identity. Neither mode changes the identity used by the other.

Messages sent through either server normally receive a footer identifying them as agent-generated. TELEGRAM_DISCLAIMER can replace that footer or disable it with values such as off, false, 0, no, none, or an empty value.

How it works

The bot server uses TELEGRAM_BOT_TOKEN. Its message tool accepts a chat ID or public @username; a bot must already have an interaction with a user before it can initiate a direct conversation. get_me validates the token and returns the bot identity, while get_updates and list_recent_chats help inspect activity visible through the Bot API. Recent chats are derived from updates and are not a complete inbox.

The user server authenticates with Telegram api_id and api_hash, then stores an authorized session in TELEGRAM_SESSION or ~/.grokbot-telegram/user.session. It supports phone-and-code login, QR or Link Desktop Device login, and optional two-factor authentication. list_dialogs returns the account's actual dialogs; searches can filter them by title, username, or ID. Messages can target me, an @username, a dialog ID, or a title. Ambiguous titles are rejected instead of being selected arbitrarily.

Forum groups are marked with isForum. Use list_forum_topics to find topic IDs, then pass a topic ID to message or history operations. The server checks named topics before sending and rejects closed topics.

Setup and configuration

For bot mode, create a bot with BotFather and configure TELEGRAM_BOT_TOKEN in Cursor's plugin settings. Open a conversation with the bot and use /start before attempting a direct message. This mode does not need Telegram app credentials.

For user mode, create an application at my.telegram.org/apps using the same phone-linked account that will authenticate. Configure TELEGRAM_API_ID and TELEGRAM_API_HASH, then complete the initial login. Credentials can be saved with save_api_credentials, which writes them with mode 0600; environment variables take precedence. Keep the resulting session as secret as a password, and never commit it, the API hash, or environment files.

The package is available as grokbot-telegram and is installable as a Cursor plugin. Its two MCP server names are telegram-bot and telegram-user.

Tools and capabilities

  • Bot mode: send_message, get_me, get_updates, and list_recent_chats.
  • User mode: credential saving, authentication status, phone or QR login, get_me, dialog listing and search, forum-topic listing, recent message retrieval, and user-identity message sending.
  • Both modes provide message sending and identity inspection, with tool descriptions distinguishing Bot API from user-account behavior.

Limitations and notes

The user session grants full account access: anyone holding it may read chats and send as the account. Revoke an unwanted session in Telegram's device settings and remove the stored session. Automating a personal account may conflict with Telegram's terms; avoid spam and bulk broadcasting and keep activity human-paced.

The disclaimer counts toward Telegram's 4096-character message limit. If the combined text is too long, sending fails rather than truncating the message. When formatting is enabled, the footer is escaped for the selected parse mode. A wrong forum topic ID can otherwise route a message to General, so topic validation is performed when a topic is supplied.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Grokbot Telegram

grokbot-telegram is an MCP server that connects AI clients to Telegram through separate Bot API and MTProto user-account modes. Its main tools send messages, inspect bot updates, authenticate accounts, list or search dialogs, retrieve recent messages, and work with forum topics. It can send either as a bot or as a logged-in user.

Install grokbot-telegram as a Cursor plugin or use its npm package. Configure the required Telegram variables in Cursor's plugin settings, then use the `telegram-bot` or `telegram-user` MCP server. Bot mode needs a BotFather token; user mode also requires Telegram app credentials and a first-run login.

Set `TELEGRAM_BOT_TOKEN` to a token created with BotFather. Start a conversation with the bot and send `/start` before using direct messaging. Bot mode provides `send_message`, `get_me`, `get_updates`, and `list_recent_chats`, and does not require `api_id` or `api_hash`.

Set `TELEGRAM_API_ID` and `TELEGRAM_API_HASH`, then complete a phone-and-code login or QR/Link Desktop Device login through the user-account server. Optional two-factor authentication is supported. Save the resulting session in `TELEGRAM_SESSION` or `~/.grokbot-telegram/user.session` and protect it like a password.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewGrokbot Telegram AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/grokbot-telegram?style=directory)](https://allmcps.com/mcp/grokbot-telegram)
HTML Embed
<a href="https://allmcps.com/mcp/grokbot-telegram"><img src="https://allmcps.com/api/badge/grokbot-telegram?style=directory" alt="Grokbot Telegram on AllMCPs" /></a>