telegram-mcp-http
Provides tools for interacting with a Telegram account via MTProto/Telethon, including getting account info, listing chats, fetching and searching messages, sending messages, and retrieving contacts.
Click on "Install 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., "@telegram-mcp-httpsearch my Telegram chats for messages about 'project alpha'"
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.
telegram-mcp-http
Telegram MCP-сервер (MTProto / Telethon) с HTTP-транспортом — разворачивается на Railway за ~5 минут, каждый пользователь работает со своим Telegram-аккаунтом.
В репозитории нет никаких ключей и токенов — все данные подключаются через переменные окружения на Railway.
Что умеет (6 инструментов)
Инструмент | Что делает |
| Кто я в Telegram |
| Список всех чатов/каналов/групп |
| История сообщений чата |
| Поиск по всем чатам |
| Отправка сообщения |
| Контакты аккаунта |
Related MCP server: telegram-mcp
Установка за 5 шагов
Шаг 1. Получите api_id / api_hash (2 мин)
Откройте my.telegram.org → войдите по своему номеру
API development tools → создайте приложение (название любое)
Скопируйте api_id (число) и api_hash (строка)
Шаг 2. Сгенерируйте строку сессии (2 мин)
На своём компьютере (нужен Python 3.9+):
pip install telethon
python generate_session.pyВведите api_id, api_hash, телефон и код подтверждения из Telegram. Скрипт напечатает TG_SESSION_STRING — скопируйте её.
⚠️ Строка сессии = полный доступ к вашему аккаунту. Не публикуйте её нигде.
Шаг 3. Разверните на Railway (1 мин)
Сделайте Fork этого репозитория себе на GitHub
railway.com → New Project → Deploy from GitHub repo → выберите свой форк
В сервисе: Variables → добавьте три переменные:
TG_API_IDTG_API_HASHTG_SESSION_STRING
Settings → Networking → Generate Domain
Шаг 4. Проверка
Откройте https://ВАШ-ДОМЕН.up.railway.app/health
Должно быть: "status": "ok", "telegram_connected": true и все "config": true.
Шаг 5. Подключите к своему ИИ-клиенту
{
"mcpServers": {
"telegram": {
"url": "https://ВАШ-ДОМЕН.up.railway.app/mcp",
"type": "http"
}
}
}Частые проблемы
Симптом | Причина | Решение |
| Не заданы переменные | Variables на Railway → задать → передеплой |
| Неверная сессия или api_hash | Перегенерируйте |
Клиент MCP не подключается | Кеш старого деплоя | Railway → Deployments → Redeploy |
Безопасность
Каждому — свой форк и свой Railway-проект. Делить одну сессию на нескольких людей нельзя (Telegram разорвёт сессии).
Строка сессии хранится только в Variables вашего Railway-аккаунта.
Для отзыва доступа: Telegram → Настройки → Устройства → завершить сеанс, затем сгенерируйте новую строку.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Telegram bridge for your MCP-compatible agent. Bidirectional, no LLM in our stack.
Multi-tenant Telegram gateway for AI agents — HTTP+stdio, 8 tools, MTProto User API
Unified inbox MCP for WhatsApp, Telegram, Email, voice — read/send messages, search, AI agents.
Talk to your public-facing AI from any MCP client — Claude, ChatGPT, Cursor, Cline, Windsurf.
Related MCP Servers
- 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.18532MIT
- 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.36
- FlicenseBqualityCmaintenanceEnables MCP clients to interact with Telegram user accounts, providing tools for messaging, contacts, groups, channels, and media management through the Telegram API.851
- AlicenseAqualityBmaintenanceEnables use of a personal Telegram account within MCP clients for reading and sending messages, searching chats, and managing media, all running locally.1617MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/mrvolkomorov/telegram-mcp-http'
If you have feedback or need assistance with the MCP directory API, please join our Discord server