telegram-mcp
by chaindead·★ 326·Score 50
A Go-based MCP server that bridges Telegram API with AI assistants for managing messages, dialogs, and drafts.
Overview
The telegram-mcp server provides a secure connection between Telegram and AI assistants through the Model Context Protocol. It offers various tools for message management including retrieving account information, listing dialogs with unread filters, marking messages as read, and sending draft messages. The server follows Telegram API terms of service and requires authentication through app ID and API hash. The implementation is in Go and supports multiple installation methods including Homebrew, NPX, and direct binary downloads for macOS, Linux, and Windows.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose this server if you need to integrate Telegram functionality with AI assistants for message management and organization, especially if you're already using MCP-compatible clients like Claude Desktop or Cursor.
When NOT to choose this
Don't choose this server if you need extensive Telegram bot management features or if you have concerns about using third-party tools with your personal Telegram account due to API terms of service.
Tools this server exposes
5 tools extracted from the READMEtg_meGet current account information
tg_dialogsList dialogs with optional unread filter
tg_readMark dialog as read
tg_dialogRetrieve messages from specific dialog
tg_sendSend draft messages to any dialog
Comparable tools
Installation
Installation
**Homebrew** (macOS/Linux):
brew install chaindead/tap/telegram-mcp**NPX** (cross-platform):
npx -y @chaindead/telegram-mcp**From Releases**: Download the appropriate binary for your platform from [GitHub Releases](https://github.com/chaindead/telegram-mcp/releases)
**From Source**:
go install github.com/chaindead/telegram-mcp@latest**Claude Desktop Configuration**:
{
"mcpServers": {
"telegram": {
"command": "telegram-mcp",
"env": {
"TG_APP_ID": "<your-app-id>",
"TG_API_HASH": "<your-api-hash>"
}
}
}
}FAQ
- What are the authentication requirements?
- You need to obtain an API ID and API hash from Telegram (https://my.telegram.org/auth) and run the auth command with your phone number.
- How do I handle 2FA authentication?
- Add the --password flag with your 2FA password when running the auth command: telegram-mcp auth --app-id <your-api-id> --api-hash <your-api-hash> --phone <your-phone-number> --password <your-2fa-password>
Compare telegram-mcp with
Last updated · Auto-generated from public README + GitHub signals.