Skip to main content

Telegram MCP Server

io.github.tolboy/telegram-mcp-tdlib

v1.21.0Updated Nov 20, 2026stdio · Docker

Local-first TDLib Telegram MCP server with 127 tools, account isolation and production guardrails.

Install

Needs 1 secret. Replace 2 placeholders with your own values.

Run in your terminal. Replace 2 placeholders.

claude mcp add telegram-mcp-tdlib -e 'TDLIB_API_ID=<your-tdlib-api-id>' -e 'TDLIB_API_HASH=<your-tdlib-api-hash>' -e MCP_READ_ONLY=true -e MCP_TOOL_PROFILE=reader -- docker run -i --rm -e TDLIB_API_ID -e TDLIB_API_HASH -e MCP_READ_ONLY -e MCP_TOOL_PROFILE ghcr.io/tolboy/telegram-mcp-tdlib:1.21.0-stdio

Configuration

7 settings, 1 required secret. Snippets use placeholders; keep real values out of shared config.

  • TDLIB_API_HASH
    Env var· required· secret
    Telegram API hash from my.telegram.org
  • TDLIB_API_ID
    Env var· required
    Telegram API ID from my.telegram.org
  • TDLIB_PHONE_NUMBER
    Env var· optional· secret
    Telegram phone number; omit after preparing a persisted session when using QR authentication
  • TDLIB_AUTH_CODE
    Env var· optional· secret
    One-time Telegram login code for a fresh headless container
  • TDLIB_2FA_PASSWORD
    Env var· optional· secret
    Telegram 2FA password when the account requires it
  • MCP_READ_ONLY
    Env var· optional
    Keep true for safe first useDefault: true
Show 1 more
  • MCP_TOOL_PROFILE
    Env var· optional
    Tool surface: reader, inbox, community-admin, research, or allDefault: reader

Listed in the official MCP Registry since Nov 20, 2026. Mirrored daily; last checked Nov 26, 2026.