TelegramSAFE
Powerfull Telegram MCP for Claude Desktop to scrape and analyze Telegram content.
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
A powerful MCP (Model Context Protocol) server that enables Claude to interact with Telegram channels and groups. This server provides both web scraping and direct API access to Telegram content.
🚀 Features
Version 0.3.0 - Dual Mode Operation
API Mode (Recommended) ⚡
- 100x faster than web scraping
- Direct access via Telegram's MTProto protocol
- Search functionality within channels
- Access to private channels you're a member of
- Complete message metadata (views, reactions, forwards)
- Persistent sessions - authenticate once
- No browser automation needed
- Unlimited post retrieval by default
Web Scraping Mode 🌐
- No API credentials required
- Browser-based scraping with Puppeteer
- Authentication support for restricted content
- Visual media extraction
- Suitable for quick, anonymous access
📋 Prerequisites
- Node.js 18.0.0 or higher
- Chrome/Chromium (for web scraping mode)
- Telegram API credentials (for API mode) - Get them here
🛠️ Installation
- Clone this repository:
git clone https://github.com/DLHellMe/telegram-mcp-server.git cd telegram-mcp-server
- Install dependencies:
npm install
- Copy the example environment file:
cp .env.example .env
- Edit
.envand add your configuration: - For API mode: Add your
TELEGRAM_API_IDandTELEGRAM_API_HASH - For web scraping: Default settings work out of the box
- Build the project:
npm run build
🔧 Configuration
Getting Telegram API Credentials
- Go to https://my.telegram.org
- Log in with your phone number
- Click "API development tools"
- Create a new application
- Copy your
api_idandapi_hashto the.envfile
Claude Desktop Configuration
Add this to your Claude Desktop config file:
Windows: %APPDATA%\Claude\claude_desktop_config.json macOS: `~/Library/Application Support/Claude/claudedesktopcon
6d17c7d47a80OBSERVED · 2026-10-08Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.
claude mcp add telegram-mcp-server -- npx -y [email protected]
{
"mcpServers": {
"telegram-mcp-server": {
"command": "npx",
"args": [
"-y",
"[email protected]"
]
}
}
}Exposed tools (16)
14 read · 1 write · 1 destructive. Blast radius: 1 tool can delete or overwrite — an agent that can be talked into calling a tool can be talked into calling this one.
| Tool | Risk | Description |
|---|---|---|
api_get_channel_info | read | Get detailed information about a Telegram channel using the API |
api_logout | read | Disconnect from Telegram API |
api_scrape_channel | read | Scrape a Telegram channel using the API (fast and efficient) |
api_search_channel | read | Search for messages within a Telegram channel |
get_channel_info | read | Get only the channel/group information without scraping posts. Uses authenticated session if logged in. |
scrape_channel | read | Scrape a Telegram channel and return posts in markdown format. Uses authenticated session if logged in. |
scrape_channel_authenticated | read | Scrape a Telegram channel using authenticated session (can access restricted content) |
scrape_channel_full | write | Scrape ALL posts from a Telegram channel and save to file. Uses authenticated session if logged in. Returns file location. |
scrape_date_range | read | Scrape posts within a specific date range. Uses authenticated session if logged in. |
scrape_group | read | Scrape a Telegram group and return posts in markdown format. Uses authenticated session if logged in. |
scrape_manual | read | Manual scraping mode: Opens browser for you to login and navigate to any channel, then scrapes it |
telegram_api_login | read | Login to Telegram using API credentials for fast, efficient scraping |
telegram_auth_status | read | Check if authenticated with Telegram |
telegram_login | read | Authenticate with Telegram Web to access restricted content |
telegram_logout | destructive | Clear Telegram authentication cookies |
unknown | read |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | WARN |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- declared (1 observation(s))
- Network
- declared (2 observation(s))
- Shell
- none-observed
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (3)
telegram_logout
@modelcontextprotocol/sdk, cheerio, date-fns, dotenv, input, jsdom, node-fetch, puppeteer
- New `scrape_channel_authenticated` tool for scraping with full access
Gates applied: no_behavioural_pass.
6d17c7d47a80full audit observations/trust-audit/mcp-server/dlhellme__telegram-11.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-08 | 6d17c7d47a80 | SAFE | B | 89 | first audit |
Questions
What is the Telegram MCP server?
Powerfull Telegram MCP for Claude Desktop to scrape and analyze Telegram content.
What tools does Telegram expose?
16 in total: 14 read-only, 1 that write, and 1 that can delete or overwrite (telegram_logout). Every one is listed on this page with its risk.
Is Telegram safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B. Separately from the audit: 1 of its tools can destroy data, so scope the token you give it to what you actually need.
What credentials does Telegram need?
No credential environment variables were found in its source, so it appears to need none.
How does Telegram run?
It speaks stdio, so it runs as a local process your client starts. It is published on npm as telegram-mcp-server at 0.3.0.
How current is this page?
The grade is for one exact copy of the source (6d17c7d47a80), read on 2026-10-08. The repository is watched and re-audited when it changes.