Telegram MCP

An MCP server that gives your AI agent access to your personal Telegram: find a chat, read and search conversations, and send a message when you explicitly ask it to.

Version
1.0
Clients
Claude Code, Codex and other MCP clients
Requires
Node.js 22 and a Telegram account
License
MIT

InstallationSource code

Why

Without a dedicated connection, an agent reaches Telegram through a browser, Telegram Web, CDP or desktop client files. That is fragile and gives it more access than it needs. Telegram MCP provides one focused entry point: a separate session, ten tools and confirmation for every action that changes something.

What it does

Example

Claude Code + Telegram MCP

  1. youWhat did people say about the release in the work chat yesterday?
  2. agentlist_dialogs {"query": "work"}
  3. agentsearch_messages {"peer": "title:Work", "query": "release"}
  4. agentThree messages. The latest says it is moving to Friday.
  5. youReply: “Okay, Friday works for me.”
  6. agentsend_message {"peer": "title:Work", "text": "Okay, Friday works for me.", "confirm": true}

Compatibility

Works with clients that launch MCP servers over stdio. I use it with Claude Code and Codex. Cursor, Claude Desktop and other clients use the same command: node server.mjs.

Status

Version 1.0 is a working tool I use myself. The source is available under MIT: github.com/vixkosla/telegram-mcp.