# Telegram-mcp [Health: Active]

**Category:** 💬 Communication  
**Repository:** https://github.com/KiaroSama/Telegram-mcp  
**GitHub Stars:** 32  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/telegram-mcp-3

## Description
Native Rust MCP server for real Telegram accounts via grammers (layer 233): 352 tools for chats, messages, media, folders, admin rights, communities and Mini Apps, with multi-account routing and approval safeguards.

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/KiaroSama/Telegram-mcp), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
cargo build --locked --release --bin telegram-mcp --bin emoji-studio --bin operator-plugin
```

2. Sign in:

```sh
telegram-mcp --config .env login --account default
```

3. Start the server:

```sh
pwsh -NoProfile -File .\start-mcp.ps1
```

4. Configure:

```sh
pwsh -NoProfile -File .\Manage-Accounts.ps1
```

5. Start the server:

```sh
telegram-mcp --config .env serve --http 127.0.0.1:8765
```

6. Install:

```sh
docker build --tag telegram-mcp:local .
```

## Documentation

## 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.

_Full upstream README: https://allmcps.com/mcp/telegram-mcp-3/readme_

