telegram-mcp MCP Server

A Model Context Protocol (MCP) server for interacting with Telegram using mtcute.

Local serverstdio

What is the telegram-mcp Server?

telegram-mcp is an MCP project maintained in the zhigang1992/telegram-mcp repository. The maintainer describes its purpose as “A Model Context Protocol (MCP) server for interacting with Telegram using mtcute”. Read the project documentation for the complete scope.

Local setup

The project provides a local client configuration using /path/to/telegram-mcp. Follow the repository’s build and installation steps before copying it, and replace example paths with the paths on your own computer.

Configuration values

The example declares API_ID, API_HASH, TELEGRAM_STORAGE_PATH. Secret-looking values have been replaced with placeholders. Required and optional labels are shown only when the documentation states them.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
messages_sendTextSend a text message to a chat
chatIdrequired): Chat/User ID or username
textrequired): Message text to send
replyToMessageIdOptional message ID to reply to
messages_getHistoryGet message history from a chat
limitMaximum dialogs (default: 50)
offsetIdMessage ID for pagination
messages_searchSearch for messages
queryrequired): Search query
messages_getRecentGet recent messages from all chats
messagesPerChatMessages per chat (default: 10)
wait_for_replyWait for the next message in a chat
timeoutSecondsTimeout in seconds (default: 60, max: 300)
status_getCurrentGet the current emoji status for a peer
peerIdTarget peer, defaults to self
status_setEmojiSet or clear an emoji status
emojiIdCustom emoji document ID, required unless clear=true
isCollectibleSet true when emojiId is a collectible ID
untilOptional ISO-8601 timestamp or Unix timestamp string
clearClear the current status instead of setting one
status_listAvailableList available default emoji-status IDs
scopeself or channel (default: self)
status_listCollectiblesList owned collectible IDs usable as self emoji statuses
ownerPeer to inspect, defaults to self
dialogs_listList all dialogs
filterFilter options (onlyUsers, onlyGroups, onlyChannels)
dialogs_getInfoGet detailed dialog information

How to install the telegram-mcp Server

{
  "mcpServers": {
    "telegram": {
      "command": "/path/to/telegram-mcp",
      "env": {
        "API_ID": "your_api_id",
        "API_HASH": "your_api_hash",
        "TELEGRAM_STORAGE_PATH": "/absolute/path/from/initial/setup"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
API_IDDeclared in the maintainer’s client configuration.Check documentation
API_HASHDeclared in the maintainer’s client configuration.Check documentation
TELEGRAM_STORAGE_PATHDeclared in the maintainer’s client configuration.Check documentation