Skip to main content
Glama
GeiserX

telegram-archive-mcp

by GeiserX

Что вы получаете

Тип

Для чего

MCP URI / ID инструмента

Ресурсы

Просмотр статистики архива, чатов и папок (только чтение)

telegram-archive://statstelegram-archive://chatstelegram-archive://folderstelegram-archive://health

Инструменты

Поиск и получение сообщений, проверка статистики чата

search_messagesget_messagesget_pinned_messagesget_messages_by_dateget_chat_statsget_topicsrefresh_stats

Все предоставляется через единую конечную точку JSON-RPC (/mcp). LLM / Агенты могут: initialize -> readResource -> listTools -> callTool ... и так далее.


Related MCP server: telegram-user-mcp

Быстрый старт (Docker Compose)

services:
  telegram-archive-mcp:
    image: drumsergio/telegram-archive-mcp:latest
    ports:
      - "127.0.0.1:8080:8080"
    environment:
      - TELEGRAM_ARCHIVE_URL=http://telegram-archive:3000
      - TELEGRAM_ARCHIVE_USER=your-username
      - TELEGRAM_ARCHIVE_PASS=your-password

Примечание по безопасности: Транспорт HTTP по умолчанию прослушивает 127.0.0.1:8080. Если вам нужно открыть его в сети, разместите его за обратным прокси-сервером с аутентификацией.

Установка через npm (транспорт stdio)

npx telegram-archive-mcp

Или установите глобально:

npm install -g telegram-archive-mcp
telegram-archive-mcp

Это загрузит предварительно собранный бинарный файл Go из GitHub Releases для вашей платформы и запустит его с транспортом stdio. Требуется как минимум один опубликованный релиз.

Локальная сборка

git clone https://github.com/GeiserX/telegram-archive-mcp
cd telegram-archive-mcp

# (optional) create .env from the sample
cp .env.example .env && $EDITOR .env

go run ./cmd/server

Конфигурация

Переменная

По умолчанию

Описание

TELEGRAM_ARCHIVE_URL

http://localhost:3000

URL экземпляра Telegram-Archive (без завершающего /)

TELEGRAM_ARCHIVE_USER

(пусто)

Имя пользователя для сессионной аутентификации через /api/login

TELEGRAM_ARCHIVE_PASS

(пусто)

Пароль для сессионной аутентификации через /api/login

LISTEN_ADDR

127.0.0.1:8080

Адрес прослушивания HTTP (Docker устанавливает 0.0.0.0:8080)

TRANSPORT

(пусто = HTTP)

Установите stdio для транспорта stdio

Поместите их в файл .env (из .env.example) или установите их в окружении.

Тестирование

Протестировано с помощью Inspector, в настоящее время работает полностью. Перед созданием PR убедитесь, что этот MCP-сервер ведет себя корректно через этот инструмент.

Пример конфигурации для клиентских LLM

{
  "schema_version": "v1",
  "name_for_human": "Telegram-Archive-MCP",
  "name_for_model": "telegram_archive_mcp",
  "description_for_human": "Search messages, browse chats, and access archived Telegram history.",
  "description_for_model": "Interact with a Telegram-Archive instance that stores archived Telegram messages. First call initialize, then reuse the returned session id in header \"Mcp-Session-Id\" for every other call. Use readResource to fetch URIs that begin with telegram-archive://. Use listTools to discover available actions and callTool to execute them.",
  "auth": { "type": "none" },
  "api": {
    "type": "jsonrpc-mcp",
    "url":  "http://localhost:8080/mcp",
    "init_method": "initialize",
    "session_header": "Mcp-Session-Id"
  },
  "contact_email": "acsdesk@protonmail.com",
  "legal_info_url": "https://github.com/GeiserX/telegram-archive-mcp/blob/main/LICENSE"
}

Авторы

Telegram-Archive -- архивация и поиск сообщений Telegram

MCP-GO -- современная реализация MCP

GoReleaser -- удобные мультиархитектурные релизы

Сопровождающие

@GeiserX.

Участие в разработке

Присоединяйтесь! Откройте issue или отправьте PR.

Telegram-Archive-MCP следует Кодексу поведения Contributor Covenant.

Другие MCP-серверы от GeiserX

  • cashpilot-mcp — Мониторинг пассивного дохода

  • duplicacy-mcp — Мониторинг состояния резервных копий

  • genieacs-mcp — Управление устройствами TR-069

  • lynxprompt-mcp — Чертежи конфигурации ИИ

  • pumperly-mcp — Цены на топливо и зарядку электромобилей

Связанные проекты

Проект

Описание

Telegram-Archive

Автоматизированное инкрементальное резервное копирование Telegram с локальным веб-просмотрщиком

telegram-delay-channel-cloner

Telegram-бот, который пересылает сообщения между каналами с настраиваемой задержкой

telegram-slskd-local-bot

Автоматизированный поиск и загрузка музыки через Telegram-бота с Soulseek

paperless-telegram-bot

Управление документами Paperless-NGX полностью через Telegram

n8n-nodes-telegram-archive

Узел сообщества n8n для Telegram-Archive

Available Tools

10 tools
get_chat_statsC
Read-only

Get statistics for a specific Telegram chat

NameRequiredDescriptionDefault
chat_idYesChat ID to get statistics for

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

readOnlyHint=true already tells the agent this is a safe read, so the description carries a lower burden. But it adds nothing about what 'statistics' contains, whether results are cached, or how it relates to refresh_stats — meaningful gaps for a stats-retrieval tool whose sibling implies staleness control.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single efficient sentence with the resource front-loaded. No waste, though also no additional structure to aid scanning.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema and no annotations beyond readOnlyHint, the description should explain what statistics are returned or at least the freshness model. Given the sibling refresh_stats exists, the omission of any staleness/caching semantics leaves the agent unable to choose confidently between the two.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% for the single chat_id parameter, so the schema fully documents the input. The description adds no format hints (e.g., numeric vs. @username) beyond the schema, which is the expected baseline.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (Get) and resource (statistics) scoped to a Telegram chat, so the action is unambiguous. It does not, however, distinguish itself from the sibling refresh_stats, which an agent must reason about when deciding whether stats are stale.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to call this versus refresh_stats, or whether it returns cached vs. freshly computed statistics. The agent is left to infer usage entirely from the name.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_mediaA
Read-only

Get the photo or file attached to one message. A JPEG, PNG, WebP or GIF image comes back as an image you can look at, scaled to at most 1568 pixels on its longest side, after a JSON text block with the message's message_id, date, sender, text (the caption) and reply_to_msg_id, and the file's media_key, kind, file_name, mime_type, size_bytes, image_returned, width, height and scaled. Any other file returns only that JSON text block, with a note saying why the file is not included.

NameRequiredDescriptionDefault
chat_idYesChat ID (the chat's ref from list_chats)
message_idYesID of the message that carries the media

TDQS

A4.2/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Despite only a readOnlyHint annotation, the description discloses rich behavioral detail: which formats return viewable images, the 1568px scaling on the longest side, the exact JSON prelude emitted, and that non-image files return only JSON with an explanatory note. This goes far beyond the annotation and fully characterizes the output behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core action and format-handling behavior in the first sentence, with return-structure details following. The enumeration of JSON fields is dense and slightly run-on, but given there is no output schema, each detail earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description carries the full burden of explaining return values, and it does so thoroughly: JSON fields for the message and file, the image-return condition, and the fallback note. Nothing an agent needs to call and interpret the result is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so both parameters (chat_id, message_id) are already documented in the schema. The description adds no syntax or format guidance beyond what the schema provides, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (Get) and resource (the photo or file attached to one message), clearly distinguishing it from sibling message tools like get_messages or get_pinned_messages that return text. An agent can tell exactly what this returns without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The purpose implies usage (fetch media for a known message), but there is no explicit when-to-use, when-not, or named alternative among siblings. The agent must infer that this is the tool for extracting attachments from a message id it already holds.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_messagesA
Read-only

Get messages from a Telegram chat, newest first. Page with offset, or with the keyset cursor: pass the date and id of the last message you received as before_date and before_id to get the older ones (constant time on huge chats). after_id returns messages newer than an id. Dates are naive UTC.

NameRequiredDescriptionDefault
limitNoMaximum messages to return (default 50, max 500)
offsetNoPagination offset (default 0). Ignored when a cursor is given.
chat_idYesChat ID to retrieve messages from
after_idNoReturns messages with an id greater than this one (newer).
before_idNoKeyset cursor: message id. Returns messages with a smaller id; pair with before_date.
before_dateNoKeyset cursor: ISO 8601 date-time, naive values are UTC (e.g. 2026-06-10T18:04:17). Returns messages older than this instant; pair with before_id.

TDQS

A3.9/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true, so the safety profile is covered. The description adds genuine context beyond that: newest-first ordering, constant-time keyset pagination on large chats, and that dates are naive UTC. It does not cover edge cases like empty results or limits at the end of a chat.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tightly packed sentences: ordering and source first, then pagination modes, then the timezone caveat. No filler, and the most important constraint is front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only listing tool with no output schema, the description covers ordering, both pagination strategies, and date semantics adequately. Minor gaps remain around result boundaries (empty page at end of chat) and whether limit applies per page, but nothing essential for a correct call is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3, and the description adds value above it by explaining how before_date and before_id combine as a cursor pair and noting the performance rationale. The offset-ignored-when-cursor-given rule repeats the schema, so the gain is modest.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Get messages from a Telegram chat') plus a defining behavioral trait ('newest first'). It does not explicitly differentiate from the sibling get_messages_by_date or search_messages, so an agent must infer the boundary from the pagination detail rather than being told.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explains how to paginate (offset vs. keyset cursor via before_date/before_id, or after_id for newer) but never says when to choose this tool over get_messages_by_date or search_messages. Usage of the tool itself is implied by the pagination recipe; sibling routing is absent.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_messages_by_dateA
Read-only

Get every message of a Telegram chat sent on one calendar day, oldest first. The day is taken in the given timezone (default UTC); the archive stores dates in UTC. Walks the chat with the keyset cursor, so it is cheap even on chats with hundreds of thousands of messages.

NameRequiredDescriptionDefault
dateYesDate in YYYY-MM-DD format
limitNoMaximum messages to return (default 1000, max 5000). When the day has more, the newest are dropped and truncated is true.
chat_idYesChat ID to retrieve messages from
timezoneNoIANA timezone the date is expressed in (e.g. Europe/Madrid). Default UTC.

TDQS

A3.9/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With readOnlyHint already declaring the safety profile, the description adds real behavioral context beyond annotations: oldest-first ordering, timezone vs. UTC archive storage, and keyset-cursor efficiency on very large chats. It stops short of describing truncation/pagination at the description level, though the schema covers the limit case.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, purpose front-loaded, zero filler; the timezone and efficiency notes are compact and each earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only, 4-parameter tool with full schema coverage and no output schema, the description supplies the ordering, timezone semantics, and cost model an agent needs. Only truncation/limit behavior is left entirely to the schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds meaning the schema does not: that the day is interpreted in the supplied timezone while the archive stores UTC, clarifying how date/timezone interact. It adds little on limit beyond what the schema already documents.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (Get), resource (every message of a Telegram chat), and tight scope (one calendar day, oldest first). It clearly differentiates from the generic get_messages by the day-scoping and ordering, but never names a sibling explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The day-scoped framing implies when this tool applies versus a general message fetch, but there is no explicit when-to-use/when-not guidance and no alternative (e.g. get_messages or search_messages) is named for other cases.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_pinned_messagesC
Read-only

Get pinned messages from a Telegram chat

NameRequiredDescriptionDefault
chat_idYesChat ID to get pinned messages from

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true, so the safety profile is covered. However the description adds nothing beyond that: no note on pagination, message limits, or what the returned pinned messages contain, which for a list-retrieval tool is a real gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single, front-loaded sentence with zero filler. It is efficient, though its brevity borders on under-specification rather than ideal conciseness.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a simple read-only single-parameter tool with full schema coverage, so minimal description is tolerable. Still, it omits any indication of return size or pagination behavior, leaving the agent slightly under-informed compared to a sibling-aware definition.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and there is only one parameter (chat_id), which the schema documents. The description adds no format or ID-semantics detail beyond the schema, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ('Get') and resource ('pinned messages') scoped to 'a Telegram chat', so the agent knows exactly what it retrieves. It does not distinguish itself from siblings like get_messages or search_messages, so it stops short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to use this versus get_messages, get_messages_by_date, or search_messages. The purpose is implied by the name, but no conditions or alternatives are stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_topicsC
Read-only

Get topics (forum threads) from a Telegram chat

NameRequiredDescriptionDefault
chat_idYesChat ID to get topics from

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The readOnlyHint annotation already tells the agent this is a safe read. The description adds no behavioral context such as pagination, ordering, failure on non-forum chats, or what is returned; it only restates the resource. With annotations covering safety, this is thin but not contradictory.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with no filler. Appropriately sized for a one-parameter read tool, though it is arguably too sparse to be maximally useful.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple one-param read with annotations and no output schema, the definition is minimally adequate but omits return shape, ordering, and the fact that it only applies to forum chats.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the single chat_id parameter is fully described there, so the description adds nothing beyond the schema. Baseline 3 applies when the schema carries parameter semantics.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource ('Get topics') and disambiguates the term by equating topics with 'forum threads' in a Telegram chat. It is clear, though it does not explicitly distinguish itself from siblings like get_messages or get_pinned_messages beyond the resource noun.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to use this tool versus get_messages or the other retrieval siblings. The only implied condition is that topics exist in forum chats, which is never stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

list_chatsA
Read-only

List archived Telegram chats, most recent first. Use this first: each chat's ref is the chat_id the other tools take. Each row also carries id (the numeric Telegram chat id), type, accounts (the archive account ids holding the chat), and its title or name. The answer is {chats, total, limit, offset, has_more}; page with offset while has_more is true.

NameRequiredDescriptionDefault
limitNoMaximum chats to return (default 100, max 500)
offsetNoNumber of chats to skip (default 0)

TDQS

A4.7/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only declare readOnlyHint, so the description carries the rest of the burden and does so well: it discloses ordering, the cross-tool contract (ref = chat_id), the fields on each row (id, type, accounts, title/name), and the exact response envelope plus the has_more-driven paging contract. With no output schema present, this is exactly the behavioral context an agent needs.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tightly packed sentences with no filler, front-loaded with purpose and the 'use this first' directive before the field list and the paging contract. Every clause carries information an agent would otherwise have to infer.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter, no-required-argument, read-only list tool with no output schema, the description supplies the return shape, the field meanings, the ordering guarantee, and the pagination termination rule. Nothing needed to call it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and both limit and offset are documented there, so the 3 baseline applies; the description adds value by tying offset to the has_more flag in the response envelope, giving the parameter an operational meaning the schema alone lacks. It does not restate or extend the limit/default/max semantics.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('List archived Telegram chats') plus the ordering ('most recent first'), and further positions itself against the sibling tools by explaining that each chat's ref is the chat_id the other tools accept. An agent can tell this is the entry-point enumeration tool without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'Use this first' gives an explicit usage directive relative to the other tools, and 'page with offset while has_more is true' supplies the continuation condition. It stops short of naming a specific alternative to use instead (e.g., list_folders or search_messages), so no exclusion criteria are stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

list_foldersA
Read-only

List all Telegram chat folders

NameRequiredDescriptionDefault

No parameters

TDQS

A4.2/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true, so the safety profile is covered. The description adds the key behavioral fact that this returns ALL folders with no filtering or parameters, which contextualizes why it's parameterless. Slight gap: no mention of ordering or whether archived folders are included.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Single front-loaded sentence with no waste; every word earns its place. Ideal for a simple parameterless list tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a trivial zero-param read tool with annotations covering the safety profile, the description is nearly sufficient. However, it does not clarify return shape (e.g., array of folder names) or whether it includes default/all chats folder, leaving a minor gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Tool takes zero parameters, so the baseline is 4. The description correctly communicates the no-argument nature and implies a complete listing, which matches the empty schema. No additional parameter detail is possible or needed.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb 'List' and resource 'Telegram chat folders'. Distinguished from siblings like list_chats (lists chats, not folders) and get_messages (retrieves messages). No ambiguity for an agent.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No explicit when-to-use or when-not-to-use guidance, though the scope ('folders') implies it's the tool for enumerating chat folders. Sibling tool list_chats makes the distinction clear enough, but the description does not state it.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

refresh_statsA
Idempotent

Force recalculation of global telegram-archive statistics

NameRequiredDescriptionDefault

No parameters

TDQS

A3.5/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations declare idempotentHint=true and destructiveHint=false, so safety is already covered. The description adds the useful scope qualifier 'global' (all chats, not one) and the forced/override nature of the operation, but says nothing about cost, duration, or whether it blocks — relevant for a recalculation job.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with no filler; the verb and scope arrive immediately.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a parameterless, output-schema-less maintenance tool with annotations covering idempotency and safety, the description conveys enough to call it correctly. Minor gap: no indication of whether it is expensive or long-running.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool takes zero parameters, so there is nothing for the description to clarify beyond what the empty schema already conveys. Baseline 4 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ('Force recalculation') and resource ('global telegram-archive statistics'), which is distinguishable from sibling get_chat_stats (read-only stats retrieval). It does not explicitly name that sibling, so it falls just short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to use this versus get_chat_stats, or when recalculation is warranted (e.g. stale data). The 'Force' wording hints at an override of cached values, but usage conditions are left entirely to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

search_messagesC
Read-only

Search messages in a Telegram chat by keyword

NameRequiredDescriptionDefault
limitNoMaximum results to return (default 20)
queryYesSearch query string
chat_idYesChat ID to search in

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

readOnlyHint=true already tells the agent this is a safe read, so the safety profile is covered. The description adds nothing further: no result ordering, no pagination behavior, no note on whether search is case-insensitive or spans the full chat history.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with no filler; the resource and scoping constraint come first. It is efficient, though bordering on under-specified rather than genuinely concise.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 3-parameter read-only search with full schema coverage and no output schema, the description is minimally viable but does not clarify retrieval scope versus sibling list tools. An agent could call it correctly, but with little confidence about when it beats the alternatives.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so all three parameters (chat_id, query, limit) are already documented in the schema. The description only echoes 'keyword' for query and adds no syntax, matching, or formatting detail beyond the structured fields.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (search), resource (messages), scope (a Telegram chat) and mechanism (by keyword), which implicitly separates it from siblings like get_messages and get_messages_by_date. It does not name an alternative explicitly, so it falls short of the top mark.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to choose keyword search over get_messages, get_messages_by_date, or get_pinned_messages, all of which occupy adjacent retrieval roles. The agent must infer the selection rule from names alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 2 tool updatesv0.3.0
    • Addedget_media
    • Changedlist_chats2 fields changed
      • changedInput schema / properties / limit / description
        Previous value: -"Maximum chats to return (default 100)"New value: +"Maximum chats to return (default 100, max 500)"
      • addedInput schema / properties / offset
        Added value: +{
        +  "description": "Number of chats to skip (default 0)",
        +  "type": "number"
        +}
  2. 4 tool updatesv0.1.3
    • Changedget_messages5 fields changed
      • addedInput schema / properties / after_id
        Added value: +{
        +  "description": "Returns messages with an id greater than this one (newer).",
        +  "type": "number"
        +}
      • addedInput schema / properties / before_date
        Added value: +{
        +  "description": "Keyset cursor: ISO 8601 date-time, naive values are UTC (e.g. 2026-06-10T18:04:17). Returns messages older than this instant; pair with before_id.",
        +  "type": "string"
        +}
      • addedInput schema / properties / before_id
        Added value: +{
        +  "description": "Keyset cursor: message id. Returns messages with a smaller id; pair with before_date.",
        +  "type": "number"
        +}
      • changedInput schema / properties / limit / description
        Previous value: -"Maximum messages to return (default 50)"New value: +"Maximum messages to return (default 50, max 500)"
      • changedInput schema / properties / offset / description
        Previous value: -"Pagination offset (default 0)"New value: +"Pagination offset (default 0). Ignored when a cursor is given."
    • Changedget_messages_by_date2 fields changed
      • addedInput schema / properties / limit
        Added value: +{
        +  "description": "Maximum messages to return (default 1000, max 5000). When the day has more, the newest are dropped and truncated is true.",
        +  "type": "number"
        +}
      • changedInput schema / properties / timezone / description
        Previous value: -"IANA timezone (e.g. Europe/Madrid). Optional."New value: +"IANA timezone the date is expressed in (e.g. Europe/Madrid). Default UTC."
    • Addedlist_chats
    • Addedlist_folders
  3. 7 tool updatesv0.1.0
    • First observedget_chat_stats
    • First observedget_messages
    • First observedget_messages_by_date
    • First observedget_pinned_messages
    • First observedget_topics
    • First observedrefresh_stats
    • First observedsearch_messages

TDQS

A3.7/5.0

Scored across 10 tools

Disambiguation4/5

Most tools target clearly distinct things (list_chats, get_media, get_topics, list_folders, search_messages). The trio get_messages, get_messages_by_date, and search_messages overlap in returning message lists, but descriptions distinguish them via pagination/cursor, day-scoping, and keyword semantics. get_chat_stats vs refresh_stats is also distinguishable (per-chat read vs global recompute).

Naming Consistency5/5

Every tool follows a consistent snake_case verb_noun pattern (get_, list_, search_, refresh_). The verb choice matches the operation type throughout, with no style mixing.

Tool Count5/5

Ten tools is well-scoped for a read/archive server covering chats, messages, media, topics, folders, and stats. Each tool earns its place with no obvious padding.

Completeness4/5

The surface covers the main read lifecycle for a Telegram archive: chats, paginated and date-scoped messages, search, media, pinned messages, topics, folders, and stats. Minor gaps like fetching a single message by id or listing archive accounts exist, but agents can work around them via get_messages.

Maintenance

ActivityActive
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    B
    maintenance
    An MCP server that connects to a Telegram group chat, persists messages to a local SQLite database, and exposes tools to search, retrieve, and send messages via SSE.
    -
  • A
    license
    Not graded
    quality
    D
    maintenance
    An MCP server that connects to Telegram as your real user account and exposes read-only tools to read and search messages, list chats and folders, inspect group info, and download media.
    16 npm
    MIT
  • A
    license
    A
    quality
    A
    maintenance
    MCP server that acts as a gateway to Telegram, providing AI-optimized tools for messaging, search, and chat management via MTProto. Supports multi-user authentication with QR login and HTTP/stdio transports.
    8
    2
    MIT
  • A
    license
    A
    quality
    B
    maintenance
    An MCP server that gives AI agents full access to a personal Telegram account via MTProto, enabling chat reading, history search, messaging, media handling, and automations.
    79
    MIT