Skip to main content

Telegram MCP

io.github.n24q02m/telegram

v4.27.0Updated Nov 25, 2026stdio · Dockerstdio · PyPI

Telegram for AI agents: messages, chats, media, and contacts in bot and user-account modes.

Install

Nothing to fill in: copy and run.

Run in your terminal

claude mcp add telegram -- uvx n24q02m-telegram==4.27.0

The registry lists extra launch arguments or environment variables for this server that could change what runs. They are left out here; check its repository before adding any.

Configuration

7 settings.

  • -v
    Argument· required
    Mount a config.toml whose [server] auth is "token" (token_hash from `telegram token hash`); the image binds 0.0.0.0, which "no-auth" refuses
  • TELEGRAM_BOT_TOKEN
    Env var· optional· secret
    Telegram bot token from @BotFather (for bot mode)
  • TELEGRAM_API_HASH
    Env var· optional· secret
    Optional Telegram API hash from my.telegram.org; overrides the bundled public API pair
  • TELEGRAM_PHONE
    Env var· optional
    Phone number in +<country><number> form for user mode (or save it once with `telegram auth --phone`)
  • TELEGRAM_API_ID
    Env var· optional
    Optional Telegram API ID from my.telegram.org; overrides the bundled public API pair
  • --python
    Argument· optional
    Python interpreter version for uvx
Show 1 more
  • -p
    Argument· optional
    Publish the image's HTTP port (8080) on loopback

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