The server is a bridge between the Telegram API and the AI assistants and is based on the Model Context Protocol. - What is MCP? - What does this server do? - Capabilities - Prompt examples - Message Management - Organization - Communication - Installation - From Releases - From Source - Configuration - Authorization - Client Configuration - Star History The Model Context Protocol (MCP) is a syste
Add this skill
npx mdskills install chaindead/telegram-mcpComprehensive Telegram integration with 60+ tools covering messaging, groups, contacts, and automation
1[](https://github.com/punkpeye/awesome-mcp-servers?tab=readme-ov-file#communication)2[](https://github.com/chaindead/telegram-mcp?tab=readme-ov-file#installation)3[](https://opensource.org/licenses/MIT)4[](https://visitorbadge.io/status?path=https%3A%2F%2Fgithub.com%2Fchaindead%2Ftelegram-mcp)56# Telegram MCP server78The server is a bridge between the Telegram API and the AI assistants and is based on the [Model Context Protocol](https://modelcontextprotocol.io).910> [!IMPORTANT]11> Ensure that you have read and understood the [Telegram API Terms of Service](https://core.telegram.org/api/terms) before using this server.12> Any misuse of the Telegram API may result in the suspension of your account.1314## Table of Contents15- [What is MCP?](#what-is-mcp)16- [What does this server do?](#what-does-this-server-do)17 - [Capabilities](#capabilities)18 - [Prompt examples](#prompt-examples)19 - [Message Management](#message-management)20 - [Organization](#organization)21 - [Communication](#communication)22- [Installation](#installation)23 - [Homebrew](#homebrew)24 - [NPX](#npx)25 - [From Releases](#from-releases)26 - [MacOS](#macos)27 - [Linux](#linux)28 - [Windows](#windows)29 - [From Source](#from-source)30- [Configuration](#configuration)31 - [Authorization](#authorization)32 - [Client Configuration](#client-configuration)33- [Star History](#star-history)3435## What is MCP?3637The Model Context Protocol (MCP) is a system that lets AI apps, like Claude Desktop or Cursor, connect to external tools and data sources. It gives a clear and safe way for AI assistants to work with local services and APIs while keeping the user in control.3839## What does this server do?4041### Capabilities4243- [x] Get current account information (`tool: tg_me`)44- [x] List dialogs with optional unread filter (`tool: tg_dialogs`)45- [x] Mark dialog as read (`tool: tg_read`)46- [x] Retrieve messages from specific dialog (`tool: tg_dialog`)47- [x] Send draft messages to any dialog (`tool: tg_send`)4849### Prompt examples5051Here are some example prompts you can use with AI assistants:5253#### Message Management54- "Check for any unread important messages in my Telegram"55- "Summarize all my unread Telegram messages"56- "Read and analyze my unread messages, prepare draft responses where needed"57- "Check non-critical unread messages and give me a brief overview"5859#### Organization60- "Analyze my Telegram dialogs and suggest a folder structure"61- "Help me categorize my Telegram chats by importance"62- "Find all work-related conversations and suggest how to organize them"6364#### Communication65- "Monitor specific chat for updates about [topic]"66- "Draft a polite response to the last message in [chat]"67- "Check if there are any unanswered questions in my chats"6869## Installation7071### Homebrew7273You can install a binary release on macOS/Linux using brew:7475```bash76# Install77brew install chaindead/tap/telegram-mcp7879# Update80brew upgrade chaindead/tap/telegram-mcp81```8283### NPX8485You can run the latest version directly using npx (supports macOS, Linux, and Windows):8687```bash88npx -y @chaindead/telegram-mcp89```9091When using NPX, modify the standard commands and configuration as follows:9293- [Authentication command](#authorization) becomes:94```bash95npx -y @chaindead/telegram-mcp auth ...96```9798- [Claude MCP server configuration](#client-configuration) becomes:99```json100{101 "mcpServers": {102 "telegram": {103 "command": "npx",104 "args": ["-y", "@chaindead/telegram-mcp"],105 "env": {106 "TG_APP_ID": "<your-api-id>",107 "TG_API_HASH": "<your-api-hash>"108 }109 }110 }111}112```113114For complete setup instructions, see [Authorization](#authorization) and [Client Configuration](#client-configuration).115116### From Releases117118#### MacOS119120<details>121122> **Note:** The commands below install to `/usr/local/bin`. To install elsewhere, replace `/usr/local/bin` with your preferred directory in your PATH.123124First, download the archive for your architecture:125126```bash127# For Intel Mac (x86_64)128curl -L -o telegram-mcp.tar.gz https://github.com/chaindead/telegram-mcp/releases/latest/download/telegram-mcp_Darwin_x86_64.tar.gz129130# For Apple Silicon (M1/M2)131curl -L -o telegram-mcp.tar.gz https://github.com/chaindead/telegram-mcp/releases/latest/download/telegram-mcp_Darwin_arm64.tar.gz132```133134Then install the binary:135136```bash137# Extract the binary138sudo tar xzf telegram-mcp.tar.gz -C /usr/local/bin139140# Make it executable141sudo chmod +x /usr/local/bin/telegram-mcp142143# Clean up144rm telegram-mcp.tar.gz145```146</details>147148#### Linux149<details>150151> **Note:** The commands below install to `/usr/local/bin`. To install elsewhere, replace `/usr/local/bin` with your preferred directory in your PATH.152153First, download the archive for your architecture:154155```bash156# For x86_64 (64-bit)157curl -L -o telegram-mcp.tar.gz https://github.com/chaindead/telegram-mcp/releases/latest/download/telegram-mcp_Linux_x86_64.tar.gz158159# For ARM64160curl -L -o telegram-mcp.tar.gz https://github.com/chaindead/telegram-mcp/releases/latest/download/telegram-mcp_Linux_arm64.tar.gz161```162163Then install the binary:164165```bash166# Extract the binary167sudo tar xzf telegram-mcp.tar.gz -C /usr/local/bin168169# Make it executable170sudo chmod +x /usr/local/bin/telegram-mcp171172# Clean up173rm telegram-mcp.tar.gz174```175</details>176177#### Windows178179<details>180181#### Windows1821. Download the latest release for your architecture:183 - [Windows x64](https://github.com/chaindead/telegram-mcp/releases/latest/download/telegram-mcp_Windows_x86_64.zip)184 - [Windows ARM64](https://github.com/chaindead/telegram-mcp/releases/latest/download/telegram-mcp_Windows_arm64.zip)1852. Extract the `.zip` file1863. Add the extracted directory to your PATH or move `telegram-mcp.exe` to a directory in your PATH187</details>188189### From Source190191Requirements:192- Go 1.24 or later193- GOBIN in PATH194195```bash196go install github.com/chaindead/telegram-mcp@latest197```198199## Configuration200201### Authorization202203Before you can use the server, you need to connect to the Telegram API.2042051. Get the API ID and hash from [Telegram API](https://my.telegram.org/auth)2062. Run the following command:207 > __Note:__208 > If you have 2FA enabled: add --password <2fa_password>209210 > __Note:__211 > If you want to override existing session: add --new212213 ```bash214 telegram-mcp auth --app-id <your-api-id> --api-hash <your-api-hash> --phone <your-phone-number>215 ```216217 📩 Enter the code you received from Telegram to connect to the API.2182193. Done! Please give this project a ⭐️ to support its development.220221### Client Configuration222223Example of Configuring Claude Desktop to recognize the Telegram MCP server.2242251. Open the Claude Desktop configuration file:226 - in MacOS, the configuration file is located at `~/Library/Application Support/Claude/claude_desktop_config.json`227 - in Windows, the configuration file is located at `%APPDATA%\Claude\claude_desktop_config.json`228229 > __Note:__230 > You can also find claude_desktop_config.json inside the settings of Claude Desktop app2312322. Add the server configuration233234 for Claude desktop:235 ```json236 {237 "mcpServers": {238 "telegram": {239 "command": "telegram-mcp",240 "env": {241 "TG_APP_ID": "<your-app-id>",242 "TG_API_HASH": "<your-api-hash>",243 "PATH": "<path_to_telegram-mcp_binary_dir>",244 "HOME": "<path_to_your_home_directory"245 }246 }247 }248 }249 ```250251 for Cursor:252 ```json253 {254 "mcpServers": {255 "telegram-mcp": {256 "command": "telegram-mcp",257 "env": {258 "TG_APP_ID": "<your-app-id>",259 "TG_API_HASH": "<your-api-hash>"260 }261 }262 }263 }264 ```265266## Star History267268<a href="https://www.star-history.com/#chaindead/telegram-mcp&Date">269 <picture>270 <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=chaindead/telegram-mcp&type=Date&theme=dark" />271 <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=chaindead/telegram-mcp&type=Date" />272 <img alt="Star History Chart" src="https://api.star-history.com/svg?repos=chaindead/telegram-mcp&type=Date" />273 </picture>274</a>
Full transparency — inspect the skill content before installing.