Telegram Archive MCP logo

Telegram Archive MCP

by GeiserX

Searches and browses archived Telegram chats, messages, topics, media, folders, and statistics through MCP.

Install Telegram Archive MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "geiserx-telegram-archive-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "telegram-archive-mcp"
      ],
      "env": {
        "TELEGRAM_ARCHIVE_URL": "YOUR_VALUE_HERE",
        "TELEGRAM_ARCHIVE_USER": "YOUR_VALUE_HERE",
        "TELEGRAM_ARCHIVE_PASS": "YOUR_VALUE_HERE",
        "MCP_AUTH_TOKEN": "YOUR_VALUE_HERE",
        "READ_ONLY": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

GeiserX/telegram-archive-mcp connects MCP clients to a Telegram-Archive instance for searching message text and browsing archived Telegram history. Its tools cover chat and folder discovery, full-text search across one or all chats, paginated message retrieval, date-based reading, forum topics, pinned messages, media, and statistics. It runs over stdio or Streamable HTTP and authenticates to Telegram-Archive with viewer credentials. Reach for it when an agent needs structured access to an existing Telegram archive rather than live Telegram messaging.

Use cases

  • Search message history across every archived Telegram chat
  • Browse a forum group and inspect specific topics
  • Review messages surrounding a known message or calendar date
  • Inspect pinned messages, attached photos, and chat statistics
  • Recalculate archive-wide statistics when permitted

Key features

  • Full-text search across one or all chats
  • Paginated and cursor-based message retrieval
  • Forum topics, folders, and pinned-message access
  • Date-based history lookup with timezone support
  • Attached-photo retrieval and file details
  • Stdio and Streamable HTTP transports

Tools12

What Telegram Archive MCP lets your agent do. Expand a tool for its parameters.

Self-reported~231 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

10/10 checks healthy over the last 96d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 9d ago via OSV.dev · telegram-archive-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars13Stargazers on the source repository.
npm downloads1.2kPackage downloads in the last 30 days.
Last commit4d agoMost recent push to the default branch.
Tools exposed12Callable tools this server registers over MCP.
Directory activity4 viewsConfig copies, upvotes, and views on AllMCPs.

How Telegram Archive MCP works

What GeiserX/telegram-archive-mcp does

GeiserX/telegram-archive-mcp gives MCP-compatible clients access to a Telegram-Archive instance. It is designed for reading and searching archived Telegram conversations, not for sending messages or modifying chats. The server exposes structured tool results alongside the same data as JSON text, allowing clients to inspect chat history through their normal MCP interfaces.

The read-oriented toolset supports chat discovery, folder browsing, message search, conversation navigation, forum topics, pinned messages, attached photos, and per-chat statistics. refresh_stats is the only tool that changes archive state by asking the viewer to recalculate archive-wide statistics. Setting READ_ONLY=1 removes that tool.

How it works

At startup, the server uses TELEGRAM_ARCHIVE_URL to reach the viewer and signs in through its /api/login endpoint with TELEGRAM_ARCHIVE_USER and TELEGRAM_ARCHIVE_PASS. MCP clients can launch it as a stdio process, or it can serve requests over Streamable HTTP. The implementation is distributed through npm, Docker, and multi-architecture Go binaries.

A typical workflow starts with list_chats, whose returned ref values are chat IDs for the other chat-specific tools. list_folders and get_topics provide folder and forum-topic identifiers. Search can span all chats or target one chat, while get_messages supports newest-first reading with offset or keyset-cursor pagination. get_message_context centers retrieval around one message, and get_messages_by_date reads a calendar day in a chosen timezone.

HTTP binds to loopback by default, validates the request origin, limits request-body size, and requires MCP_AUTH_TOKEN when listening on another address. These settings matter when exposing the server beyond the local machine.

Setup and configuration

For npm-based stdio use, run the telegram-archive-mcp package with npx and provide the archive URL, viewer username, and viewer password as environment variables. The package obtains the release binary on first start and verifies it against the checksums published with the package. This also supports environments where npm 12 skips install scripts.

Docker can replace the npm command in an MCP client configuration. Use the published drumsergio/telegram-archive-mcp image with a release tag rather than the latest tag, and pass the same archive connection variables into the container. Long-running HTTP deployments and local builds are also supported.

The documented client configurations cover Claude Code, Claude Desktop, Cursor, VS Code, and Codex. Each launches the server over stdio and supplies the Telegram-Archive URL and credentials.

Tools and capabilities

  • list_chats filters chats by name, archive status, or folder and orders them most recently first.
  • search_all_chats searches message text across the entire archive; search_messages limits the search to one chat or forum topic.
  • get_messages, get_message_context, and get_messages_by_date support page-oriented, surrounding-context, and date-based reading.
  • list_folders, get_topics, and get_pinned_messages expose Telegram organization and pinned content.
  • get_media returns an attached photo as an image or provides file details; larger images are scaled to 1568 pixels.
  • get_chat_stats reports message and media counts and storage size, while refresh_stats recalculates archive-wide statistics.

Limitations and notes

The server depends on an accessible Telegram-Archive viewer and valid viewer credentials. Most tools are read-only; refresh_stats is the exception unless READ_ONLY=1 is enabled. HTTP deployments outside loopback require an MCP authentication token. The available archive content and media depend on what the connected Telegram-Archive instance contains.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Telegram Archive MCP

GeiserX/telegram-archive-mcp is an MCP server that connects compatible AI clients to a Telegram-Archive instance. Its main tools list chats and folders, search messages across one or all chats, retrieve history and context, inspect topics and pinned messages, access media, and view chat statistics.

Install it for stdio with the npm package through npx, or run the published Docker image with a release tag. Configure TELEGRAM_ARCHIVE_URL, TELEGRAM_ARCHIVE_USER, and TELEGRAM_ARCHIVE_PASS so the server can sign in to the Telegram-Archive viewer.

Yes, GeiserX/telegram-archive-mcp works with Cursor over stdio. Add it to Cursor's MCP configuration with npx as the command and provide the Telegram-Archive URL, viewer username, and viewer password as environment variables.

Yes, the `search_all_chats` tool searches message text across every chat in the connected archive. Use `search_messages` instead when the search should be limited to one chat or an optional forum topic.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewTelegram Archive MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/geiserx-telegram-archive-mcp?style=directory)](https://allmcps.com/mcp/geiserx-telegram-archive-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/geiserx-telegram-archive-mcp"><img src="https://allmcps.com/api/badge/geiserx-telegram-archive-mcp?style=directory" alt="Telegram Archive MCP on AllMCPs" /></a>