Other / Telegram MCP Server
Telegram MCP Server
io.github.tolboy/telegram-mcp-tdlib · v1.20.0
Local-first TDLib Telegram MCP server with 126 tools, account isolation and production guardrails.
Description supplied by the publisher in the MCP Registry. We have not tested this server.
Ranks #1031 of 1,679 Other servers on Socketlist by score, with 13 GitHub stars and a last code push 19d ago.
Install
docker run -i --rm ghcr.io/tolboy/telegram-mcp-tdlib:1.20.0-stdioAssembled from the package metadata in the official MCP Registry (including any subcommand or flag the publisher lists). Some publishers do not list the subcommand that starts MCP mode, so confirm the command in the README, along with any required configuration and credentials, before connecting it to real data.
Connect Telegram MCP Server to Claude Code, Cursor or VS Code
Built from what the publisher declared in the official MCP Registry (the launch command above). We have not run this server. Replace anything in <angle brackets>, and keep keys and tokens in your environment, not in a shared file.
Claude Code
Run in a terminal. Adds the server at local scope; add --scope project or --scope user to share it. Secret variables the publisher declares are included; drop any the README says are optional. Claude Code setup guide.
claude mcp add --env TDLIB_API_ID=<tdlib_api_id> --env TDLIB_API_HASH=<tdlib_api_hash> --env TDLIB_PHONE_NUMBER=<tdlib_phone_number> --env TDLIB_AUTH_CODE=<tdlib_auth_code> --env TDLIB_2FA_PASSWORD=<tdlib_2fa_password> --transport stdio telegram-mcp-server -- docker run -i --rm ghcr.io/tolboy/telegram-mcp-tdlib:1.20.0-stdio.mcp.json (Claude Code project scope, VS Code with Copilot)
Put this in a .mcp.json file at the project root. ${NAME} reads the value from your environment, so no secret is written to the file. VS Code and .mcp.json guide.
{
"mcpServers": {
"telegram-mcp-server": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/tolboy/telegram-mcp-tdlib:1.20.0-stdio"
],
"env": {
"TDLIB_API_ID": "${TDLIB_API_ID}",
"TDLIB_API_HASH": "${TDLIB_API_HASH}",
"TDLIB_PHONE_NUMBER": "${TDLIB_PHONE_NUMBER}",
"TDLIB_AUTH_CODE": "${TDLIB_AUTH_CODE}",
"TDLIB_2FA_PASSWORD": "${TDLIB_2FA_PASSWORD}"
}
}
}
}Cursor
Put this in .cursor/mcp.json in the project, or ~/.cursor/mcp.json for every project. Cursor mcp.json guide.
{
"mcpServers": {
"telegram-mcp-server": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/tolboy/telegram-mcp-tdlib:1.20.0-stdio"
],
"env": {
"TDLIB_API_ID": "${env:TDLIB_API_ID}",
"TDLIB_API_HASH": "${env:TDLIB_API_HASH}",
"TDLIB_PHONE_NUMBER": "${env:TDLIB_PHONE_NUMBER}",
"TDLIB_AUTH_CODE": "${env:TDLIB_AUTH_CODE}",
"TDLIB_2FA_PASSWORD": "${env:TDLIB_2FA_PASSWORD}"
}
}
}
} Configuration the publisher declares
| Environment variable | Required | Secret | Publisher's note |
|---|---|---|---|
TDLIB_API_ID | Yes | No | Telegram API ID from my.telegram.org |
TDLIB_API_HASH | Yes | Yes | Telegram API hash from my.telegram.org |
TDLIB_PHONE_NUMBER | No | Yes | Telegram phone number; omit after preparing a persisted session when using QR authentication |
TDLIB_AUTH_CODE | No | Yes | One-time Telegram login code for a fresh headless container |
TDLIB_2FA_PASSWORD | No | Yes | Telegram 2FA password when the account requires it |
MCP_READ_ONLY | No | No | Keep true for safe first use |
MCP_TOOL_PROFILE | No | No | Tool surface: reader, inbox, community-admin, research, or all |
"Required" and "secret" are the publisher's own flags in the registry, and many publishers leave them unset, so check the README too.
Allowlist entry
If your organisation restricts MCP servers, this is the entry an admin adds to allowedMcpServers in Claude Code managed settings or a GitHub Copilot enterprise managed-settings.json. A serverCommand entry must match the configured command and arguments exactly, so change both together.
{
"allowedMcpServers": [
{
"serverCommand": [
"docker",
"run",
"-i",
"--rm",
"ghcr.io/tolboy/telegram-mcp-tdlib:1.20.0-stdio"
]
}
]
} How allowlists work in each client: MCP server allowlists for Claude Code, GitHub Copilot and Cursor. Before you connect it to real data: 10 security checks for MCP servers.
Signals
| GitHub stars | 13 |
| npm weekly downloads | - |
| Last push | 19d ago |
| Licence | Apache-2.0 |
| Open issues | 0 |
| SECURITY.md | Yes |
| Language | Kotlin |
| Latest version published | 2026-11-09 |
Signals captured from GitHub, npm and the official MCP Registry on November 11, 2026. See the scoring method.
Similar servers
Apache Pinot MCP Server
Score 81Query and manage Apache Pinot through MCP with typed tools and preview-first safety.
Graphiti Local
Score 76Local-first temporal knowledge graph with six read-only MCP tools and human-reviewed writes.
Five MCP servers worth your time, every week
The Plug Weekly is a free email picked from these scores. About a 3-minute read. Unsubscribe any time.