Command Palette

Search for a command to run...

UnylyUnyly
Browse all

Telegram Archive

FreeMaintained

MCP server that exposes any Telegram-Archive instance to LLMs, enabling message search, chat browsing, and access to archived Telegram history.

GitHubEmbed

About

MCP server that exposes any Telegram-Archive instance to LLMs, enabling message search, chat browsing, and access to archived Telegram history.

README

telegram-archive-mcp

telegram-archive-mcp

npm CI License Docker Pulls codecov

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/login with TELEGRAM_ARCHIVE_USER and TELEGRAM_ARCHIVE_PASS.
  • One JSON-RPC endpoint (/mcp) over HTTP, or stdio with TRANSPORT=stdio.
  • Listens on loopback by default; MCP_AUTH_TOKEN adds 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-mcp

npx fetches the server and runs it on stdio, so your MCP client starts it for you. For Claude Desktop, Cursor or Claude Code, add:

{
  "mcpServers": {
    "telegram-archive": {
      "command": "npx",
      "args": ["-y", "telegram-archive-mcp"],
      "env": {
        "TELEGRAM_ARCHIVE_URL": "http://localhost:8000",
        "TELEGRAM_ARCHIVE_USER": "admin",
        "TELEGRAM_ARCHIVE_PASS": "your-viewer-password"
      }
    }
  }
}

Set the URL, user and password of your Telegram-Archive viewer. Docker Compose (HTTP on 127.0.0.1:8080) and local builds are in Getting started.

Documentation

The full documentation is at geiserx.github.io/telegram-archive-mcp.

  • Getting started: npm, Docker Compose, local build
  • Configuration: environment variables and client configuration
  • Usage: the 4 resources and 10 tools, paging, reading one day at a time
  • Development: testing, contributing, credits
  • Related projects: Telegram Archive, other MCP servers, where this one is listed

License

GPL-3.0-or-later

from github.com/GeiserX/telegram-archive-mcp

Install Telegram Archive in Claude Desktop, Claude Code & Cursor

Recommended · one command, every IDE
unyly install telegram-archive-mcp

Installs into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.

First time? Get the CLI: curl -fsSL https://unyly.org/install | sh

Or configure manually

Run in your terminal:

claude mcp add telegram-archive-mcp --env TELEGRAM_ARCHIVE_PASS="" --env TELEGRAM_ARCHIVE_URL="" --env TELEGRAM_ARCHIVE_USER="" -- npx -y telegram-archive-mcp

Step-by-step: how to install Telegram Archive

FAQ

Is Telegram Archive MCP free?

Yes, Telegram Archive MCP is free — one-click install via Unyly at no cost.

Does Telegram Archive need an API key?

Yes, it requires environment variables: TELEGRAM_ARCHIVE_PASS, TELEGRAM_ARCHIVE_URL, TELEGRAM_ARCHIVE_USER. Unyly injects them into the config during install.

Is Telegram Archive hosted or self-hosted?

A hosted option is available: Unyly runs the server in the cloud, no local setup required.

How do I install Telegram Archive in Claude Desktop, Claude Code or Cursor?

Open Telegram Archive on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Changes

Versions and requested access over time.

  • New version published
  • New version published
  • New version published
  • Requested access changed
    + TELEGRAM_ARCHIVE_PASS+ TELEGRAM_ARCHIVE_URL+ TELEGRAM_ARCHIVE_USER
  • New version published
  • New version published
  • New version published
  • New version published

Related MCPs

Compare Telegram Archive with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All communication MCPs