telegram-archive-mcp
An MCP server for any Telegram-Archive instance. LLMs use it to search messages, browse chats and read archived Telegram history.
Features
- Read-only resources for archive stats, chats, folders and health (
telegram-archive://stats,telegram-archive://chats). - Message search, message paging by offset or keyset cursor, and whole calendar days in a timezone (
get_messages_by_date). - Pinned messages, forum topics and per-chat statistics.
- The photo attached to a message, returned as an image the model can look at and scaled to 1568 pixels when larger (
get_media). - Signs in to Telegram-Archive through
/api/loginwithTELEGRAM_ARCHIVE_USERandTELEGRAM_ARCHIVE_PASS. - One JSON-RPC endpoint (
/mcp) over HTTP, or stdio withTRANSPORT=stdio. - Listens on loopback by default;
MCP_AUTH_TOKENadds bearer auth when you expose it. - Ships as a Docker image, an npm package (
npx telegram-archive-mcp) and multi-arch Go binaries.
Quick start
npx telegram-archive-mcpnpx fetches the server and runs it on stdio, so your MCP client starts it for you. For Claude Desktop, Cursor or Claude Code, add:






