MCP directory
TM

Telegram MCP Server

by github.com/tolboy · v1.21.0 · updated Nov 20, 2026

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

Docker

Run it locally

Install the package and point your AI client at it.

Docker

docker run -i --rm ghcr.io/tolboy/telegram-mcp-tdlib:1.21.0-stdio

Environment variables

  • TDLIB_API_IDrequired

    Telegram API ID from my.telegram.org

  • TDLIB_API_HASHrequiredsecret

    Telegram API hash from my.telegram.org

  • TDLIB_PHONE_NUMBERsecret

    Telegram phone number; omit after preparing a persisted session when using QR authentication

  • TDLIB_AUTH_CODEsecret

    One-time Telegram login code for a fresh headless container

  • TDLIB_2FA_PASSWORDsecret

    Telegram 2FA password when the account requires it

  • MCP_READ_ONLY

    Keep true for safe first use

  • MCP_TOOL_PROFILE

    Tool surface: reader, inbox, community-admin, research, or all

More MCP servers