← Back to directory
C

Claude Ops Telegram MCP Server

Community
Manage personal Telegram conversations through MCP.
Category
Collaboration #47 of 83
Stars
★ 566 Very popular
Transport
stdio (local process)
Runtime
Node.js
Credentials
API key / credential required
License
MIT
Last commit
Tools
4
51FMRS · D

This is a community-maintained personal-account Telegram MCP server in the claude-ops repository, not an official Telegram server. It provides stdio tools to list dialogs, read and search messages, and send messages. It suits personal inbox management, but personal-account authentication and message-sending access make secure session-token handling essential.

Strongest · Documentation 12/20 Weakest · Reliability 8/20

Reliability
8/20
Security and permissions
10/20
Maintenance
10/20
Documentation
12/20
Setup experience
11/20
Why each score
Reliability 8/20
The README lists list_dialogs, get_messages, send_message, and search_messages, broadly matching the manifest's read, write, and search description; stdio transport is also declared. The supplied material contains no server source, initialization or tool-parameter details, error handling, or CI and tests covering key paths, so startup and tool-list handshake remain plausible rather than verified, lowering the score under the static calibration.
Security and permissions 10/20
The README says the server uses MTProto with a personal account and can read and reply to real private conversations. Credentials, including the session token, are supplied through environment variables, with guidance to store them securely and revoke a compromised session. The material does not document tool-level permission boundaries, confirmation before sending, retention, or specific data-flow controls; read and send access are broad, so points are deducted. No supplied evidence shows a red-line behavior.
Maintenance 10/20
The repository is not archived, has an MIT license, and the material gives version information and an update path. It does not provide server-specific release history, commit activity, issue response, dependency-update policy, or a security-response channel. Popularity does not count toward the score, and evidence of governance and sustained maintenance is limited.
Documentation 12/20
The subdirectory README covers obtaining API credentials, interactive first-run authentication, Claude Code configuration, a tool overview, security guidance, and common troubleshooting. Tool parameters, rate-limit details, error behavior, and data-handling boundaries are not fully documented. The npm install and node commands are examples, not verifiable execution evidence.
Setup experience 11/20
The README provides steps for obtaining credentials, installing dependencies, interactive authentication, and configuring Claude Code over stdio; the manifest declares npm and stdio. Setup requires manual installation, environment-variable management, and SMS plus optional two-factor authentication. No configuration for other mainstream clients or server tests and CI verifying a working connection are supplied, limiting the score.

Static review · not runReviewed 2026-12-02

Read the FMRS scoring method →

Fit and risk

What it can accessUses the networkChanges third-party account data

Best for

  • Claude Code users who want to manage a personal Telegram inbox.
  • Users able to protect Telegram API credentials and a personal-account session token.

Not for

  • Users who only need bot functionality or do not want a server accessing messages as a personal account.
  • Users who need compatibility guarantees for clients other than Claude Code; the supplied configuration example is for Claude Code.

Required permissions

  • Requires a Telegram personal-app API ID and API hash, plus a gram.js StringSession.
  • Initial authentication requires an E.164 phone number and prompts for an SMS code and, if enabled, a two-factor authentication password.
  • Can read, search, and send Telegram conversation messages.

Risks and side effects

  • The session token is equivalent to an account password. If exposed, it may allow account access; store it in a secret manager and never commit it.
  • The send tool can message chats or users as the personal account.
  • The README notes that Telegram applies per-account rate limits, which can temporarily restrict activity.

Setup

Before you start

Runtime:Node.js

TELEGRAM_API_ID requiredsecret Numeric API ID from a personal app created at my.telegram.org/apps.
TELEGRAM_API_HASH requiredsecret API hash from the same personal app page at my.telegram.org/apps.
TELEGRAM_PHONE optionalsecret Telegram account phone number in E.164 format; needed only for the initial --auth run.
TELEGRAM_SESSION requiredsecret gram.js StringSession generated with node index.js --auth; store it securely.
Other optional settings (1)
TELEGRAM_ENABLED optional Set to true to enable Telegram in ops-unread detection.

Create a personal application at my.telegram.org/apps to obtain an API ID and API hash. Install dependencies, set TELEGRAM_API_ID, TELEGRAM_API_HASH, and TELEGRAM_PHONE, then run node index.js --auth to complete SMS-code authentication and any enabled two-factor authentication. Store the resulting TELEGRAM_SESSION securely. Add the server to Claude Code's MCP configuration with the required environment variables and restart Claude Code. Replace the example script path with the actual installation path.

.mcp.json
{
  "mcpServers": {
    "telegram": {
      "command": "node",
      "args": ["/path/to/claude-ops/telegram-server/index.js"],
      "env": {
        "TELEGRAM_API_ID": "${TELEGRAM_API_ID}",
        "TELEGRAM_API_HASH": "${TELEGRAM_API_HASH}",
        "TELEGRAM_SESSION": "${TELEGRAM_SESSION}",
        "TELEGRAM_PHONE": "${TELEGRAM_PHONE}"
      }
    }
  }
}

Shown for Claude Code. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.

.vscode/mcp.json
{
  "servers": {
    "telegram": {
      "command": "node",
      "args": [
        "/path/to/claude-ops/telegram-server/index.js"
      ],
      "env": {
        "TELEGRAM_API_ID": "${TELEGRAM_API_ID}",
        "TELEGRAM_API_HASH": "${TELEGRAM_API_HASH}",
        "TELEGRAM_SESSION": "${TELEGRAM_SESSION}",
        "TELEGRAM_PHONE": "${TELEGRAM_PHONE}"
      }
    }
  }
}

Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).

~/.codex/config.toml
[mcp_servers.telegram]
command = "node"
args = ["/path/to/claude-ops/telegram-server/index.js"]

[mcp_servers.telegram.env]
TELEGRAM_API_ID = "${TELEGRAM_API_ID}"
TELEGRAM_API_HASH = "${TELEGRAM_API_HASH}"
TELEGRAM_SESSION = "${TELEGRAM_SESSION}"
TELEGRAM_PHONE = "${TELEGRAM_PHONE}"

Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).

Terminal
claude mcp add telegram -e 'TELEGRAM_API_ID=${TELEGRAM_API_ID}' -e 'TELEGRAM_API_HASH=${TELEGRAM_API_HASH}' -e 'TELEGRAM_SESSION=${TELEGRAM_SESSION}' -e 'TELEGRAM_PHONE=${TELEGRAM_PHONE}' -- node /path/to/claude-ops/telegram-server/index.js

Run it in a terminal; replace any <…> placeholders with your own values first.

Check that it works

Confirm list_dialogs, get_messages, send_message, and search_messages appear in the client's tool list. Call list_dialogs; returned conversations and unread counts confirm the connection.

Troubleshooting

  1. If TELEGRAM_API_ID is reported missing, check that the MCP configuration passes the required environment variables.
  2. If the session is invalid, run node index.js --auth again to generate a fresh session token.
  3. If rate limited, the README recommends waiting 15 to 30 minutes before retrying.
  4. Check that the startup command and script path match the actual installation.

Things to try

Once connected, you can ask your AI assistant things like:

  • List my recent Telegram conversations and their unread counts.
  • Show me the latest messages from a Telegram chat.
  • Search all my Telegram conversations for messages about the meeting.
  • Send a Telegram message saying I will reply later.

Tools 4

list_dialogs read-only
List recent conversations (DMs, groups, and channels) with unread counts.
get_messages read-only
Fetch messages from a specific chat.
send_message destructive
Send a message to a chat or user.
search_messages read-only
Run a full-text search across conversations.

Use cases

Review recent Telegram DMs, groups, and channels with unread counts.
Fetch chat messages, search conversation content, or send messages.
Handle Telegram messages as part of the Claude Ops personal inbox workflow.

Supported clients

Claude Code

Listed from the project's documentation, not tested by this site.

Overview

The Claude Ops Telegram MCP Server connects to Telegram as a personal account over MTProto using gram.js. It can read and reply to real DMs and handle group and channel conversations. It runs locally over stdio and provides tools to list dialogs, fetch messages, send messages, and search across conversations.

Similar servers

Source revision 060a69885a8b Data synced 2026-12-05 Read the FMRS scoring method Markdown

Maintainer badge: embed FMRS score

Paste this Markdown into your repository README to display a live score badge:

README.md
[![FollowMCP](https://followmcp.com/badges/telegram-server.svg)](https://followmcp.com/en/servers/telegram-server)