TE

Telegram MCP Server (TDLib)

Connect AI to your Telegram: summarize chats, find messages and draft replies. Local-first, read-only by default, with 115 tools and isolated accounts. Free and open source.

not scanned Local · stdio API key 115 tools v1.19.0 · 2 Nov 2026 Apache-2.0
No reviews yet by tolboyGitHub Runs on your machine, nothing hosted
115
tools declared
—
trust score
local
runs on your machine
—
calls last 7d

What it does

Telegram MCP Server (TDLib)

Bring Telegram context into your AI assistant: catch up on conversations, find a lost message, research public groups and draft replies for review. Uses your own Telegram account through TDLib. Free, open source and self-hosted under Apache-2.0.

WHAT YOU CAN DO
• Summarize recent conversations and identify messages awaiting a reply.
• Search chat history and retrieve conversation context.
• Draft replies in your AI conversation before deciding what to send.
• Review community activity with a bounded, read-only workflow.
• Opt in to messaging, media, scheduling and moderation when needed.

115 tools are available across reader, inbox, research, community-admin and all profiles. The tools your client sees depend on your selected profile and permissions.

SAFE FIRST RUN
Read-only is the default: write and quota-consuming tools are hidden until explicitly enabled. Start with MCP_TOOL_PROFILE=reader and MCP_READ_ONLY=true. Try: “Summarize my last 20 conversations. Do not send or modify anything.”

For write workflows, enable a suitable profile deliberately. Human approval for destructive actions is available through MCP_DESTRUCTIVE_APPROVAL=auto. Account isolation, scoped permissions, audit logs and optional send idempotency support controlled use.

INSTALL AND CONNECT
Download a runtime-inclusive package for Windows, macOS or Linux from GitHub Releases; no separate JDK or build tools are needed. Homebrew, Scoop and Docker options are documented in the README.
1. Supply your own Telegram application API ID and hash from my.telegram.org.
2. Authorize your account locally: telegram-mcp auth --method qr
3. Check readiness: telegram-mcp session doctor
4. Generate client configuration: telegram-mcp config --client codex
Use --client claude, claude-code, cursor or vscode for the other configuration formats. Let your AI client launch the STDIO server. A managed local daemon and Streamable HTTP are also available; see the compatibility guide for client-specific requirements.

PRIVACY AND REQUIREMENTS
This listing is software you run yourself, not a hosted Telegram account or managed endpoint. Keep Telegram credentials and session files on your own machine. Tool results pass selected Telegram data to your chosen AI client/model; its data policies apply. A Telegram account, Telegram application credentials and an MCP-compatible AI client are required. AI provider charges, if any, are separate.

SOURCE, SETUP AND SUPPORT
Quickstart: https://github.com/tolboy/telegram-mcp-tdlib#safe-first-run
Releases: https://github.com/tolboy/telegram-mcp-tdlib/releases
Client compatibility: https://github.com/tolboy/telegram-mcp-tdlib/blob/master/docs/MCP_CLIENT_COMPATIBILITY.md
Task recipes: https://github.com/tolboy/telegram-mcp-tdlib/tree/master/docs/recipes
Report bugs or request features: https://github.com/tolboy/telegram-mcp-tdlib/issues
Security policy: https://github.com/tolboy/telegram-mcp-tdlib/blob/master/SECURITY.md

Feedback on setup and real-world workflows is welcome. Please remove credentials and private chat content from public reports.

Quickstart

# 1 — add it to Claude Code claude mcp add --scope user --env 'TDLIB_API_ID=${TDLIB_API_ID}' --env 'TDLIB_API_HASH=${TDLIB_API_HASH}' --transport stdio tolboy-telegram-mcp '--' docker run -i --rm --platform linux/amd64 -e TDLIB_API_ID -e TDLIB_API_HASH ghcr.io/tolboy/telegram-mcp-tdlib:1.17.3-stdio # 2 — ask your agent for something these tools do # archive_chat, ban_user, close_forum_topic and 112 more

It needs TDLIB_API_ID, TDLIB_API_HASH: this reads them from your environment, so export them first.

Telegram MCP Server (TDLib) costs nothing on mcprush: there is no plan to choose here, no cap to set and nothing mcprush can bill you for.

PublisherVerified · since 2026
TO
tolboy1 server
1 category · publishing since 2026
All 1 server
More in this category

See also

See all