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-stdio

Assembled 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 variableRequiredSecretPublisher's note
TDLIB_API_IDYesNoTelegram API ID from my.telegram.org
TDLIB_API_HASHYesYesTelegram API hash from my.telegram.org
TDLIB_PHONE_NUMBERNoYesTelegram phone number; omit after preparing a persisted session when using QR authentication
TDLIB_AUTH_CODENoYesOne-time Telegram login code for a fresh headless container
TDLIB_2FA_PASSWORDNoYesTelegram 2FA password when the account requires it
MCP_READ_ONLYNoNoKeep true for safe first use
MCP_TOOL_PROFILENoNoTool 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 stars13
npm weekly downloads-
Last push19d ago
LicenceApache-2.0
Open issues0
SECURITY.mdYes
LanguageKotlin
Latest version published2026-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 81

Query and manage Apache Pinot through MCP with typed tools and preview-first safety.

★ 17Apache-2.0pushed 19d ago
Other

Graphiti Local

Score 76

Local-first temporal knowledge graph with six read-only MCP tools and human-reviewed writes.

★ 5Apache-2.0pushed 1mo ago
Other

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.

Subscribe free