TG Analytics MCP

TG Analytics MCP

Enables LLM agents to analyze Telegram channels for ad purchasing, providing insights like reach, CPM, and verdicts via MCP tools.

Category
Visit Server

README

TG Analytics MCP — аналитика Telegram-каналов как инструмент для LLM-агента

MCP-сервер, который даёт Claude (Desktop / Code) и любому MCP-клиенту инструменты для оценки Telegram-каналов перед закупом рекламы. Агент сам вызывает их, когда ты просишь «проверь канал».

MCP (Model Context Protocol) — открытый стандарт, по которому LLM-агенты получают доступ к внешним инструментам. Здесь показано, как обернуть свою логику в MCP-tool.


Инструменты (MCP tools)

Tool Что делает
check_channel(channel, price?, max_cpm?) охват (медиана просмотров), %живого охвата, CPM, вердикт 🟢/🟡/🔴
compare_channels(channels[], price?) сравнить несколько каналов, отсортировать по охвату

Данные — с публичной страницы t.me/s/<канал>, без токенов.

Зачем это как MCP

Вместо отдельного приложения логика становится инструментом прямо в твоём AI-агенте: просишь Claude «сравни вот эти 3 канала под закуп за 5000» — он сам дёргает compare_channels и отвечает разбором. Это и есть «личные AI-агенты под свои задачи».

Запуск и подключение

python -m venv .venv && .venv\Scripts\activate
pip install -r requirements.txt

# 1) Отладка в MCP Inspector
mcp dev app/server.py

# 2) Установить в Claude Desktop одной командой
mcp install app/server.py --name tg-analytics

Либо вручную в claude_desktop_config.json:

{
  "mcpServers": {
    "tg-analytics": {
      "command": "python",
      "args": ["-m", "app.server"],
      "cwd": "/абсолютный/путь/к/03-tg-analytics-mcp"
    }
  }
}

Пример запроса к агенту (после подключения)

Ты: проверь @durov, цена поста 50000
Claude → вызывает check_channel → "🟢 брать: охват 47% от подписчиков, CPM 9 ₽"

Стек

Python · MCP Python SDK (FastMCP) · requests + selectolax (скрапинг)

Архитектура

LLM-агент (Claude) ⇄ [MCP server, stdio] ── tools ──► checker (scrape t.me/s/ → анализ → вердикт)

Ограничения

  • Публичный превью ТГ без лайков/комментов → главный сигнал это охват и %охвата.
  • Вердикт вероятностный, пороги калибруются.

Лицензия

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured