Telegram API MCP logo

Telegram API MCP

Connects AI clients to 185 Telegram Bot API methods with validation, rich messages, meta-mode, retries, and request safeguards.

Install Telegram API MCP

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": {
    "telegram-api-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "telegram-api-mcp"
      ],
      "env": {
        "TELEGRAM_BOT_TOKEN": "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

The install command didn't complete successfully in our automated test.

npx -y telegram-api-mcp

npm error code E404 npm error 404 Not Found - GET https://registry.npmjs.org/telegram-api-mcp - Not found npm error 404 npm error 404 'telegram-api-mcp@*' is not in this registry. npm error 404 npm error 404 Note that you can also install from a npm error 404 tarball, folder, http url, or git url. npm error A complete log of this run can be found in: /home/user/.npm/_logs/2026-11-11T14_09_47_091Z-debug-0.log

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

telegram-api-mcp connects an MCP-compatible AI client to the Telegram Bot API through 185 validated tools covering messaging, media, chats, forums, polls, payments, stickers, stories, games, and more. It supports rich messages up to 32,768 characters, with formatting guidance available through the `telegram_format` tool and MCP resources. Enable meta-mode to replace the full tool set with `telegram_find` and `telegram_call`, reducing context usage while retaining API access. Reach for it when an agent needs to inspect or manage Telegram bot activity while benefiting from rate limits, retries, circuit breaking, token masking, and upload restrictions.

Use cases

  • Send formatted announcements to Telegram channels
  • Manage forum topics, members, and chat settings
  • Create polls, media groups, invoices, and gifts
  • Search Telegram methods before invoking them
  • Inspect bot updates and configure webhooks

Key features

  • 185 Telegram Bot API methods
  • Rich messages with up to 50 media attachments
  • Meta-mode with method search and generic calls
  • Zod parameter validation and tool annotations
  • Rate limiting, retries, and circuit breaker
  • Token masking and restricted file uploads

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.

9/9 checks healthy over the last 33d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 17d ago via OSV.dev · telegram-api-mcp (npm)

Adoption & maintenance

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

GitHub stars39Stargazers on the source repository.
Last commit1d agoMost recent push to the default branch.
Install checkInconclusiveInstall command did not finish in our automated test.

How Telegram API MCP works

What telegram-api-mcp does

telegram-api-mcp exposes the Telegram Bot API through MCP. Its method coverage spans bot information, messages, media, chats, members, forums, stickers, polls, payments, gifts, business features, stories, inline queries, games, forwarding, updates, and managed bots. Parameters are checked with Zod before requests are sent to Telegram, and tool annotations identify properties such as read-only, destructive, idempotent, and open-world behavior.

The server also adds support for longer Telegram posts through send_rich_message and send_rich_message_draft. Rich content can use Markdown, HTML, or blocks and may include headings, tables, lists, links, quotations, and up to 50 media attachments. Telegram's ordinary caption limit still applies to photo and similar caption-based methods.

How it works

The standard mode exposes the Bot API methods as individual MCP tools. With TELEGRAM_META_MODE=true, the interface changes to two tools: telegram_find searches methods by keyword or category, while telegram_call invokes a selected method with JSON parameters. This reduces the number of tools placed in the model context without removing access to the API.

telegram_format provides syntax references for rich messages, captions, media, polls, buttons, checklists, and related structures. These references are also available as MCP resources under telegram://format/<topic>.

Requests use global and per-chat token-bucket limits. Transient failures can be retried with backoff, including Telegram 429 responses that provide retry_after values. A three-state circuit breaker can open after repeated failures and later attempt recovery. Responses are capped at 100,000 characters.

Setup and configuration

The server runs from npm with npx telegram-api-mcp, or from a local build using npm install, npm run build, and node dist/index.js. Configure an MCP client to launch the command over standard input/output and provide TELEGRAM_BOT_TOKEN, obtained from BotFather.

Optional settings include a default chat ID and forum thread ID, meta-mode, global and per-chat rate limits, retry count, circuit-breaker thresholds and cooldown, permitted upload directories, and maximum upload size. TELEGRAM_ALLOWED_UPLOAD_DIRS restricts file uploads to selected paths, while upload path checks protect against traversal.

Tools and capabilities

  • Call Telegram methods for messages, media, chats, members, forums, stickers, polls, payments, gifts, business features, stories, inline queries, games, and updates.
  • Send formatted long posts with Markdown, HTML, or structured blocks.
  • Create draft rich messages that preview for up to 30 seconds before persistence.
  • Look up method and parameter formats with telegram_format.
  • Use telegram_find and telegram_call in meta-mode.
  • Apply validation, rate limiting, retries, circuit breaking, response truncation, and token masking.

Limitations and notes

Rich messages accept exactly one of Markdown, HTML, or blocks. Their enforced limits include 32,768 text characters, 500 nested blocks, 50 media attachments, 20 table columns, and 16 nesting levels. Media embedded in Markdown or HTML must use HTTP(S) URLs and occupy their own block.

The bot token is required. Telegram's own service limits still apply, including the 1,024-character caption ceiling for caption-based media methods. Upload access can be narrowed with allowed-directory settings, and large responses are truncated at the configured safety limit of 100,000 characters.

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 Telegram API MCP

telegram-api-mcp is an MCP server that connects AI clients to the Telegram Bot API through 185 validated tools covering messaging, media, chats, forums, polls, payments, stickers, stories, games, and more. It also provides rich-message formatting guidance, plus meta-mode tools for finding and calling methods with fewer context tokens.

Install it by configuring your MCP client to run `npx telegram-api-mcp` and supplying `TELEGRAM_BOT_TOKEN`. From source, clone the repository, run `npm install && npm run build`, then start `node dist/index.js` with the token set.

Set `TELEGRAM_META_MODE=true` when launching the server. It exposes `telegram_find` for searching API methods and `telegram_call` for invoking them with JSON parameters, instead of exposing all 185 methods individually.

Yes. Use `send_rich_message` instead of a caption-based media method. Rich messages support Markdown, HTML, or blocks and allow up to 32,768 text characters, along with headings, tables, lists, links, and media attachments.

Yes. Cursor can use it as a standard stdio MCP server. Configure Cursor to launch `npx telegram-api-mcp` and pass the required `TELEGRAM_BOT_TOKEN` environment variable.

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 PreviewTelegram API MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/telegram-api-mcp?style=directory)](https://allmcps.com/mcp/telegram-api-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/telegram-api-mcp"><img src="https://allmcps.com/api/badge/telegram-api-mcp?style=directory" alt="Telegram API MCP on AllMCPs" /></a>