Telegram MCP Server logo

Telegram MCP Server

Local-first TDLib Telegram access with read-only defaults, account isolation, approval-gated writes, and STDIO or Streamable HTTP.

Install Telegram MCP Server

Run the project’s own setup commands, in order.

Setup steps from the project

Telegram MCP Server installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    brew install --formula https://github.com/tolboy/telegram-mcp-tdlib/releases/latest/download/telegram-mcp.rb
    
  2. 2. Install
    scoop install https://github.com/tolboy/telegram-mcp-tdlib/releases/latest/download/telegram-mcp.json
    
  3. 3. Sign in
    telegram-mcp auth --method qr
    
  4. 4. Add to your MCP client
    telegram-mcp config --client claude
    

Overview

Telegram MCP Server connects AI clients to real Telegram user accounts through TDLib, exposing 110 tools for reading and acting on Telegram data. It runs locally over STDIO or as a Streamable HTTP service at `/mcp`, with separate sessions and API keys for multiple accounts. Read-only mode hides write and quota-consuming tools until enabled, while destructive actions require human approval. Reach for it when an agent needs controlled access to a Telegram account rather than only the Bot API.

Use cases

  • Summarize recent Telegram conversations in read-only mode
  • Search an inbox for a lost message
  • Research public groups without changing account data
  • Draft replies without sending them
  • Send approved messages with retry-safe idempotency keys

Key features

  • TDLib access to real Telegram user accounts
  • Read-only defaults with hidden write tools
  • Human approval for destructive operations
  • Isolated multi-account sessions and scoped API keys
  • STDIO and Streamable HTTP transports
  • Idempotent sends with stored receipts

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.

16/16 checks healthy over the last 82d

Adoption & maintenance

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

GitHub stars13Stargazers on the source repository.
Last commit4d agoMost recent push to the default branch.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How Telegram MCP Server works

What Telegram MCP Server does

Telegram MCP Server gives MCP-compatible AI clients access to real Telegram accounts through TDLib, using tdlight-java underneath. It is designed for local-first operation and supports both read-only workflows and account actions after writes are explicitly enabled. The project describes a surface of 110 tools, with the available tools narrowed by profile and safety settings.

Account isolation is built into the operating model. Each account has its own session, account selection is mandatory, and API keys are scoped to an account. Reads do not automatically fan out across connected accounts.

How it works

The server supports two transports. STDIO lets a desktop MCP client start and manage the process. Streamable HTTP exposes the /mcp endpoint for a managed deployment or shared local daemon. A daemon can also be started once and attached by clients such as Cursor, VS Code, Codex, or Claude Code.

A new installation starts with a small inbox or reader profile and read-only behavior. In that state, write and quota-consuming tools are removed from the model's tool list instead of merely rejecting calls. To enable writes, both the read-only setting and a write-capable profile must be selected. Destructive operations use host elicitation when available or a single-use loopback approval page. The model cannot approve the operation by setting a confirmation argument unless the explicit model-confirmation exception is enabled.

Send operations can accept an idempotency key. If the response is lost, the server can return a stored receipt rather than blindly sending a duplicate; an unconfirmed send is represented as UNKNOWN.

Setup and configuration

Runtime-inclusive release packages are available for Windows, Linux x64 and ARM64, and Apple-silicon macOS, so a JDK, Gradle, Git, Python, or Node.js is not required for those packages. Homebrew and Scoop installation commands are provided by the project. Authenticate an account with telegram-mcp auth --method qr, then inspect local session state with telegram-mcp session doctor.

Use telegram-mcp config to generate client-specific configuration. The generator can target Claude Desktop, Claude Code, Cursor, VS Code, or Codex, and can produce STDIO, Docker, or shared HTTP entries. For Docker-based HTTP deployment, provide the TDLib credentials and MCP API key as environment variables. Claude Desktop remote connectors require HTTPS and OAuth mode rather than the generated custom API-key header.

Tools and capabilities

  • Read and summarize conversations, including inbox-focused workflows.
  • Search for messages and find specific lost messages.
  • Research public groups and perform read-only community reviews.
  • Draft replies without sending them.
  • Send or modify Telegram data when writes are enabled and approval requirements are met.
  • Use reusable MCP prompts and the optional Telegram Inbox Assistant skill for read-only inbox tasks.

Profiles control which tools are exposed. Available profile names referenced by the project include reader, inbox, community-admin, and all.

Limitations and notes

The server works with authorized real user accounts, so the account must be authenticated before client use. Use a test account for an initial run when possible. With STDIO, the MCP client should own the server process; starting another copy manually can lock the TDLib session file and cause the client-managed process to exit.

Write access should not be enabled without a destructive-approval mode. The server refuses a write-enabled configuration when approval is set to off, unless model-confirmed writes are explicitly allowed. Claude Desktop does not use its local configuration file for remote servers; remote connections must be added through its connector settings and meet the required HTTPS and OAuth conditions.

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 MCP Server

Telegram MCP Server is an MCP server that connects AI clients to real Telegram user accounts through TDLib and exposes tools for reading conversations, searching messages, drafting or sending replies, and other account actions. It defaults to read-only access, supports isolated accounts, and runs over STDIO or Streamable HTTP.

Install a runtime-inclusive release with Homebrew on Apple-silicon macOS or Linux, or Scoop on Windows. Authenticate with `telegram-mcp auth --method qr`, check the session with `telegram-mcp session doctor`, and generate client configuration with `telegram-mcp config`.

Yes, Telegram MCP Server works with Cursor over STDIO or a shared HTTP daemon. Add the generated entry to `~/.cursor/mcp.json` or use Cursor's MCP settings. The project also provides `telegram-mcp daemon attach --client cursor` for attaching Cursor to a shared local process.

It starts read-only and hides write and quota-consuming tools from the model. When writes are enabled, destructive actions require host elicitation or a loopback approval page, and write-enabled configurations are rejected when destructive approval is disabled unless model-confirmed writes are explicitly permitted.

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