Telegram MCP Readonly logo

Telegram MCP Readonly

Read Telegram chats, messages, profiles, and attachments through a read-only MCP interface.

Install Telegram MCP Readonly

Run the project’s own setup commands, in order.

Setup steps from the project

telegram-mcp-readonly installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    git clone https://github.com/mshykhov/telegram-mcp-readonly.git
    
  2. 2. Install
    cd telegram-mcp-readonly
    
  3. 3. Install
    uv sync --frozen
    
  4. 4. Sign in
    uv run python setup_readonly.py
    

Overview

telegram-mcp-readonly connects MCP clients to a Telegram account for searching chats, reading conversation history, inspecting profiles and topics, and downloading attachments. It supports local stdio for one client or a shared local HTTP service for multiple clients. Read-only controls prevent sending messages or modifying chats, while attachment downloads stay within one configured directory. Reach for it when an agent needs Telegram context without write access.

Use cases

  • Search Telegram history across chats
  • Review conversation topics and rich messages
  • Inspect Telegram profiles and custom emoji metadata
  • Download message attachments for local analysis
  • Share one read-only Telegram connection across local clients

Key features

  • Account-wide and chat message search
  • Folder-filtered Telegram searches
  • Read-only history, topics, and profiles
  • Confined attachment downloads
  • QR-based account setup
  • Stdio and shared local HTTP connections

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.

4/4 checks healthy over the last 14d

Adoption & maintenance

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

GitHub stars11Stargazers on the source repository.
Last commit6d agoMost recent push to the default branch.

How Telegram MCP Readonly works

What telegram-mcp-readonly does

telegram-mcp-readonly exposes Telegram account data through MCP without providing message-sending or chat-changing operations. It can search messages across chats, perform account-wide searches, and apply folder filters. Reading features cover conversation history, topics, rich message content, custom emoji metadata, and user profiles.

Attachments can also be downloaded for agent workflows such as reviewing shared files or collecting conversation evidence. Downloads are restricted to a single configured directory rather than being written to arbitrary locations.

The project is a read-only fork based on chigwell/telegram-mcp. Its strict tool boundary excludes new upstream tools until they have been reviewed. Voice transcription and its cache are disabled in strict mode, including automatic transcription during history reads.

How it works

The server uses a Telegram account authenticated with API credentials from my.telegram.org/apps. Initial setup uses a QR code scanned with Telegram. Read-only mode is enabled by default, and the generated session files allow the account connection to be reused.

MCP clients can start the server over stdio, which is intended for a single local client. A shared local HTTP service is also available when several clients need to use the same Telegram connection. The result handling includes sanitized output, and the project uses a private session setup with session locks.

Setup and configuration

The supported installation path requires Python 3.10 or newer, uv, a Telegram account, and Telegram API credentials. Clone the repository, enter its directory, and run:

sh
uv sync --frozen
uv run python setup_readonly.py

The setup script creates the required configuration and guides QR-based sign-in. Keep the generated .env file and Telegram session files private. Optional settings are described by the project’s .env.example, including proxy configuration, multiple accounts, event feeds, and device settings.

For a stdio client, register a server whose command is uv and whose arguments run telegram-mcp from the repository directory. The repository cautions that the similarly named telegram-mcp package on PyPI is a different project.

Tools and capabilities

  • Search messages across chats or across the account
  • Filter searches by Telegram folders
  • Read conversation history and topics
  • Inspect rich messages, profiles, and custom emoji metadata
  • Download attachments into the configured directory
  • Connect one client through stdio
  • Share a local service across multiple clients

The available operations are intentionally read-only: they do not send messages or modify chats. This makes the server suitable for retrieval and analysis tasks where agent write access to Telegram is undesirable.

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 Telegram MCP Readonly

telegram-mcp-readonly is an MCP server that connects AI clients to a Telegram account for read-only access. Its main capabilities include searching chats and messages, reading conversation history, topics, profiles, and rich message metadata, and downloading attachments to a configured directory without sending messages or changing chats.

Install it with Python 3.10+, uv, a Telegram account, and API credentials, then clone the repository and run `uv sync --frozen` followed by `uv run python setup_readonly.py`. The setup script creates configuration and uses a QR code for Telegram sign-in.

Yes, read-only mode is enabled by default and the tool boundary does not provide message-sending or chat-changing operations. It supports searching, reading Telegram data, and downloading attachments, with downloads restricted to one configured directory.

Connect it over stdio by configuring the client to run `uv` with the repository directory and `telegram-mcp` command. A shared local HTTP service is also available when multiple local clients need to use the same Telegram connection.

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 PreviewTelegram MCP Readonly AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/telegram-mcp-readonly?style=directory)](https://allmcps.com/mcp/telegram-mcp-readonly)
HTML Embed
<a href="https://allmcps.com/mcp/telegram-mcp-readonly"><img src="https://allmcps.com/api/badge/telegram-mcp-readonly?style=directory" alt="Telegram MCP Readonly on AllMCPs" /></a>