# chigwell/telegram-mcp [Health: Active]

**Category:** 💬 Communication  
**Repository:** https://github.com/chigwell/telegram-mcp  
**GitHub Stars:** 2086  
**Views:** 11  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/chigwell-telegram-mcp

## Description
Telegram API integration for accessing user data, managing dialogs (chats, channels, groups), retrieving messages, sending messages and handling read status.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "telegram-mcp": {
    "command": "uvx",
    "args": ["telegram-mcp"],
    "env": {
      "TELEGRAM_CONTACT_FUZZY": "",
      "TELEGRAM_ALIASES_FILE": ""
    }
  }
}
```

**Requires environment variables:** `TELEGRAM_CONTACT_FUZZY`, `TELEGRAM_ALIASES_FILE` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What chigwell/telegram-mcp MCP server does

chigwell/telegram-mcp exposes Telegram account and conversation operations through the Model Context Protocol. It is built with Telethon and is intended for MCP-compatible clients, including Claude and Cursor. The toolset spans account selection, chat and group management, message retrieval and editing, contact handling, media transfer, reactions, polls, and administrative actions.

The server also supports higher-level workflows. An agent can search chat history, inspect surrounding context, summarize unread messages, prepare replies, and then send or edit messages. Contact aliases let users refer to people with saved names, while chat access can be constrained with an allowlist.

## How it works

Configured accounts can be listed and selected by account label when a tool call needs a particular Telegram identity. Telegram operations are then issued through MCP tools backed by Telethon. The available operations include both reads and writes, so clients can retrieve data as well as send messages, change chat settings, manage participants, or interact with message controls.

Message tools support replies, scheduling, forwarding, deletion, pinning, read markers, polls, reactions, inline buttons, and message links. Messages can use classic Markdown or HTML formatting, or the server's richer formatting modes. Rich modes support elements such as tables, headings, formulas, and collapsible sections, but require Telegram Premium; when Premium is unavailable, the server returns a structured result instead of sending the message.

Contact references are deliberately conservative. Exact saved aliases resolve directly, while ambiguous or merely similar wording produces a confirmation instruction rather than sending to a guessed recipient. Typing indicators can target a forum topic, and voice messages or video notes can be transcribed with the available transcription engines.

## Setup and configuration

The repository is designed to be registered as an MCP server in a compatible client. The README demonstrates use with Claude and Cursor and includes client configuration, multi-account, device identity, proxy, Docker, and development topics.

Contact aliases are stored in an owner-only JSON file under `${XDG_STATE_HOME:-~/.local/state}/telegram-mcp/aliases.json`. Set `TELEGRAM_ALIASES_FILE` to use another location. `TELEGRAM_CONTACT_FUZZY=0` disables suggestions for wording that resembles a saved contact alias. Aliases can be listed, removed, or reassigned with dedicated tools.

## Tools and capabilities

- List configured Telegram accounts and route calls by account label.
- List chats, inspect metadata, create groups or channels, join or leave chats, and manage invitations.
- Administer groups with participant removal, bans, permissions, slow mode, topics, invite links, and administrator controls.
- Retrieve, search, summarize in context, send, schedule, edit, delete, forward, pin, reply to, and mark messages as read.
- Create and vote in polls, manage reactions, inspect inline buttons, and press supported callback or game buttons.
- Add, search, import, export, block, unblock, and remove contacts, including remembered aliases.
- Upload and download media, send files, voice notes, stickers, and GIFs, and transcribe voice messages or video notes.
- Send temporary typing indicators and manage read status, message links, and send-as identities.

## Limitations and notes

Rich message formatting depends on Telegram Premium and is checked for each relevant call. Inline-button actions that require a two-factor authentication password are refused. Poll voting validates answer indexes and Telegram's voting restrictions, and a new vote may replace an existing one.

Typing indicators are temporary write operations. Calls for the same account, chat, and topic cannot overlap, and successful responses confirm that Telegram accepted the request rather than that another client's interface displayed it. Contact alias resolution avoids guessing: unknown, ambiguous, or unresolved references result in an instruction to confirm the intended person before retrying.

The project is licensed under Apache-2.0.

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

