MCP-сервер для Telegram
Provides tools for interacting with Telegram chats through a bot, including sending messages to a specific chat or all chats, retrieving recent messages from a chat, and getting chat information.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
MCP-сервер для Telegram
Асинхронный MCP-сервер с взаимодействием с ТГ-ботом на базе mcp и aiogram 3.
Основные инструменты MCP
Асинхронный
send_message— эта функция помогает отправлять сообщения в определенный чат или во все сразу.Асинхронный
get_recent_messages— эта функция возвращает словарь или список с определенным количеством сообщений.Асинхронный
get_chat_info— эта функция возвращает информацию о чате.
Related MCP server: mcp-server-telegram
Начало работы
Подготовка окружения
# Клонирование репозитория
git clone
# Создание и активация виртуального окружения
python -m venv .venv
# Windows:
venv\\Scripts\\activate
# macOS/Linux:
source venv/bin/activate
# Установка зависимостей
pip install -r requirements.txt
Настройка .env.example
Создайте бота через @BotFather
Получите токен
Присвойте его переменной
TOKEN_BOTбез кавычек и пробелов
Настройка MCP
Запустите в консоли
npx @modelcontextprotocol/inspectorВ браузере, в открывшейся странице, справа сверху нажмите на кнопку
Add Servers, затем+ Add manuallyДалее в окне заполните
a.
Server ID, придумайте название вашего сервераb.
Transport, оставьте как есть —stdio (local process)c.
Command, напишите полный путь до вашего проекта, например,путь_до_вашей_папки_с_проектом\.venv\Scripts\python.exed.
Arguments, напишите имя файла —main.pye.
Environment, можно оставить пустымf.
Working directory, путь до папки проекта
Работа проекта
Запуск
Включите тумблер своего проекта в MCP и дождитесь Connected
Тестирование
Добавьте бота в разные группы и напишите пару сообщений в них
Зайдите на страницу MCP
Нажмите на кнопку
toolsвверхуПротестируйте каждую функцию
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Schedule posts, read analytics and manage Telegram channels in TGStudio from any MCP client.
Telegram bridge for your MCP-compatible agent. Bidirectional, no LLM in our stack.
Read chats and members; send, edit and delete messages with a bot in Telegram.
Messaging tools for AI agents: send messages, manage chats, groups and channels.
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-
- AlicenseNot gradedqualityDmaintenanceIntegrates Telegram bots as MCP tools for sending messages to staff groups or manager chats, listing buffered messages, and viewing group members.MIT
- FlicenseNot gradedqualityAmaintenanceExposes Telegram Bot API operations as MCP tools, enabling managing messages, chats, and forum topics via a FastMCP server.-
- AlicenseNot gradedqualityCmaintenanceEnables interacting with Telegram chats through a browser-bound MCP bridge, providing tools to list chats, read messages, and send messages with optional AI assistance.GPL 3.0