SuperAPI AI Directory

telegram-archive-mcp

Search and browse Telegram chat history stored in Telegram Archive: list chats, retrieve messages and run full-text search.

Open website

About this tool

Purpose: telegram-archive-mcp is an MCP server that connects to any Telegram-Archive instance, allowing large language models to search messages, browse chats, and read archived Telegram history.

Main capabilities: Provides read-only resources, including archive statistics, chats, folders, and health status (telegram-archive://stats, telegram-archive://chats); supports message search, pagination by offset or keyset cursor, and reading messages for a full day in a specified time zone (get_messages_by_date); supports pinned messages, forum topics, and per-chat statistics; can return images attached to messages via get_media for the model to view, and images larger than 1568 pixels are scaled down.

Usage: Log in to Telegram-Archive via /api/login using TELEGRAM_ARCHIVE_USER and TELEGRAM_ARCHIVE_PASS. Provides a single JSON-RPC endpoint over HTTP (/mcp), or set TRANSPORT=stdio to use stdio. By default it listens on the loopback address; when exposing it externally, bearer authentication can be added with MCP_AUTH_TOKEN. Distribution formats include a Docker image, an npm package (npx telegram-archive-mcp), and multi-architecture Go binaries. npx pulls the server and runs it over stdio, automatically started by the MCP client; it can be configured in Claude Desktop, Cursor, or Claude Code. The Telegram-Archive viewer URL, username, and password need to be set. Docker Compose provides HTTP on 127.0.0.1:8080.

Use cases: Scenarios where an LLM needs to retrieve and browse archived Telegram chat history.

Limitations: The materials do not provide more details beyond the specific number of tools; usage requires an existing Telegram-Archive instance and valid credentials; by default it only listens on loopback, and exposing it externally requires configuring authentication yourself.