
prgebish/mcp-telegram
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
MCP-сервер для Telegram — подключите Клода к реальному аккаунту Telegram через пользовательский API (MTProto)
Обзор
Сервер MCP, который соединяет помощников ИИ, таких как Клод, с вами через пользовательский API (MTProto). Не бот — Клод читает и отправляет сообщения как вы. Построенный с помощью gotd/td и официального MCP Go SDK. Этот проект использует API пользователя Telegram. Вы должны получить свои собственные api id и api hash от my.telegram.org и соблюдать Условия использования API Telegram. Неправильное использование пользовательского API (спам, массовые сообщения, скрап) может привести к запрету вашей учетной записи. Вы несете полную ответственность за то, как вы используете этот инструмент.
Обзор (машинный перевод)
Сервер MCP, который соединяет помощников ИИ, таких как Клод, с вашей ** реальной учетной записью Telegram** через пользовательский API (MTProto). Не бот — Клод читает и отправляет сообщения как вы.
Построенный с помощью gotd/td и официального MCP Go SDK.
Условия использования API Telegram: этот проект использует API пользователя Telegram. Вы должны получить свои собственные api_id и api_hash от my.telegram.org и соблюдать Условия использования API Telegram. Неправильное использование пользовательского API (спам, массовые сообщения, скрап) может привести к запрету вашей учетной записи. Вы несете полную ответственность за то, как вы используете этот инструмент.
Содержимое
-
Особенности
-
Что ты можешь с этим сделать? Как это можно сравнить с chaindead/telegram-mcp Быстрый старт Конфигурация клиента
-
Справка о конфигурации
-
Безопасность
Особенности
Инструмент Что это такое | Требуемое разрешение
|tg_me | Возврат информации о текущем счете | — |
tg_dialogs | Список диалогов, видимых в белом списке ACL | — |
| tg_history | История сообщений Fetches с пагинацией, фильтрацией даты и загрузкой мультимедиа | read
| tg_search | Поиск сообщений в чате по текстовому запросу, с дополнительным фильтром отправителя | read |
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
README
Показан фрагмент оригинального README. Открыть оригинал.
mcp-telegram
An MCP server that connects AI assistants like Claude to your real Telegram account via the User API (MTProto). Not a bot — Claude reads and sends messages as you.
Built with gotd/td and the official MCP Go SDK.
Telegram API Terms of Service: This project uses the Telegram User API. You must obtain your own
api_idandapi_hashfrom my.telegram.org and comply with the Telegram API Terms of Service. Misuse of the User API (spam, bulk messaging, scraping) may result in your account being banned. You are solely responsible for how you use this tool.
Contents
- Features
- What you can do with it
- How it compares to chaindead/telegram-mcp
- Quick start
- Client configuration
- Configuration reference
- Security
Features
| Tool | What it does | Required permission |
|---|---|---|
tg_me |
Returns current account info | — |
tg_dialogs |
Lists dialogs visible to the ACL whitelist | — |
tg_history |
Fetches message history with pagination, date filtering, and media download | read |
tg_search |
Searches messages in a chat by text query, with optional sender filter | read |
tg_send |
Sends a text message or file, with optional reply-to | send |
tg_forward |
Forwards messages from one chat to another | read + send |
tg_draft |
Saves a draft message (does not send) | draft |
tg_mark_read |
Marks a chat as read | mark_read |
Additional capabilities:
- File and photo sending
- Forward messages between chats
- Reply to specific messages
- Download photos and documents from message history
- Filter history by date range (
since/until) - Typed peer references (
user:ID,chat:ID,channel:ID) to prevent ID collisions - Lazy peer resolution — avoids
FLOOD_WAITerrors at startup - Global rate limiting at the RPC level
What you can do with it
Once connected, you can ask your AI assistant things like:
Catch up on messages
- “Check my unread Telegram messages and give me a summary”
- “What did @alice write in the last 24 hours?”
- “Show me messages from the Dev Team chat since Monday”
Reply and communicate
- “Draft a response to the last message from @bob — don’t send it yet”
- “Send ‘sounds good, let’s meet at 3pm’ to @alice”
- “Reply to message 1234 in the project chat with my feedback”
Manage your inbox
Установка
npx @prgebish/mcp-telegram serve --config config.yamlКонфигурация
{
"mcpServers": {
"telegram": {
"command": "/path/to/mcp-telegram",
"args": ["serve", "--config", "/path/to/config.yaml"],
"env": {
"TG_APP_ID": "12345",
"TG_API_HASH": "your_api_hash"
}
}
}
}