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.
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-mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"telegram-archive": {
"env": {
"TELEGRAM_ARCHIVE_URL": "YOUR_TELEGRAM_ARCHIVE_URL"
},
"args": [
"-y",
"telegram-archive-mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"telegram-archive": {
"env": {
"TELEGRAM_ARCHIVE_URL": "YOUR_TELEGRAM_ARCHIVE_URL"
},
"args": [
"-y",
"telegram-archive-mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"telegram-archive": {
"env": {
"TELEGRAM_ARCHIVE_URL": "YOUR_TELEGRAM_ARCHIVE_URL"
},
"args": [
"-y",
"telegram-archive-mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add telegram-archive --env TELEGRAM_ARCHIVE_URL=YOUR_TELEGRAM_ARCHIVE_URL -- npx -y telegram-archive-mcp{
"mcpServers": {
"telegram-archive": {
"env": {
"TELEGRAM_ARCHIVE_URL": "YOUR_TELEGRAM_ARCHIVE_URL"
},
"args": [
"-y",
"telegram-archive-mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add telegram-archive npx -y telegram-archive-mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
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
| Setting | Needed | What it is |
|---|---|---|
TELEGRAM_Environment variable | Required | Telegram Archive instance URL (e.g. http://localhost:8000) |
TELEGRAM_Environment variable | Optional | Telegram Archive login username |
TELEGRAM_Environment variable, secret | Optional | Telegram Archive login password |
READ_Environment variable | Optional | Set 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 →Jitsu MCP server lets AI assistants configure and operate Jitsu data pipelines. It covers destinations, streams, connections and functions, plus Live Events and connector syncs. It is aimed at teams that run event data pipelines.
Vexa sends a bot into Google Meet, Microsoft Teams, Zoom and Jitsi calls to capture speaker-labelled transcripts live or after the call. It suits teams that want meeting transcripts they can self-host.
Gives Claude and other MCP-compatible AI agents access to LinkedIn through your own browser session. It reads profiles, researches companies, finds jobs, and manages messages and connection requests.
Runs a NetSapiens phone system from Claude, ChatGPT, or any MCP client. Each person signs in as themselves, and their assistant gets role-aware tools for calls, voicemail, queues, and provisioning.
Resend MCP Server connects AI assistants to the Resend email platform. It lets them send and receive emails and manage contacts, broadcasts, templates, and domains. It suits developers and teams who use MCP clients such as Claude or Cursor.
The source does not describe labelhead-artist-momentum. It is a README for Paperclip, an open-source orchestration app for teams of AI agents.
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.
