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.
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
Static review · not runReviewed 2026-12-02
Read the FMRS scoring method →Runtime:Node.js
TELEGRAM_API_ID
Numeric API ID from a personal app created at my.telegram.org/apps.
TELEGRAM_API_HASH
API hash from the same personal app page at my.telegram.org/apps.
TELEGRAM_PHONE
Telegram account phone number in E.164 format; needed only for the initial --auth run.
TELEGRAM_SESSION
gram.js StringSession generated with node index.js --auth; store it securely.
TELEGRAM_ENABLED
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.
{
"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.
{
"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).
[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).
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.
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.
Once connected, you can ask your AI assistant things like:
No matching tools
Listed from the project's documentation, not tested by this site.
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.
Search and manage Discourse forums through MCP.
Design together with AI agents on a live multiplayer canvas.
Connect Atlassian Cloud work to AI tools securely.
Official Notion MCP server for querying, editing, and managing Notion pages and databases via AI agents.
Source revision 060a69885a8b Data synced 2026-12-05 Read the FMRS scoring method Markdown