Tgstat MCP logo

Tgstat MCP

by @theyahia

Accesses TGStat through MCP to search Telegram content, inspect channel metrics, track trends, and compare channels.

Install Tgstat MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "theyahia-tgstat-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@theyahia/tgstat-mcp"
      ],
      "env": {
        "TGSTAT_TOKEN": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Automated check passed— started and listed 20 tools correctly ().

Overview

@theyahia/tgstat-mcp connects MCP-compatible AI clients to TGStat’s Telegram analytics APIs. Its 20 tools cover channel and post search, subscriber and reach history, ERR, mentions, keyword trends, reposts, comparisons, and API usage. Responses return selected fields such as views, subscribers, links, text snippets, and ISO-formatted dates. Reach for it when evaluating Telegram channels, researching posts, monitoring brand or keyword mentions, or turning TGStat data into comparisons and time-series reports.

Use cases

  • Find Telegram channels by topic, language, country, or category
  • Compare channels by subscribers, reach, and ERR
  • Track subscriber, view, reach, or ERR changes over time
  • Search posts and monitor keyword mentions
  • Check TGStat API quota and package usage

Key features

  • 20 TGStat analytics and search tools
  • Channel and post discovery with filters
  • Historical subscriber, reach, view, and ERR metrics
  • Keyword mention trends and channel breakdowns
  • Channel comparison for two to ten channels
  • Curated responses with ISO-formatted dates

Tools20

What Tgstat MCP lets your agent do. Expand a tool for its parameters.

Verified live~3.0k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

6/6 checks healthy over the last 24d

What it can do

From the 20 tools this server returned when we ran it.

Read-only tools · 20
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceNot published
Package age218 days
Maintainers1

Observed 2026-11-06 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 7d ago via OSV.dev · @theyahia/tgstat-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars4Stargazers on the source repository.
npm downloads70Package downloads in the last 30 days.
Last commit2mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed20Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Tgstat MCP works

What @theyahia/tgstat-mcp does

@theyahia/tgstat-mcp exposes TGStat’s Telegram channel analytics and search capabilities through the Model Context Protocol. It is designed for questions that would otherwise require manually browsing TGStat, such as finding Russian-language channels, checking a channel’s average reach and ERR, comparing several channels, or measuring how often a word appears across Telegram content.

The package provides 20 tools for channel discovery, post research, historical metrics, keyword analysis, reference data, and API quota inspection. Results are filtered to relevant fields rather than returning every API field. Typical returned data includes subscriber counts, views, reach, ERR, reposts, text snippets, links, and dates.

How it works

An MCP client starts the package with npx, and the server makes requests to TGStat using the configured API token. TGStat separates access between its Stat API and Search API, so the token’s enabled packages determine which groups of tools are available.

Date filters use YYYY-MM-DD values. The server converts those dates into the Unix timestamps expected by the TGStat API, while returned dates use ISO formatting. This keeps natural-language requests and tool responses easier for an AI client to handle.

Setup and configuration

Create a TGStat API token through the TGStat API website, with access to the Stat API, Search API, or both as required by the tools you plan to use. Set the token as TGSTAT_TOKEN in the MCP client configuration.

For Claude Desktop, add an MCP server entry that runs npx -y @theyahia/tgstat-mcp and passes TGSTAT_TOKEN through the entry’s environment. Claude Code can add the same command with:

Terminal
claude mcp add tgstat -e TGSTAT_TOKEN=your_token -- npx -y @theyahia/tgstat-mcp

The get_usage tool reports consumed requests, channel and word usage, quota limits, and the package expiration date.

Tools and capabilities

Channel tools support:

  • Searching by query with category, language, country, and type filters
  • Retrieving channel profiles, subscriber counts, categories, citation index, and RKN status
  • Inspecting average post reach, daily reach, and ERR
  • Finding channels and chats that mention or repost a channel
  • Comparing two to ten channels by subscribers, reach, and ERR

Post tools can list recent posts with date filters and pagination, retrieve individual post details, search post text with filters, and show engagement changes over time.

Historical metric tools track subscribers, total post views, average post reach, ERR, and forwards. Keyword tools show mention and view trends over time and break mentions down by channel. Directory tools list category, country, and language codes for filters.

Limitations and notes

Tool availability depends on the TGStat token’s Stat API and Search API access. Usage is also governed by the quota and limits attached to the TGStat package. The server provides analytics and search through TGStat; it does not itself perform Telegram advertising, publishing, or messaging actions.

The package is distributed under the MIT license. Its documented client setup uses Claude Desktop and Claude Code, with the server launched as a local npx process.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Tgstat MCP

@theyahia/tgstat-mcp is an MCP server that connects AI clients to TGStat’s Telegram analytics and search APIs. Its main tools find channels and posts, retrieve subscriber, reach, view, and ERR metrics, compare channels, track keyword mentions, inspect reposts, and report API usage and limits.

Install it by configuring your MCP client to run `npx -y @theyahia/tgstat-mcp`. Add a TGStat API token as the `TGSTAT_TOKEN` environment variable. Claude Code can register it with `claude mcp add`, while Claude Desktop uses an MCP server configuration entry.

Set `TGSTAT_TOKEN` to a TGStat API key. Obtain the token through the TGStat API service and enable the Stat API, Search API, or both according to the tools you need to use.

Yes, it works with Claude Desktop and Claude Code using the documented local `npx` command. Claude Desktop receives the token in its MCP configuration, while Claude Code passes it with the `-e TGSTAT_TOKEN=...` option.

It can retrieve subscribers, post views, average and daily reach, ERR, reposts, reactions, and engagement history. Channel profiles can also include category, citation index, and RKN status, while keyword tools return mention and view trends.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewTgstat MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/theyahia-tgstat-mcp?style=directory)](https://allmcps.com/mcp/theyahia-tgstat-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/theyahia-tgstat-mcp"><img src="https://allmcps.com/api/badge/theyahia-tgstat-mcp?style=directory" alt="Tgstat MCP on AllMCPs" /></a>