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
The server is a bridge between the Telegram API and the AI assistants and is based on the Model Context Protocol.
Important:
Ensure that you have read and understood the Telegram API Terms of Service before using this server. Any misuse of the Telegram API may result in the suspension of your account.
The 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.
tool: tg_me)tool: tg_dialogs)tool: tg_read)tool: tg_dialog)tool: tg_send)Here are some example prompts you can use with AI assistants:
You can install a binary release on macOS/Linux using brew:
# Install
brew install chaindead/tap/telegram-mcp
# Update
brew upgrade chaindead/tap/telegram-mcp
You can run the latest version directly using npx (supports macOS, Linux, and Windows):
npx -y @chaindead/telegram-mcp
When using NPX, modify the standard commands and configuration as follows:
npx -y @chaindead/telegram-mcp auth ...
{
"mcpServers": {
"telegram": {
"command": "npx",
"args": ["-y", "@chaindead/telegram-mcp"],
"env": {
"TG_APP_ID": "",
"TG_API_HASH": ""
}
}
}
}
For complete setup instructions, see Authorization and Client Configuration.
Note: The commands below install to
/usr/local/bin. To install elsewhere, replace/usr/local/binwith your preferred directory in your PATH.
First, download the archive for your architecture:
# For Intel Mac (x86_64)
curl -L -o telegram-mcp.tar.gz https://github.com/chaindead/telegram-mcp/releases/latest/download/telegram-mcp_Darwin_x86_64.tar.gz
# For Apple Silicon (M1/M2)
curl -L -o telegram-mcp.tar.gz https://github.com/chaindead/telegram-mcp/releases/latest/download/telegram-mcp_Darwin_arm64.tar.gz
Then install the binary:
# Extract the binary
sudo tar xzf telegram-mcp.tar.gz -C /usr/local/bin
# Make it executable
sudo chmod +x /usr/local/bin/telegram-mcp
# Clean up
rm telegram-mcp.tar.gz
Note: The commands below install to
/usr/local/bin. To install elsewhere, replace/usr/local/binwith your preferred directory in your PATH.
First, download the archive for your architecture:
# For x86_64 (64-bit)
curl -L -o telegram-mcp.tar.gz https://github.com/chaindead/telegram-mcp/releases/latest/download/telegram-mcp_Linux_x86_64.tar.gz
# For ARM64
curl -L -o telegram-mcp.tar.gz https://github.com/chaindead/telegram-mcp/releases/latest/download/telegram-mcp_Linux_arm64.tar.gz
Then install the binary:
# Extract the binary
sudo tar xzf telegram-mcp.tar.gz -C /usr/local/bin
# Make it executable
sudo chmod +x /usr/local/bin/telegram-mcp
# Clean up
rm telegram-mcp.tar.gz
.zip filetelegram-mcp.exe to a directory in your PATHRequirements:
go install github.com/chaindead/telegram-mcp@latest
Before you can use the server, you need to connect to the Telegram API.
Get the API ID and hash from Telegram API
Run the following command:
Note: If you have 2FA enabled: add --password
Note: If you want to override existing session: add --new
telegram-mcp auth --app-id --api-hash --phone
📩 Enter the code you received from Telegram to connect to the API.
Done! Please give this project a ⭐️ to support its development.
Example of Configuring Claude Desktop to recognize the Telegram MCP server.
Open the Claude Desktop configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.jsonNote: You can also find claude_desktop_config.json inside the settings of Claude Desktop app
Add the server configuration
for Claude desktop:
{
"mcpServers": {
"telegram": {
"command": "telegram-mcp",
"env": {
"TG_APP_ID": "",
"TG_API_HASH": "",
"PATH": "",
"HOME": "",
"TG_API_HASH": ""
}
}
}
}
Install via CLI
npx mdskills install chaindead/telegram-mcpTelegram MCP server is a free, open-source AI agent skill. 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
Install Telegram MCP server with a single command:
npx mdskills install chaindead/telegram-mcpThis downloads the skill files into your project and your AI agent picks them up automatically.
Telegram MCP server works with Claude Code, Claude Desktop, Cursor, Vscode Copilot, Windsurf, Continue Dev, Gemini Cli, Amp, Roo Code, Goose. Skills use the open SKILL.md format which is compatible with any AI coding agent that reads markdown instructions.