@theyahia/tgstat-mcp
This server provides tools for analyzing Telegram channels and posts via the TGStat API. Here's what you can do:
Search Telegram channels — Find channels by keyword with optional filters for category, language, and country
Get channel info — Retrieve a channel's profile data including subscriber count, average views, and engagement rate (ERR)
Get channel posts — Fetch recent posts from a channel with view metrics, supporting pagination
Get post details — Access detailed info on a specific post including views, reposts, and reactions
Get channel statistics — View subscriber growth trends and view dynamics over time
Search posts — Full-text search across posts with filters for date range and specific channels
Get channel mentions — Discover where a channel is being mentioned or reposted by other channels and chats
Compare channels — Side-by-side comparison of 2–10 channels by subscribers, reach, and engagement rate
Provides access to TGStat API for Telegram channel analytics, including search, channel information, posts, statistics, mentions, and comparison.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@@theyahia/tgstat-mcp compare Telegram channels @rbc_news and @kommersant"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP-сервер для TGStat — аналитика Telegram-каналов через ИИ
🌍 Часть WWmcp — коллекции из 46 MCP-серверов для развивающихся рынков (Россия, СНГ, MENA, Gulf, SE Asia, Africa). Единственная коллекция MCP, покрывающая не-западные API.
Если вы искали, как выгрузить статистику Telegram-канала не копируя её руками из TGStat, сравнить каналы перед закупкой рекламы или отследить упоминания бренда — это оно. 20 инструментов: поиск каналов и постов, динамика подписчиков и охватов, ERR, упоминания, тренды ключевых слов, сравнение каналов. Спрашиваете «сравни эти три канала по ERR за месяц» — получаете таблицу, а не десять вкладок.
Установка
1. Получите токен
TGSTAT_TOKEN — API-ключ TGStat. Зарегистрируйтесь и получите токен на api.tgstat.ru (нужен доступ к Stat API и/или Search API — разные инструменты требуют разных пакетов). Текущую квоту и срок пакета смотрите инструментом get_usage.
2. Подключите сервер
Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"tgstat": {
"command": "npx",
"args": ["-y", "@theyahia/tgstat-mcp"],
"env": {
"TGSTAT_TOKEN": "ваш_токен"
}
}
}
}Claude Code:
claude mcp add tgstat -e TGSTAT_TOKEN=ваш_токен -- npx -y @theyahia/tgstat-mcpRelated MCP server: lolzteam-mcp
Инструменты (20)
Каналы
Инструмент | Описание |
| Поиск каналов по запросу с фильтрами категории / языка / страны / типа |
| Профиль канала: подписчики, категория, индекс цитирования (ci_index), отметка РКН |
| Статистика: средний охват поста, ERR%, дневной охват |
| Где канал упоминают / репостят другие каналы и чаты |
| Сравнение каналов (2–10) по подписчикам, охвату и ERR — таблицей |
Посты
Инструмент | Описание |
| Последние посты канала с просмотрами; фильтр по датам и пагинация |
| Детали поста: просмотры, репосты, реакции, текст |
| Полнотекстовый поиск постов с фильтрами типа / категории / языка / страны / дат |
| Динамика вовлечённости поста во времени |
Метрики (динамика во времени)
Инструмент | Описание |
| История числа подписчиков (group: hour/day/week/month) |
| История суммарных просмотров постов |
| История среднего охвата поста |
| История ERR (engagement rate by reach) |
| Посты других каналов, репостнувшие контент канала |
Ключевые слова
Инструмент | Описание |
| Динамика упоминаний слова/фразы по периодам (упоминания + просмотры) |
| Разбивка упоминаний слова по каналам |
Справочники
Инструмент | Описание |
| Коды категорий каналов (для фильтра |
| Коды стран (для фильтра |
| Коды языков (для фильтра |
Использование
Инструмент | Описание |
| Квота и лимиты API: израсходовано запросов / каналов / слов, срок пакета |
Формат вывода
Ответы курируются: возвращаются только релевантные поля (подписчики, охваты, ERR, текст-сниппет, ссылки), даты — в ISO. Это экономит токены контекста и упрощает ответы модели. Даты в фильтрах указываются как YYYY-MM-DD и автоматически конвертируются в Unix-таймстемпы, которых требует API.
Примеры запросов
Найди Telegram-каналы про маркетинг на русском
Какая статистика у @durov — подписчики, средний охват, ERR?
Покажи рост подписчиков @vc_ru по неделям за последние 3 месяца
Сравни каналы @rbc_news, @kommersant и @vedomosti по охвату и ERR
Найди посты про AI за январь 2026
Построй динамику упоминаний слова «нейросети» по месяцам
Кто упоминает канал @thebell_io?
Сколько у меня осталось запросов в TGStat API?WWmcp — связки с соседними серверами
TGStat закрывает аналитику; соседние серверы из WWmcp — действие:
vk-ads-mcp— рекламные кампании VK Adssendpulse-mcp·unisender-mcp— email-рассылки
Пример сценария: «Найди топ финтех-каналы в Telegram (tgstat), оцени их ERR, выбери три с лучшим охватом и подготовь email-анонс через unisender».
Разработка
npm install
npm run build # компиляция в dist/
npm run typecheck # проверка типов, включая тесты
npm test # vitest⭐ Поддержать
Если сервер полезен — поставьте звезду этому репозиторию и WWmcp. Это помогает другим найти коллекцию серверов для не-западных API.
Лицензия
MIT
Available Tools
20 toolscompare_channelsA
Compare several channels side by side on subscribers, average reach and ERR (one channels/stat lookup per channel).
Inputs: channel_ids (required).
get_channelA
Get a Telegram channel's profile: subscribers, category, citation index (ci_index), RKN verification. For reach/ERR use get_channel_stats.
Inputs: channel_id (required).
get_channel_avg_reachB
Average post-reach history of a channel over time.
Inputs: channel_id (required), group, end_date, start_date.
get_channel_errB
ERR (engagement rate by reach) history of a channel over time.
Inputs: channel_id (required), group, end_date, start_date.
get_channel_forwardsC
Posts from other channels that forwarded this channel's content.
Inputs: channel_id (required), limit, end_date, start_date.
get_channel_mentionsC
Find where a channel is mentioned or forwarded by other channels and chats.
Inputs: channel_id (required), limit.
get_channel_postsA
Get recent posts of a channel with view metrics. Supports an optional date range and pagination.
Inputs: channel_id (required), limit, offset, end_date, +3 more.
get_channel_statsA
Get a channel's statistics: average post reach, ERR%, daily reach, citation index.
Inputs: channel_id (required).
get_channel_subscribersB
Subscriber-count history of a channel over time.
Inputs: channel_id (required), group, end_date, start_date.
get_channel_viewsC
Total post-views history of a channel over time.
Inputs: channel_id (required), group, end_date, start_date.
get_postA
Get details of a single post: views, forwards, reactions, text.
Inputs: post_id (required).
get_post_statsA
Get a post's engagement dynamics: views, forwards and reactions over time.
Inputs: post_id (required).
get_usageA
Show your TGStat API usage and quota: requests / channels / words spent vs allowed, and package expiry.
Inputs: no named parameters.
get_word_mentionsA
Track how often a keyword is mentioned across Telegram over time (mentions + views per period).
Inputs: query (required), group, end_date, peer_type, +4 more.
get_word_mentions_by_channelsB
Break down keyword mentions by the channels that mention it most (channel + mention/view counts).
Inputs: query (required), limit, end_date, peer_type, +4 more.
list_categoriesA
List available channel category codes (use as the category filter in search).
Inputs: lang.
list_countriesA
List available country codes (use as the country filter in search).
Inputs: lang.
list_languagesA
List available language codes (use as the language filter in search).
Inputs: lang.
search_channelsB
Search Telegram channels by query, with optional category / language / country / type filters. Returns curated channel cards.
Inputs: query (required), limit, country, category, +3 more.
search_postsB
Full-text search across Telegram posts, with optional source-type / category / language / country / date filters.
Inputs: query (required), limit, country, date_to, +7 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 20 tools
Most tools target a distinct resource and metric, such as current channel profile, historical subscribers, views, reach, or ERR. However, get_channel_mentions and get_channel_forwards both cover forwarding behavior, and get_channel_stats overlaps somewhat with the individual metric history tools.
Tool names follow a clear and predictable pattern: get_<resource>_<detail>, search_<resource>, list_<enum>, and compare_channels. Resources are consistently singular or plural as appropriate, and all verbs are consistent and readable.
Twenty tools is on the heavier side but still justified for a Telegram analytics server that covers channels, posts, keyword mentions, reference lists, and usage. The count is slightly high but not bloated; each tool serves a distinct analytics need.
The server covers the core TGStat analytics workflows: channel search and profiles, current and historical stats, post search and details, post engagement, keyword mentions, reference data, and quota usage. For a read-only analytics API, the surface is comprehensive and leaves no critical dead ends.
Maintenance
Related MCP Connectors
Telegram channel messages, Discord server stats, Twitch, Kick, Medium & Pinterest scraper MCP API.
Telegram channel messages, Discord server stats, Twitch, Kick, Medium & Pinterest scraper MCP API.
Search and compare 69,000+ MCP servers and get their setup details. Read-only, no sign-in.
Unofficial Telegram MCP server — read, search, reply and react in your own Telegram account.
Related MCP Servers
- AlicenseAqualityDmaintenanceA comprehensive MCP server providing 35 tools for managing Telegram messages, media, and chat interactions via the Bot API. It also features a real-time monitoring system using the Telethon User API to log messages from specific channels.35Apache 2.0
- AlicenseNot gradedqualityCmaintenanceMCP server providing access to Lolzteam Market and Forum APIs with 271 tools for account trading, forum interactions, and more.5MIT
- AlicenseCqualityDmaintenanceMCP server for Keys.so SEO API, enabling domain and keyword analysis, competitor research, and SEO metrics retrieval through natural language.1514ISC
- FlicenseAqualityDmaintenanceMCP server for publishing posts and retrieving metrics on social platforms like Telegram, with planned support for YouTube and Instagram.3-