Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from bundle
Telegram MTProto MCP server with userbot watcher, chat/DM parser and context builders
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
SKILL.md
1---2name: telegram-mcp3description: "Telegram MTProto MCP server with userbot watcher, chat/DM parser, context builders, criminal analysis and personality profiling. Use for reading Telegram messages, parsing chat history, criminal analysis, and psychological profiles."4---56# Telegram MCP — Watcher, Parser & Analysis78Full-featured Telegram MTProto MCP server. Connects to Telegram as a userbot and exposes message reading, sending, and parsing as MCP tools.910## Features1112- **Userbot watcher** — monitors all messages, triggers AI agent on keyword13- **Chat/DM parser** — paginated parsing of any chat or DM via `parse_chat.py`14- **Context builders** — stats, top words, LLM summaries, people profiles15- **Criminal analysis** — detects CSAM, fraud, NCA violations, hate speech16- **Personality profiling** — psychological portrait from message history1718## Setup1920```bash21cp .env.example .env22# Fill in API_ID, API_HASH, SESSION_NAME, OWNER_ID from https://my.telegram.org/apps23pip install -r requirements.txt24python3 session_string_generator.py # authorize session once25```2627## Run watcher as systemd service2829```bash30sudo cp tg-watcher.service /etc/systemd/system/31sudo systemctl enable --now tg-watcher32```3334## MCP Tools (via mcporter)3536- `send_message` — send message to chat37- `reply_to_message` — reply to specific message38- `iter_all_messages` — paginated message fetch39- `iter_messages_by_user` — messages from specific user40- and 90+ more Telegram API methods4142## Important notes4344See `CLAUDE.md` for full list of gotchas. Key ones:45- Use `\n` not `<br>` in HTML messages46- `iter_all_messages` for DMs, not `list_messages`47- Semaphore required for parallel agent calls4849## Source5051GitHub: https://github.com/SkrudjReal/telegram-mcp52