
Telegram MCP for managing dialogs, messages, drafts, read statuses, and more.
Telegram MCP for managing dialogs, messages, drafts, read statuses, and more.
·
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-mcpYou can run the latest version directly using npx (supports macOS, Linux, and Windows):
npx -y @chaindead/telegram-mcpWhen 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": "<your-api-id>",
"TG_API_HASH": "<your-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.gzThen 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.gzNote: 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.gzThen 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@latestBefore 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 <2fa_password>
Note: If you want to override existing session: add --new
telegram-mcp auth --app-id <your-api-id> --api-hash <your-api-hash> --phone <your-phone-number>📩 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": "<your-app-id>",
"TG_API_HASH": "<your-api-hash>",
"PATH": "<path_to_telegram-mcp_binary_dir>",
"HOME": "<path_to_your_home_directory"
}
}
}
}for Cursor:
{
"mcpServers": {
"telegram-mcp": {
"command": "telegram-mcp",
"env": {
"TG_APP_ID": "<your-app-id>",
"TG_API_HASH": "<your-api-hash>"
}
}
}
}Some MCP clients (e.g. VS Code) do not support JSON Schema Draft 2020-12 and will reject tools that use it. You can override the JSON Schema version by setting the --schema-version flag or the TG_SCHEMA_VERSION environment variable.
Common values:
| Version | URL |
|---|---|
| Draft-07 (recommended for VS Code) | https://json-schema.org/draft-07/schema# |
| Draft 2020-12 (default) | https://json-schema.org/draft/2020-12/schema |
Pick your client and paste the snippet. Each one is the same server, written the way that client expects it.
claude mcp add telegram -- npx -y @chaindead/telegram-mcp{
"mcpServers": {
"telegram": {
"env": {
"TG_APP_ID": "",
"TG_API_HASH": ""
},
"args": [
"-y",
"@chaindead/telegram-mcp"
],
"command": "npx"
}
}
}code --add-mcp '{"name":"telegram","env":{"TG_APP_ID":"","TG_API_HASH":""},"args":["-y","@chaindead/telegram-mcp"],"command":"npx"}'[mcp_servers.telegram]
command = "npx"
args = ["-y", "@chaindead/telegram-mcp"]Runs locally on your device. Your client starts the server itself, so nothing has to be hosted.
Paste this prompt into your agent. It reads this page and does the setup for you.
Read https://aiagentslisting.com/mcp/telegram-mcp-server to learn what the "Telegram MCP Server" MCP server does and how to install it. Add it to my coding agent's MCP configuration as documented on that page, then confirm the server connects and list the tools it exposes.Agents can also browse this directory over MCP at https://aiagentslisting.com/api/mcp
npx -y @chaindead/telegram-mcp
npx -y @chaindead/telegram-mcp auth ...This server runs locally, so we can't read its tool list over the web yet.
Maintain this server? Claiming proves you own the listing and earns the last 4 points.
Claim this listingPaste this line near the top of your repository's README. The badge always renders the current score.
[](https://aiagentslisting.com/mcp/telegram-mcp-server)MCP server that integrates the LINE Messaging API to connect an AI Agent to the LINE Official Accoun
The most powerful MCP Slack Server with no permission requirements, Apps support, GovSlack, DMs, Gro
v0.2.1Release notesv0.2.0Release notesv0.1.23Release notesv0.1.22Release notesv0.1.21Release notesv0.1.20Release notesv0.1.19Release notesv0.1.18Release notesv0.1.17Release notesv0.1.16Release notesv0.1.15Release notesv0.1.14Release notesv0.1.13Release notesv0.1.12Release notesv0.1.11Release notesv0.1.10Release notesv0.1.8Release notesv0.1.7Release notesv0.1.6Release notesv0.1.5Release notesConnect to the AI Agents Listing MCP server at https://aiagentslisting.com/api/mcp using the HTTP transport and complete the sign-in when it asks. Then call the submit_review tool for the listing "telegram-mcp-server" with a rating from 1 to 5 and a short note on what worked and what did not.No reviews yet
Be the first to share your experience with this tool.
MCP server that integrates the LINE Messaging API to connect an AI Agent to the LINE Official Accoun
Communication
The official MCP server to send emails and interact with Resend
Communication
The most powerful MCP Slack Server with no permission requirements, Apps support, GovSlack, DMs, Gro
Communication
One email a week. New agents, MCP servers and skills, and what is actually getting traction.