telegram-notifier-mcp
Allows sending notifications to a configured Telegram chat 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-mcpSend a Telegram notification saying 'Deployment finished 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 provides a tool to send notifications via Telegram. Built with TypeScript and Node.js.
Features
Single Tool:
send_telegram_notification- Send messages to a configured Telegram chatSimple Setup: Configure once with environment variables
Error Handling: Clear error messages for configuration and API issues
TypeScript: Fully typed for better development experience
Related MCP server: Telegram Notifier MCP Server
Prerequisites
Node.js: Version 18 or higher
Telegram Bot Token: Create a bot via @BotFather on Telegram
Chat ID: Get your chat ID (you can use @userinfobot)
Installation
# Install dependencies
npm install
# Build the TypeScript code
npm run buildConfiguration
Environment Variables
Set the following environment variables:
export TELEGRAM_BOT_TOKEN="your_bot_token_here"
export TELEGRAM_CHAT_ID="your_chat_id_here"You can also create a .env file in your project root:
TELEGRAM_BOT_TOKEN=your_bot_token_here
TELEGRAM_CHAT_ID=your_chat_id_hereMCP Client Configuration
Add to your MCP client configuration (e.g., Claude Desktop, Cline):
For Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"telegram-notifier": {
"command": "node",
"args": ["/Users/yarden.porat/projects/yarden/telegram-notifier-mcp/dist/index.js"],
"env": {
"TELEGRAM_BOT_TOKEN": "your_bot_token_here",
"TELEGRAM_CHAT_ID": "your_chat_id_here"
}
}
}
}For Cline (VS Code extension):
Add to your Cline MCP settings:
{
"telegram-notifier": {
"command": "node",
"args": ["/Users/yarden.porat/projects/yarden/telegram-notifier-mcp/dist/index.js"],
"env": {
"TELEGRAM_BOT_TOKEN": "your_bot_token_here",
"TELEGRAM_CHAT_ID": "your_chat_id_here"
}
}
}Usage
Once configured, the MCP server provides a single tool:
send_telegram_notification
Parameters:
message(string, required): The message text to send to Telegram
Example:
Send a telegram notification with the message "Deployment completed successfully! š"The AI assistant will use the tool to send your message to the configured Telegram chat.
Development
Build
npm run buildWatch Mode
npm run watchTesting
You can test the server manually by setting environment variables and running:
export TELEGRAM_BOT_TOKEN="your_bot_token_here"
export TELEGRAM_CHAT_ID="your_chat_id_here"
node dist/index.jsOr use the included shell script:
./send_telegrem_notification.sh "Test message"Project Structure
telegram-notifier-mcp/
āāā src/
ā āāā index.ts # Main server implementation
āāā dist/ # Compiled JavaScript (generated)
āāā package.json # Node.js dependencies and scripts
āāā tsconfig.json # TypeScript configuration
āāā README.md # This file
āāā send_telegrem_notification.sh # Shell script for testingHow to Get Telegram Credentials
1. Create a Telegram Bot
Open Telegram and search for @BotFather
Send
/newbotcommandFollow the instructions to name your bot
Copy the bot token provided (format:
123456789:ABCdefGHIjklMNOpqrsTUVwxyz)
2. Get Your Chat ID
Option 1: Using @userinfobot
Search for @userinfobot on Telegram
Start a chat with it
Your chat ID will be displayed
Option 2: Using your bot
Start a chat with your newly created bot
Send any message to it
Visit:
https://api.telegram.org/bot<YOUR_BOT_TOKEN>/getUpdatesLook for
"chat":{"id":in the response
Troubleshooting
Bot not sending messages
Ensure you've started a chat with your bot (send
/start)Verify your bot token is correct
Check that the chat ID is correct
MCP server not connecting
Make sure the path to
dist/index.jsis absolute and correctVerify Node.js is installed and accessible
Check that the build completed successfully (
npm run build)
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Telegram bridge for your MCP-compatible agent. Bidirectional, no LLM in our stack.
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.
Push notifications for AI agents - send instant iPhone notifications from any MCP client.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to send messages and interact with Telegram chats through MCP tools, with support for user management, conversation history, and bot command handling.1-
- AlicenseBqualityDmaintenanceEnables AI agents to send notifications and media (text, photos, documents, videos) via a Telegram bot.4363Do What The F*ck You Want To Public
- AlicenseAqualityDmaintenanceExposes the Telegram Bot API as tools for MCP clients, enabling sending messages, photos, polls, and more via a Telegram bot.11MIT
- AlicenseBqualityCmaintenanceSends Telegram notifications and supports onboarding, updates, and control replies via MCP tools from any AI agent.616MIT