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.
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., "@MCP-сервер для Telegramотправь сообщение в Telegram-чат разработки: деплой завершён"
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.
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вверхуПротестируйте каждую функцию
This server cannot be deployed
Maintenance
Related MCP Connectors
Telegram bridge for your MCP-compatible agent. Bidirectional, no LLM in our stack.
Messaging tools for AI agents: send messages, manage chats, groups and channels.
Unofficial Telegram MCP server — read, search, reply and react in your own Telegram account.
Search your AI chat history (ChatGPT, Claude, Codex) from any MCP client. Remote, private, read-only
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 gradedqualityCmaintenanceIntegrates Telegram bots as MCP tools for sending messages to staff groups or manager chats, listing buffered messages, and viewing group members.7 npmMIT
- FlicenseNot gradedqualityAmaintenanceExposes Telegram Bot API operations as MCP tools, enabling managing messages, chats, and forum topics via a FastMCP server.-
- AlicenseAqualityDmaintenanceExposes the Telegram Bot API as tools for MCP clients, enabling sending messages, photos, polls, and more via a Telegram bot.11MIT