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-stdioConfiguration
7 settings, 1 required secret. Snippets use placeholders; keep real values out of shared config.
TDLIB_API_HASHEnv var· required· secretTelegram API hash from my.telegram.orgTDLIB_API_IDEnv var· requiredTelegram API ID from my.telegram.orgTDLIB_PHONE_NUMBEREnv var· optional· secretTelegram phone number; omit after preparing a persisted session when using QR authenticationTDLIB_AUTH_CODEEnv var· optional· secretOne-time Telegram login code for a fresh headless containerTDLIB_2FA_PASSWORDEnv var· optional· secretTelegram 2FA password when the account requires itMCP_READ_ONLYEnv var· optionalKeep true for safe first useDefault:true
Show 1 moreShow fewer
MCP_TOOL_PROFILEEnv var· optionalTool surface: reader, inbox, community-admin, research, or allDefault:reader
Links
Listed in the official MCP Registry since Nov 20, 2026. Mirrored daily; last checked Nov 26, 2026.