TelegramMCP
Sends task completion notifications to Telegram, allowing agents to notify a specified chat about the project name and completion status.
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., "@TelegramMCPSend Telegram notification that project 'Test' is completed"
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.
TelegramMCP
Сервер с протоколом MCP — единственный инструмент: отправляет в Telegram название проекта и статус завершения. Работает в двух вариантах транспорта: StreamableHTTP (FastAPI) и stdio (stdin/stdout).
Возможности
🚀 MCP-сервер с инструментом
notify_task_done(project_name, status)📡 StreamableHTTP транспорт — FastAPI-сервер на порту 8000
💬 Stdio транспорт — stdin/stdout для MCP-клиентов
📱 Отправка уведомлений в Telegram (через
python-telegram-bot)🌐 Прокси SOCKS5 (по умолчанию
socks5://192.168.0.250:2081)🧪 Unit-тесты (mock, без сети)
Related MCP server: mcp-telegram
Требования
Python 3.11+
Windows 10/11 (PowerShell 5.1)
Установка
# Создание виртуального окружения
python -m venv venv
# Установка зависимостей (используем прямой вызов python)
.\venv\Scripts\python.exe -m pip install --upgrade pip
.\venv\Scripts\python.exe -m pip install -r requirements.txt
# Настройка переменных окружения
copy .env.example .env
# Отредактируйте .env: BOT_TOKEN, TG_CHAT_ID и т.д.Запуск
HTTP (StreamableHTTP)
# Запуск HTTP-сервера (двойной вызов, без активации venv)
.\venv\Scripts\python.exe main.pyИли через батник:
.\run_server.batСервер запустится на 127.0.0.1:8000, MCP-эндпоинт доступен на /mcp.
Stdio
# Запуск MCP-сервера через stdin/stdout
.\venv\Scripts\python.exe mcp_stdio.pyПодключение MCP-клиента
Ниже примеры конфигурации для подключения MCP-клиента (Claude Desktop, opencode, VS Code и т.д.) к каждому транспорту.
Конфиг для HTTP (StreamableHTTP)
{
"mcpServers": {
"telegram": {
"type": "streamableHttp",
"url": "http://127.0.0.1:8000/mcp"
}
}
}Конфиг для STDIO
{
"mcpServers": {
"telegram": {
"type": "stdio",
"command": ".\\venv\\Scripts\\python.exe",
"args": ["mcp_stdio.py"],
"cwd": "<путь к корню проекта, например C:\\Projects\\TelegramMCP>"
}
}
}
cwdможно опустить —mcp_stdio.pyсам добавляет свою директорию вsys.path, поэтому сервер запустится из любого рабочего каталога. Путь кpython.exeдолжен быть абсолютным или указываться относительноcwd.
Переменные окружения (.env)
Переменная | Описание | По умолчанию |
| Токен Telegram-бота |
|
| ID чата для уведомлений |
|
| URL SOCKS5-прокси |
|
| Логин прокси (пусто = без auth) |
|
| Пароль прокси |
|
| Адрес привязки |
|
| Порт сервера |
|
| Уровень логов |
|
Использование MCP-инструмента
Сервер предоставляет один инструмент MCP:
notify_task_done(project_name: str, status: str, message: str?)Проект поддерживает два транспорта — оба используют одинаковую логику (app/server.py):
Транспорт | Запуск | MCP-эндпоинт |
StreamableHTTP |
|
|
stdio |
| stdin / stdout |
Вызов инструмента через HTTP
{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "notify_task_done",
"arguments": {
"project_name": "MyProject",
"status": "completed",
"message": "All green"
}
}
}Вызов инструмента через stdio
MCP-клиент (например, Claude Desktop, VS Code) подключается к mcp_stdio.py напрямую через stdio. Сами JSON-RPC-сообщения передаются клиентом автоматически.
В Telegram будет отправлено сообщение: Задача "MyProject": completed
Тестирование
.\venv\Scripts\python.exe -m pytest tests/ -vВсе тесты используют mock — реальная сеть не используется.
Подробности см. в tests/TEST_GUIDE.md.
This server cannot be deployed
Maintenance
Related MCP Connectors
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
MCP server for progressive tool usage at any scale (see https://klavis.ai)
MCP server for generating rough-draft project plans from natural-language prompts.
Telegram bridge for your MCP-compatible agent. Bidirectional, no LLM in our stack.
Related MCP Servers
- AlicenseAqualityFmaintenanceA streamlined MCP server designed to send AI agent progress updates, images, and files directly to a user via Telegram. It allows users to monitor long-running tasks and receive notifications or build artifacts through a simple messaging interface.336 npm7MIT
- AlicenseAqualityCmaintenanceAn MCP server that lets an LLM send messages, photos, and documents to Telegram through a bot. Provides four tools: get_me, send_message, send_photo, and send_document.4MIT
- FlicenseNot gradedqualityBmaintenanceAn MCP server that sends and receives Telegram messages to a fixed contact, and triggers claude.ai routines for automatic replies.-
- AlicenseNot gradedqualityBmaintenanceMCP server that exposes a Telegram bot over stdio transport, enabling LLM agents to discover each other, announce capabilities, and communicate via messages in shared group chats. It provides tools like whoami, announce, list_agents, ping_agent, send_message, list_chats, get_recent_messages, and wait_for_reply.18 PyPIMIT