Telegram MCP Agent
Enables remote control of AI agents through Telegram by creating an interactive loop where the AI waits for commands in a Telegram group, executes them, and reports back with rich formatted messages and context-aware buttons.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Telegram MCP AgentI'm leaving. Switch to Telegram."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
🤖 Telegram MCP Agent
Turn your AI into a Remote Worker.
Control Claude or Cursor directly from Telegram with a continuous, interactive loop.
✨ Features
🔄 Infinite Remote Loop: The AI doesn't just send a message and quit. It enters a "Telegram Mode" loop where it waits for your commands, executes them, and reports back—indefinitely.
🔘 Smart Interactive Buttons: Every message comes with context-aware buttons (e.g., "Run Tests", "Fix Bug") for quick 1-tap replies.
🗣️ Multi-Language Support: Speaks your language! If you write in Hebrew, it replies in Hebrew.
🎨 Rich Formatting: Sends beautiful Markdown messages with bold text, code blocks, and lists.
🔌 Universal Support: Optimized for Claude Desktop, Claude Code, and Cursor.
Related MCP server: Telegram MCP Server
🚀 Quick Start
1. Prerequisites: Setting up Telegram 📱
Before installing, you need to set up your Telegram environment:
Create a Bot:
Open @BotFather in Telegram.
Send
/newbotand follow the instructions to get your Bot Token.
Create a Supergroup:
Create a new Group.
Enable Topics: Go to Group Settings > Chat History > Enable "Topics" (or "Forum"). This is critical!
Add Bot as Admin:
Add your new bot to the group.
Promote it to Admin with full permissions (specifically "Manage Topics").
Initialize:
Send a dummy message in the "General" topic of the group (e.g., "Init").
This ensures the group ID is accessible.
Get Group ID:
Forward a message from the group to @RawDataBot (or use another method) to find the Chat ID (usually starts with
-100).
2. Installation
We provide an automated installer that sets up everything for you.
python install.pyThis script will:
Install Python dependencies.
Ask for your Telegram Bot Token and Group ID.
Configure Claude Desktop and Claude Code automatically.
Output the configuration needed for Cursor.
2. Activate "Telegram Mode"
To start the remote worker loop, just tell your AI agent:
"I'm leaving. Switch to Telegram." Or in Hebrew: "אני יוצא לקפה, תמשיך מטלגרם."
The AI will:
Open a new topic in your Telegram Group.
Send you a message: "I am ready. What should I do?"
Wait for your reply (blocking execution).
3. Stop the Session
To exit the loop, simply click the "Done for now" (or "סיימנו לעכשיו") button in Telegram.
📂 Configuration Files
CLAUDE.md: Strict rules for Claude Code to enforce the loop and formatting..cursorrules: Auto-detection rules for Cursor and other agents.TELEGRAM_MODE.md: A system prompt you can paste manually if needed.
🛠️ Manual Configuration (Cursor)
To configure Cursor:
Open Settings (
Ctrl+,orCmd+,).Navigate to Features > MCP.
Add a new MCP server with the following details:
{
"name": "telegram-agent",
"type": "stdio",
"command": "python",
"args": ["/absolute/path/to/telegram-mcp/server.py"]
}(Note: Use the full absolute path to your python executable and the server.py file)
Built with ❤️ for the MCP Community.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityFmaintenanceEnables remote control of AI coding assistants (Claude Code/Codex) via Telegram, allowing you to manage long-running tasks, send commands, and receive notifications from anywhere. Supports unattended mode with smart polling for up to 7 days and multi-session management.Last updated829MIT
- Flicense-qualityDmaintenanceEnables AI assistants to interact with users via Telegram to request decisions, approvals, or specific input through text and clickable buttons. This facilitates a human-in-the-loop workflow where the AI can pause for feedback or send status notifications during long-running tasks.Last updated3
- Alicense-qualityDmaintenanceEnables AI assistants to interact with the Telegram Bot API, allowing them to send messages, forward messages, get bot information, and receive updates.Last updated223MIT
- Alicense-qualityDmaintenanceEnables Claude Code to send and receive messages via Telegram for remote interaction and approval of sensitive operations.Last updated267MIT
Related MCP Connectors
Multi-tenant Telegram gateway for AI agents — HTTP+stdio, 8 tools, MTProto User API
Telegram bridge for your MCP-compatible agent. Bidirectional, no LLM in our stack.
Create and manage AI agents that collaborate and solve problems through natural language interacti…
Appeared in Searches
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/dudu1111685/telegram-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server