capy-tg-mcp
Allows MCP clients to interact with a personal Telegram account, providing tools for reading and searching chats, summarizing unread messages, sending and editing messages, handling files, transcribing voice messages, managing groups and channels, and supporting multiple accounts.
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., "@capy-tg-mcpSummarize unread messages from my Telegram chats"
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.
CapyAgent Telegram MCP
Подключает личный аккаунт Telegram к CapyAgent, Codex, Cursor и любым другим MCP-клиентам. Около 80 инструментов: чтение и поиск по чатам, сводки непрочитанного, отправка и правка сообщений, файлы, голосовые с расшифровкой, группы и каналы, несколько аккаунтов сразу.
Главное про безопасность
По умолчанию сервер отдаёт агенту только инструменты чтения (TELEGRAM_EXPOSED_TOOLS=read-only). Запись включается явно:
read-only+send_message,reply_to_message- чтение плюс перечисленные инструменты;all- всё, включая удаление, управление группами и админами.
Дополнительно можно ограничить чаты: TELEGRAM_ALLOWED_CHAT_IDS=123,-100456.
Одну Telethon-сессию нельзя держать двумя процессами одновременно, она ломается. Под этот сервер нужна отдельная сессия.
Related MCP server: Telegram MCP Server
Установка
git clone https://github.com/smolnikov-k/capy-tg-mcp && cd capy-tg-mcp
uv sync
cp .env.example .env # вписать TELEGRAM_API_ID и TELEGRAM_API_HASH с my.telegram.org
uv run capy-tg-mcp-session # вход по номеру и коду, выдаст строку сессииСтроку сессии положить в .env как TELEGRAM_SESSION_STRING. Чтобы Телеграм не видел «новое устройство» при каждом подключении, задать TELEGRAM_DEVICE_MODEL, TELEGRAM_SYSTEM_VERSION, TELEGRAM_APP_VERSION.
Подключение к MCP-клиенту
Сервер работает по stdio. Без клонирования, прямо с GitHub:
uvx --from git+https://github.com/smolnikov-k/capy-tg-mcp@v1.0.0 capy-tg-mcpПеременные TELEGRAM_API_ID, TELEGRAM_API_HASH и TELEGRAM_SESSION_STRING передаются в окружении процесса. Из клонированной папки:
uv --directory /path/to/capy-tg-mcp run main.pyТесты
uv sync --group dev && uv run pytest -qПолная документация по всем инструментам и переменным: docs/README.upstream.md.
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.
Unified inbox MCP for WhatsApp, Telegram, Email, voice — read/send messages, search, AI agents.
Carbon Voice MCP serves as a bridge that connects AI assistants like ChatGPT, Claude, and Cursor to a user's Carbon Voice account, turning voice messages and conversations into a private, on-demand knowledge base. It provides 28 specialized tools for comprehensive voice messaging management, including creating and sending messages, accessing conversation history with instant transcription, running AI actions (summarization, TLDR generation, meeting notes), and managing workspace collaboration through folders, contacts, and team communications.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to interact with Telegram accounts through MCP, supporting messaging, contacts, groups, media, and admin functions.4Apache 2.0
- AlicenseBqualityDmaintenanceEnables full access to your personal Telegram account via MCP, allowing reading, sending, and searching messages, managing chats, and retrieving user information through natural language commands.1829 npm4MIT
- AlicenseCqualityDmaintenanceConnects AI tools to Telegram via MCP, enabling reading chats, sending messages, managing groups, and more using your own account.545MIT
- FlicenseNot gradedqualityBmaintenanceEnables AI agents to control a real Telegram user account via MTProto, allowing message sending, chat reading/searching, and message management through MCP tools.25 npm-