Telegram MCP logo

Telegram MCP

Native Rust MCP access to Telegram accounts for chats, messages, media, groups, channels, secret chats, and account administration.

Install Telegram MCP

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

Setup steps from the project

Telegram-mcp 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
    cargo build --locked --release --bin telegram-mcp --bin emoji-studio --bin operator-plugin
    
  2. 2. Sign in
    telegram-mcp --config .env login --account default
    
  3. 3. Start the server
    pwsh -NoProfile -File .\start-mcp.ps1
    
  4. 4. Configure
    pwsh -NoProfile -File .\Manage-Accounts.ps1
    
  5. 5. Start the server
    telegram-mcp --config .env serve --http 127.0.0.1:8765
    
  6. 6. Install
    docker build --tag telegram-mcp:local .
    

Overview

Telegram-mcp MCP server connects MCP clients to real Telegram accounts through the MTProto API using the native Rust grammers library. It exposes 386 tools for reading and searching chats, sending messages, handling media, managing communities, using Mini Apps, and working with secret chats. Multiple accounts can be configured and routed, with exposure filters and terminal approval prompts for sensitive operations. Reach for it when an agent needs to operate Telegram within the permissions of an authenticated user account.

Use cases

  • Search Telegram conversations and retrieve relevant messages
  • Send messages and manage media from an authorized account
  • Administer groups, channels, folders, and community settings
  • Operate multiple Telegram accounts through one MCP service
  • Use secret-chat tools from an MCP-compatible agent

Key features

  • 386 native MCP tools
  • Multi-account routing
  • Native MTProto 2.0 secret chats
  • Configurable tool exposure filters
  • stdio, HTTP, and stdio-bridge operation
  • Terminal approval safeguards

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.

Adoption & maintenance

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

GitHub stars32Stargazers on the source repository.
Last commit1d agoMost recent push to the default branch.

How Telegram MCP works

What Telegram-mcp does

Telegram-mcp gives an MCP client access to a user’s Telegram account rather than a bot-only interface. It can read and search conversations, send messages, process media, manage groups and channels, work with folders and administrative rights, and interact with communities and Mini Apps. The available actions remain subject to Telegram permissions, Premium requirements, and server-side limits.

The release contains 386 native MCP tools: 352 ordinary tools, including audio transcription, plus 34 tools for native secret chats. Secret-chat support uses MTProto 2.0 and operates over the same account connection as regular chats. Tool exposure can be filtered so a client receives only selected command groups.

How it works

The server is implemented in Rust and communicates with Telegram through grammers on Telegram API layer 233. MCP traffic uses standard input and output by default, allowing the executable to be launched by an MCP client. A shared authenticated HTTP service is also available, with a stdio bridge for clients that need local process communication.

Authentication is performed through Telegram application credentials and an interactive account login. Login codes and two-factor passwords are entered in the terminal. Account sessions and other private state are stored locally. Multiple accounts can be registered and selected through the account-management commands.

Secret-chat updates are committed to durable storage before they are acknowledged. When a supported legacy secret-chat store is found, the server creates a read-only backup and migrates it before connecting.

Setup and configuration

Prebuilt archives are available for Windows and Linux, including x64 and arm64 builds. Building from source requires Rust 1.100.0, a native linker, and platform development tools. The project does not require Python or a virtual environment.

Set TELEGRAM_API_ID and TELEGRAM_API_HASH in a private .env file using credentials created at Telegram’s application portal. Run the login command for each account, then start the server with the serve command. The MCP client configuration must use the executable’s absolute path and pass the configuration file path.

For a shared service, set TELEGRAM_HTTP_TOKEN and bind the server to an address and port. HTTP clients connect to /mcp with a bearer token. Non-loopback listeners require TLS certificate and key settings, and the token must contain at least 32 characters. Private state, temporary files, and cache data can be redirected with the documented directory variables.

Tools and capabilities

  • Search and retrieve chats and messages.
  • Send messages and handle media.
  • Manage groups, channels, folders, and administrative rights.
  • Access communities and Mini Apps.
  • Transcribe audio with the standalone transcription tool.
  • Use native MTProto 2.0 secret-chat operations.
  • Route operations across multiple authorized accounts.
  • Restrict exposed tools and require terminal approval for selected actions.

Limitations and notes

Telegram permissions and account-specific requirements still apply. Reading content and marking it as read are separate actions. File operations remain within configured file roots, and some returned integers are represented as decimal strings to avoid precision loss in JavaScript. Message entity offsets use UTF-16.

The server reserves standard output for MCP messages. Diagnostics can be written to the private state directory or redirected to standard error, and logs exclude raw tool arguments, message text, authorization keys, and login codes. Keep environment files, session files, tokens, and private state protected.

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

Telegram-mcp is an MCP server that connects AI clients to real Telegram user accounts through Telegram’s MTProto API. Its main tools cover chats, messages, media, groups, channels, account administration, Mini Apps, and native secret chats, with support for multiple accounts and configurable tool exposure.

Install a Windows or Linux archive from the project’s GitHub releases, or build it with Rust and a native linker. Set TELEGRAM_API_ID and TELEGRAM_API_HASH in a private .env file, run the account login command, then configure your MCP client to launch the telegram-mcp executable with the serve command.

Connect it as a standard stdio server by configuring the absolute path to telegram-mcp and passing --config followed by the .env path and serve. For a shared service, start the HTTP listener with TELEGRAM_HTTP_TOKEN and point HTTP clients to the /mcp endpoint with a bearer token.

Yes, Telegram-mcp supports multiple authorized accounts and account routing. Log in each account with a distinct account name, then use the account-management tools and list_accounts to verify which accounts are available to the connected MCP client.

Yes, it includes 34 native secret-chat tools using MTProto 2.0 through the kiaro-secret-chat component. Secret chats use the same account connection as ordinary chats, follow the server’s exposure filters and safeguards, and support migration from supported legacy stores.

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