claude-telegram-alerts
Sends Telegram alerts for Claude Code status updates, including notifications for task completion, user requests, and custom status updates with normal or urgent priority.
README
Claude Telegram Alerts
An MCP server that sends Telegram alerts for Claude Code status updates. Get notified on your phone when:
- Claude needs your input or approval
- Long-running tasks complete
- Builds finish or tests pass/fail
- Any custom status update you configure
Features
alert- Send status alerts to your Telegram (normal or urgent priority)get_chat_id- Helper tool to retrieve your Telegram chat ID during setup
Quick Start
1. Create a Telegram Bot
- Open Telegram and message @BotFather
- Send
/newbotand follow the prompts - Copy your bot token (e.g.,
123456789:ABCdefGHIjklMNOpqrsTUVwxyz)
2. Message Your Bot
Search for your new bot in Telegram and send it any message (e.g., "hi"). This enables the bot to message you back.
3. Install
git clone https://github.com/anthony-potts/claude-telegram-alerts.git
cd claude-telegram-alerts
npm install
npm run build
4. Configure Claude Code
Add to ~/.claude/settings.json:
{
"mcpServers": {
"telegram-alerts": {
"command": "node",
"args": ["/path/to/claude-telegram-alerts/build/index.js"],
"env": {
"TELEGRAM_BOT_TOKEN": "your-bot-token",
"TELEGRAM_CHAT_ID": ""
}
}
}
}
5. Get Your Chat ID
Restart Claude Code, then ask:
"Use the get_chat_id tool to find my Telegram chat ID"
Update your config with the returned chat ID, then restart Claude Code.
Usage Examples
Manual Alerts
"Send me a Telegram alert that the deployment is complete"
"Send an urgent alert that I need to approve the PR"
Automated Workflows
"Run the test suite and alert me on Telegram when done"
"Deploy to staging and send me a Telegram alert with the result"
"When you need my input, send me a Telegram alert"
Status Updates
"Alert me via Telegram: Build failed - missing dependency in package.json"
"Send Telegram alert: Waiting for approval to delete 50 files"
Tools
alert
Send a status alert to your Telegram.
| Parameter | Type | Required | Description |
|---|---|---|---|
message |
string | Yes | The alert message |
priority |
"normal" | "urgent" |
No | urgent = notification sound. Default: normal (silent) |
get_chat_id
Retrieve your chat ID after messaging the bot. No parameters.
Troubleshooting
| Error | Solution |
|---|---|
| "TELEGRAM_BOT_TOKEN required" | Add your bot token to the MCP server env config |
| "TELEGRAM_CHAT_ID required" | Run get_chat_id tool and add the result to config |
| "No messages found" | Send a message to your bot in Telegram first |
| Alerts not arriving | Check Telegram notifications aren't muted for the bot |
Development
npm install # Install dependencies
npm run build # Compile TypeScript
npm run dev # Watch mode
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.