Telegram Notify
FreeNot checkedMCP server for sending Telegram messages and scheduling reminders, supporting multiple transports and Docker deployment.
About
MCP server for sending Telegram messages and scheduling reminders, supporting multiple transports and Docker deployment.
README
MCP-сервер для уведомлений и напоминаний в Telegram.
Работает с Cursor, Claude Desktop и другими MCP-клиентами. Можно запускать локально (stdio) или в Docker (HTTP).
Возможности
| Tool | Описание |
|---|---|
send_telegram_message |
Мгновенная отправка текста в чат |
schedule_telegram_reminder |
Отложенная отправка через N секунд (хранит задачи в SQLite) |
- Транспорты:
stdio,http(Streamable HTTP),sse(legacy) - Напоминания переживают рестарт (SQLite + фоновый worker)
- Health-check:
GET /health - Опционально: ngrok для публичного HTTPS
Требования
- Python 3.12+
- Telegram-бот и токен от @BotFather
- (Опционально) Docker / Docker Compose
Быстрый старт (локально)
1. Клонируйте репозиторий
git clone https://github.com/<your-username>/mcp-telegram-notify.git
cd mcp-telegram-notify
2. Создайте виртуальное окружение
python -m venv .venv
# Windows PowerShell
.\.venv\Scripts\Activate.ps1
# Linux / macOS
source .venv/bin/activate
pip install -r requirements.txt
3. Настройте .env
cp .env.example .env
Откройте .env и укажите токен:
TELEGRAM_BOT_TOKEN=123456:ABC-DEF...
MCP_TRANSPORT=stdio
LOG_LEVEL=INFO
4. Напишите боту /start
В Telegram откройте своего бота и отправьте /start.
Без этого sendMessage вернёт ошибку 403.
5. Узнайте свой chat_id
- Напишите боту любое сообщение.
- Откройте в браузере:
https://api.telegram.org/bot<ВАШ_ТОКЕН>/getUpdates
- Найдите
"chat":{"id": ...}— это вашchat_id.
6. Запуск
Режим разработки (Inspector):
fastmcp dev server.py
Обычный STDIO (для Cursor / Claude Desktop):
python server.py
HTTP-режим (порт 8000):
MCP_TRANSPORT=http
MCP_HOST=127.0.0.1
MCP_PORT=8000
python server.py
Проверка:
curl http://127.0.0.1:8000/health
Подключение в Cursor
Добавьте в ~/.cursor/mcp.json (Windows: %USERPROFILE%\.cursor\mcp.json):
{
"mcpServers": {
"telegram": {
"command": "ABSOLUTE_PATH_TO_PROJECT/.venv/Scripts/python.exe",
"args": ["ABSOLUTE_PATH_TO_PROJECT/server.py"],
"env": {
"TELEGRAM_BOT_TOKEN": "your_bot_token_here",
"MCP_TRANSPORT": "stdio",
"LOG_LEVEL": "INFO"
}
}
}
}
На Linux/macOS путь к Python обычно:
ABSOLUTE_PATH_TO_PROJECT/.venv/bin/python
После сохранения: Cursor → Settings → MCP → Reload.
Пример запроса в чате Cursor:
Отправь мне в Telegram через MCP сообщение «Привет!» на chat_id
123456789
Docker
cp .env.example .env
# Заполните TELEGRAM_BOT_TOKEN
# Для Docker оставьте MCP_TRANSPORT=http
docker compose up -d --build
docker compose logs -f telegram-mcp
- MCP:
http://localhost:8000/mcp - Health:
http://localhost:8000/health - SQLite сохраняется в
./data(том Docker)
ngrok (публичный HTTPS)
- Получите токен: https://dashboard.ngrok.com/get-started/your-authtoken
- Добавьте в
.env:
NGROK_AUTHTOKEN=your_ngrok_token
- Запустите:
docker compose up -d --build
- Узнайте публичный URL:
- браузер: http://localhost:4040
- или логи:
docker compose logs ngrok
Endpoint для внешних шлюзов (например Zuplo):
https://<subdomain>.ngrok-free.app/mcp
Переменные окружения
| Переменная | Описание | По умолчанию |
|---|---|---|
TELEGRAM_BOT_TOKEN |
Токен бота | обязательно |
MCP_TRANSPORT |
stdio / http / sse |
stdio (в Docker — http) |
MCP_HOST / MCP_PORT |
Хост и порт HTTP | 0.0.0.0 / 8000 |
MCP_PATH |
Путь MCP endpoint | /mcp |
REMINDERS_DB_PATH |
Путь к SQLite | reminders.db |
REMINDER_POLL_INTERVAL_SECONDS |
Интервал worker | 5 |
REMINDER_MIN/MAX_DELAY_SECONDS |
Лимиты задержки | 1 / 2592000 |
LOG_LEVEL |
Уровень логов | INFO |
NGROK_AUTHTOKEN |
Токен ngrok | опционально |
ENABLE_X402_MIDDLEWARE |
Stub монетизации | false |
Полный список — в .env.example.
Структура проекта
mcp-telegram-notify/
├── server.py # MCP-сервер, tools, SQLite, worker
├── requirements.txt
├── .env.example
├── Dockerfile
├── docker-compose.yml
├── .gitignore
├── .dockerignore
├── LICENSE
└── README.md
Безопасность
- Не коммитьте
.env, токены бота и ngrok. - Файл
.envуже в.gitignore. - Токен бота даёт полный доступ к боту — храните его как секрет.
- Если токен засветился — перевыпустите через @BotFather (
/revoke).
Устранение неполадок
| Симптом | Что проверить |
|---|---|
403 Forbidden |
Напишите боту /start |
401 Unauthorized |
Неверный TELEGRAM_BOT_TOKEN |
| Cursor не видит tools | Reload MCP, путь к Python/venv |
| Напоминание не пришло | Смотрите логи; worker опрашивает БД каждые 5–10 сек |
Docker /health падает |
Дождитесь start_period, проверьте docker compose logs |
Лицензия
MIT — см. LICENSE.
Installing Telegram Notify
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/rizzee/mcp-telegram-notifyFAQ
Is Telegram Notify MCP free?
Yes, Telegram Notify MCP is free — one-click install via Unyly at no cost.
Does Telegram Notify need an API key?
No, Telegram Notify runs without API keys or environment variables.
Is Telegram Notify hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Telegram Notify in Claude Desktop, Claude Code or Cursor?
Open Telegram Notify on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
Gmail
Read, send and search emails from Claude
by GoogleSlack
Send, search and summarize Slack messages
by SlackRunbear
No-code MCP client for team chat platforms, such as Slack, Microsoft Teams, and Discord.
Discord Server
A community discord server dedicated to MCP by [Frank Fiegel](https://github.com/punkpeye)
Klavis AI
Open Source MCP Infra. Hosted MCP servers and MCP clients on Slack and Discord.
Work90210/APIFold
Turn any REST API into a hosted MCP server. 18 free public servers (GitHub, Stripe, Slack, OpenAI, Notion, and more) — no setup required, bring your own API key
by Work90210arikusi/deepseek-mcp-server
MCP server for DeepSeek AI with chat, reasoning, multi-turn sessions, function calling, thinking mode, and cost tracking.
by arikusihashgraph-online/hashnet-mcp-js
MCP server for the Registry Broker. Discover, register, and chat with AI agents on the Hashgraph network.
by hashgraph-onlineprofullstack/mcp-server
A comprehensive MCP server aggregating 20+ tools including SEO optimization, document conversion, domain lookup, email validation, QR generation, weather data,
by profullstackWayStation-ai/mcp
Seamlessly and securely connect Claude Desktop and other MCP hosts to your favorite apps (Notion, Slack, Monday, Airtable, etc.). Takes less than 90 secs.
by waystation-aiCompare Telegram Notify with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All communication MCPs
