Telegram Notify MCP Server
Enables mobile notifications, approval workflows with inline keyboard buttons, remote prompt input from smartphones, and file sharing via Telegram Bot API
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 Notify MCP Serverask for my approval before any destructive operations"
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.
mcp-telegram-notify
A Model Context Protocol (MCP) server that bridges VS Code Copilot with Telegram, enabling mobile notifications, approval workflows, and remote prompt input from your smartphone.
Features
Notifications — Send task completion reports to Telegram
Approval Flow — Inline keyboard buttons for approve/reject decisions
Remote Prompt — Receive next instructions from your phone via free-text response
File Sharing — Send files (logs, JSON results) directly to Telegram
Use Case: Copilot Autopilot + Mobile Control
VS Code Copilot (Autopilot mode, auto-approve ON)
→ Executes tasks automatically
→ Asks approval via Telegram before destructive ops
→ Reports completion to your phone
→ Waits for your next instruction via Telegram
→ Continues workingNo need to be at your desk — control Copilot entirely from your smartphone.
Installation
pip install mcp-telegram-notifyOr install from source:
git clone https://github.com/NobufumiMurata/mcp-telegram-notify.git
cd mcp-telegram-notify
pip install -e ".[dev]"Setup
1. Create a Telegram Bot
Open Telegram and message @BotFather
Send
/newbotand follow the promptsCopy the bot token
2. Get Your Chat ID and User ID
Send any message to your bot, then:
curl "https://api.telegram.org/bot<YOUR_TOKEN>/getUpdates"From the response, note:
"chat": {"id": ...}→ your Chat ID"from": {"id": ...}→ your User ID (for the allowlist)
3. Configure VS Code MCP
Add to your .vscode/mcp.json:
{
"servers": {
"telegram-notify": {
"command": "python",
"args": ["-m", "mcp_telegram_notify"],
"env": {
"TELEGRAM_BOT_TOKEN": "<your-bot-token>",
"TELEGRAM_CHAT_ID": "<your-chat-id>",
"TELEGRAM_ALLOWED_USERS": "<your-user-id>"
}
}
}
}Alternative: JSON Config File
Instead of environment variables, you can use a JSON config file:
{
"bot_token": "<your-bot-token>",
"chat_id": "<your-chat-id>",
"allowed_users": ["<your-user-id>"]
}Then set TELEGRAM_CONFIG_PATH to point to the file:
{
"servers": {
"telegram-notify": {
"command": "python",
"args": ["-m", "mcp_telegram_notify"],
"env": {
"TELEGRAM_CONFIG_PATH": "secrets/telegram-bot.json"
}
}
}
}MCP Tools
Tool | Description | Key Args |
| Send a text message (HTML) |
|
| Inline buttons + wait for selection |
|
| Send prompt + wait for free-text reply |
|
| Send a file |
|
Example: Copilot Agent Instructions
Add to your .github/agents/*.agent.md to make Copilot use these tools automatically:
## Notification Rules (Telegram MCP)
- Before destructive operations (VM stop/delete, resource deletion, network changes),
use telegram_ask_approval to get explicit user approval
- After completing a task, use telegram_notify to send a summary report
- After sending the report, use telegram_wait_response to receive the next instruction
- Treat the received instruction as a new task and continue processingSecurity
User allowlist: Only messages from
TELEGRAM_ALLOWED_USERSare accepted. All other users are silently ignored.Timeouts: All waiting operations have configurable timeouts (default: 5 min for approval, 10 min for text). Returns
TIMEOUTstatus on expiry.No secrets in repo: All credentials via environment variables or external config file.
Stale update draining: Old Telegram updates are consumed before waiting, preventing stale responses from being accepted.
Development
git clone https://github.com/NobufumiMurata/mcp-telegram-notify.git
cd mcp-telegram-notify
pip install -e ".[dev]"
pytestLicense
MIT
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
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/NobufumiMurata/mcp-telegram-notify'
If you have feedback or need assistance with the MCP directory API, please join our Discord server