Atlas / MCP servers / dlhellme / Telegram

TelegramSAFE

mcp/dlhellme/telegram-11

Powerfull Telegram MCP for Claude Desktop to scrape and analyze Telegram content.

Verdict
SAFE
Grade
B
Trust score
89 /100
Exposed tools
16 14r · 1w · 1d
Transport
stdio
License
MIT
Stars
32
01

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

  1. Clone this repository:
git clone https://github.com/DLHellMe/telegram-mcp-server.git
cd telegram-mcp-server
  1. Install dependencies:
npm install
  1. Copy the example environment file:
cp .env.example .env
  1. Edit .env and add your configuration:
  2. For API mode: Add your TELEGRAM_API_ID and TELEGRAM_API_HASH
  3. For web scraping: Default settings work out of the box
  1. Build the project:
npm run build

🔧 Configuration

Getting Telegram API Credentials

  1. Go to https://my.telegram.org
  2. Log in with your phone number
  3. Click "API development tools"
  4. Create a new application
  5. Copy your api_id and api_hash to the .env file

Claude Desktop Configuration

Add this to your Claude Desktop config file:

Windows: %APPDATA%\Claude\claude_desktop_config.json macOS: `~/Library/Application Support/Claude/claudedesktopcon

Read from source at commit 6d17c7d47a80OBSERVED · 2026-10-08
02

Connect

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-code
claude mcp add telegram-mcp-server -- npx -y [email protected]
claude-desktop
{
  "mcpServers": {
    "telegram-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ]
    }
  }
}
03

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.

ToolRiskDescription
api_get_channel_inforeadGet detailed information about a Telegram channel using the API
api_logoutreadDisconnect from Telegram API
api_scrape_channelreadScrape a Telegram channel using the API (fast and efficient)
api_search_channelreadSearch for messages within a Telegram channel
get_channel_inforeadGet only the channel/group information without scraping posts. Uses authenticated session if logged in.
scrape_channelreadScrape a Telegram channel and return posts in markdown format. Uses authenticated session if logged in.
scrape_channel_authenticatedreadScrape a Telegram channel using authenticated session (can access restricted content)
scrape_channel_fullwriteScrape ALL posts from a Telegram channel and save to file. Uses authenticated session if logged in. Returns file location.
scrape_date_rangereadScrape posts within a specific date range. Uses authenticated session if logged in.
scrape_groupreadScrape a Telegram group and return posts in markdown format. Uses authenticated session if logged in.
scrape_manualreadManual scraping mode: Opens browser for you to login and navigate to any channel, then scrapes it
telegram_api_loginreadLogin to Telegram using API credentials for fast, efficient scraping
telegram_auth_statusreadCheck if authenticated with Telegram
telegram_loginreadAuthenticate with Telegram Web to access restricted content
telegram_logoutdestructiveClear Telegram authentication cookies
unknownread
04

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.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codePASS
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfaceWARN
L4Behavioural (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)

MEDIUMFilesystem / path · mcp.destructive_tools · CWE-22, CWE-59
telegram_logout
Why it matters. 1 tool(s) can delete or overwrite
Fix. prefer a read-only mode or scoped tokens; the page states the blast radius
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
package.json
@modelcontextprotocol/sdk, cheerio, date-fns, dotenv, input, jsdom, node-fetch, puppeteer
Why it matters. 12 dependency range(s) float
Fix. pin exact versions or ship a lockfile
LOWPrompt injection · prompt.authority_framing · CWE-94, CWE-1427
CHANGELOG.md:43
- New `scrape_channel_authenticated` tool for scraping with full access

Gates applied: no_behavioural_pass.

Audited 2026-10-08 · audit v0.4.1 · source sha 6d17c7d47a80full audit observations/trust-audit/mcp-server/dlhellme__telegram-11.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-10-086d17c7d47a80SAFEB89first audit
06

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.

Advertisement