Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

Telegram Archive

MCP server by GeiserX Community

Telegram Archive is an MCP server that lets AI assistants search and read chats and messages from a Telegram-Archive instance. It is for people who already keep an archive of their Telegram history.

  • Score 73
  • 16 stars
  • 307 a week
  • GPL-3.0
  • Updated

Install Telegram Archive

Built from the published package, never by AI.

claude mcp add telegram-archive -e TELEGRAM_ARCHIVE_URL=YOUR_TELEGRAM_ARCHIVE_URL -- npx -y telegram-archive-mcp

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Telegram Archive in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the telegram-archive block.

About

Telegram Archive is an MCP server for any Telegram-Archive instance. It lets an LLM search messages, browse chats and read archived Telegram history. Tools cover search in one chat or in all chats, paged reading, reading one calendar day in a timezone, and the messages around one message. It also returns forum topics, pinned messages, folders and per-chat statistics, plus the photo attached to a message as an image.

The server runs over stdio and Streamable HTTP. It signs in to Telegram-Archive through /api/login with a viewer username and password. Every tool is read-only except refresh_stats, which READ_ONLY=1 hides. HTTP listens on loopback by default and requires MCP_AUTH_TOKEN on other addresses. It is aimed at users who run a Telegram-Archive viewer and want AI assistants to read it. It ships as an npm package, a Docker image and Go binaries.

Written from the project's README and checked against it.

Tools it gives your assistant

  • list_chatsLists chats, most recent first, with filters for name, archived status and folder.
  • search_all_chatsSearches message text in every chat at once.
  • search_messagesSearches one chat, optionally one forum topic.
  • get_messagesReads a chat newest first, by offset or keyset cursor.
  • get_message_contextReturns one message with the messages before and after it.
  • get_messages_by_dateReturns every message of one calendar day in a timezone.
  • get_pinned_messagesReturns a chat's pinned messages.
  • get_topicsLists a forum group's topics and their ids.
  • get_chat_statsShows message and media counts and size for one chat.
  • get_mediaReturns the photo attached to a message as an image, or the file's details.

What you need

  • A running Telegram-Archive instance
  • Viewer username and password for Telegram-Archive
  • npm with npx, or Docker, to run the server
SettingNeededWhat it is
TELEGRAM_ARCHIVE_URLEnvironment variableRequiredTelegram Archive instance URL (e.g. http://localhost:8000)
TELEGRAM_ARCHIVE_USEREnvironment variableOptionalTelegram Archive login username
TELEGRAM_ARCHIVE_PASSEnvironment variable, secretOptionalTelegram Archive login password
READ_ONLYEnvironment variableOptionalSet to true to hide refresh_stats, the one tool that asks the viewer to do work

From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.

Try asking

  • Search all my archived chats for messages that mention the trip to Lisbon.
  • Show every message from 12 March 2025 in Europe/Madrid time.
  • Show the messages around this one and the photo attached to it.

Good to know

  • Every tool is read-only except refresh_stats.
  • HTTP listens on loopback by default and needs MCP_AUTH_TOKEN on other addresses.
  • Images larger than 1568 pixels are scaled down to 1568 pixels.

Security check

B
  • Runs a script automatically when the package is installedIn package.json: "postinstall":

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to Telegram Archive

All alternatives →

Compare with Jitsu, Vexa or Linkedin MCP server

Telegram Archive: common questions

Does Telegram Archive change my Telegram data?

Every tool is read-only except refresh_stats, which makes the viewer recalculate archive-wide statistics. Setting READ_ONLY=1 hides that tool too.

Can the assistant see photos attached to messages?

The get_media tool returns the photo attached to a message as an image the model can look at. Photos larger than 1568 pixels are scaled down.

How does the server sign in to the archive?

It signs in to Telegram-Archive through its /api/login endpoint using TELEGRAM_ARCHIVE_USER and TELEGRAM_ARCHIVE_PASS. HTTP mode also checks the Origin header and caps request bodies.

How do I install Telegram Archive?

In Claude Code run claude mcp add telegram-archive -e TELEGRAM_ARCHIVE_URL=YOUR_TELEGRAM_ARCHIVE_URL -- npx -y telegram-archive-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is Telegram Archive the official server?

Telegram Archive is a community project by GeiserX, not verified by a company domain.

Is Telegram Archive free?

The code is published under the GPL-3.0 licence. The service it connects to may have its own pricing.

Is Telegram Archive safe to use?

It scores 73 of 100. Grades: maintenance A, licence C, quality C. Security check: grade B (runs a script automatically when the package is installed). Review the code before you install. How grades work.

What are alternatives to Telegram Archive?

Similar MCP servers: Jitsu, Vexa, Linkedin MCP server, Netsapiens MCP.

Does Telegram Archive work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

Telegram Archive Install

Add to stack

Loading.