Telegram Notifier MCP Server
Provides tools for sending messages, photos, documents, and videos to Telegram chats via a bot.
Click on "Deploy 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 Notifier MCP Server Send a notification to the admin group: 'Server backup completed successfully.'"
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 Notifier MCP Server
A Model Context Protocol (MCP) server that enables AI agents to send messages via Telegram bot. Perfect for notifications, alerts, and real-time communication from your AI applications.
Features
📱 Send messages to Telegram channels/chats via bot
🎨 Support for multiple formatting modes (Markdown, MarkdownV2, HTML)
📷 Send photos/images (local files, HTTP URLs)
📁 Send documents/files with custom filenames
🎬 Send videos with caption support
🏷️ Caption support for all media with full formatting
🛡️ Robust error handling with detailed Telegram API responses
🏗️ Clean service architecture for maintainable code
Related MCP server: Telegram MCP Server
Quick Start
1. Create a Telegram Bot
Message @BotFather on Telegram
Use
/newbotcommand and follow instructionsSave the bot token (looks like
123456789:ABCdefGHIjklMNOpqrsTUVwxyz)
2. Get Chat ID
For personal messages:
Message your bot first
Visit:
https://api.telegram.org/bot<YOUR_BOT_TOKEN>/getUpdatesFind the
chat.idvalue
For channels:
Add your bot to the channel as admin
Send a message to the channel
Visit the same URL and find the
chat.id(negative number for channels)
3. Install and Configure
# Install the package
npm install -g @harnyk/telegram-notifier-mcp
# Or clone and build locally
git clone <repository-url>
cd mcp-telegram-notifier
pnpm install
pnpm build
pnpm link4. Add to Your MCP Client
Add to your MCP client configuration (e.g., Claude Desktop):
{
"mcpServers": {
"telegram-notifier": {
"command": "telegram-notifier",
"env": {
"TELEGRAM_BOT_TOKEN": "your_bot_token_here",
"TELEGRAM_CHAT_ID": "your_chat_id_here"
}
}
}
}Or using npx:
{
"mcpServers": {
"telegram-notifier": {
"command": "npx",
"args": ["-y", "@harnyk/telegram-notifier-mcp"],
"env": {
"TELEGRAM_BOT_TOKEN": "your_bot_token_here",
"TELEGRAM_CHAT_ID": "your_chat_id_here"
}
}
}
}Available Tools
Once configured, your AI agent will have access to these MCP tools:
📝 send_markdown_message_as_telegram_bot
Send formatted text messages to Telegram
messageText: Text content with Markdown/HTML formatting
parseMode:
Markdown,MarkdownV2, orHTML(default: MarkdownV2)
📷 send_telegram_photo
Send photos/images to Telegram
photo: Local file path or HTTP URL to image
caption: Optional image caption with formatting
parseMode: Caption formatting mode
📁 send_telegram_document
Send documents/files to Telegram
document: Local file path or HTTP URL to document
caption: Optional document caption with formatting
filename: Custom filename override
parseMode: Caption formatting mode
🎬 send_telegram_video
Send videos to Telegram
video: Local file path or HTTP URL to video
caption: Optional video caption with formatting
filename: Custom filename override
parseMode: Caption formatting mode
Use Cases
📊 Monitoring: Get alerts when system metrics exceed thresholds
🚀 Deployments: Notifications when CI/CD pipelines complete
📈 Analytics: Daily/weekly reports with charts and data files
🔍 Error Tracking: Instant notifications with error screenshots
📅 Scheduling: Reminders with attached documents
💬 Customer Support: Forward important messages with media
Development
# Install dependencies
pnpm install
# Run in development mode
pnpm dev
# Build for production
pnpm build
# Run linting
pnpm lint
# Run type checking
pnpm typecheckConfiguration Examples
Claude Desktop
{
"mcpServers": {
"telegram-notifier": {
"command": "telegram-notifier",
"env": {
"TELEGRAM_BOT_TOKEN": "123456789:ABCdefGHIjklMNOpqrsTUVwxyz",
"TELEGRAM_CHAT_ID": "-1001234567890"
}
}
}
}Contributing
Fork the repository
Create a feature branch
Make your changes
Add tests if needed
Run
pnpm lintandpnpm typecheckSubmit a pull request
License
WTFPL - Do What the Fuck You Want to Public License
Available Tools
4 toolssend_markdown_message_as_telegram_botSend Telegram Message in Markdown formatB
Send a message using Telegram bot in Markdown format
Inputs: messageText (required), parseMode.
send_telegram_documentSend Telegram DocumentB
Send a document/file via Telegram bot
Inputs: document (required), caption, filename, parseMode.
send_telegram_photoSend Telegram PhotoC
Send a photo/image via Telegram bot
Inputs: photo (required), caption, parseMode.
send_telegram_videoSend Telegram VideoC
Send a video via Telegram bot
Inputs: video (required), caption, filename, parseMode.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool clearly targets a distinct content type (markdown message, document, photo, video), with no overlapping purposes.
The first tool 'send_markdown_message_as_telegram_bot' breaks the 'send_telegram_<type>' pattern used by the other three, mixing naming conventions.
Four tools is reasonable for a Telegram notifier; it's concise but could benefit from a few more common actions like send_audio or send_sticker.
Covers key send operations for text, document, photo, and video, but notably absent are audio, location, and plain text (non-markdown) sending, which are common Telegram features.
Maintenance
Related MCP Connectors
Let AI assistants post to your Telegram chats, groups and channels. Not affiliated with Telegram.
Run a Telegram channel from your AI agent. Posts go out through your own bot, not your account.
Messaging tools for AI agents: send messages, manage chats, groups and channels.
Telegram bridge for your MCP-compatible agent. Bidirectional, no LLM in our stack.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI agents to send and receive messages, media, and files on Telegram, and manage chats via a bot token.1771 PyPIMIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with the Telegram Bot API, allowing them to send messages, forward messages, get bot information, and receive updates.14 npm3MIT
- AlicenseNot gradedqualityDmaintenanceEnables LLMs to send notifications and receive responses via Telegram.43 npm4MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to send Telegram messages including text, images, links, and documents through MCP tools.MIT