Telegram MCP Server
Provides tools for interacting with a personal Telegram account via MTProto, including listing chats, retrieving and sending messages, searching messages, downloading media, forwarding, editing, deleting messages, sending files, and managing 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 ServerSearch recent Telegram messages for 'remote backend' job posts"
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 Server
MCP server sederhana untuk menghubungkan akun Telegram pribadi kamu ke AI assistant (Claude, Cursor, VS Code, Claude Code, dll).
Dibuat mirip konsep whatseal-mcp (Edo Sulai) / WhatsApp MCP style:
Pakai user account (bukan bot) via MTProto
Tools yang fokus & berguna
Auth pakai session string (portable)
Cocok untuk cari lowongan remote di channel Telegram lalu apply via email
Fitur (Tools)
Tool | Deskripsi |
| Info akun Telegram kamu |
| List chat / grup / channel (bisa filter unread) |
| Ambil pesan dari chat tertentu |
| Kirim pesan teks (bisa reply) |
| Cari keyword (bisa filter X hari terakhir, global/per-chat) — cocok cari lowongan |
| Tandai chat sudah dibaca |
| Detail info chat / user / grup |
| Download foto/dokumen/video dari pesan |
| Forward pesan ke chat lain |
| Edit pesan yang sudah dikirim |
| Hapus satu atau banyak pesan |
| Kirim file lokal (foto, dokumen, dll) |
| List kontak Telegram |
Related MCP server: telegram-mcp
Setup
1. Dapatkan API ID & Hash
Login dengan nomor Telegram
Buat aplikasi baru (isi title & short name bebas)
Catat api_id dan api_hash
2. Install dependency
cd telegram-mcp
python3 -m venv .venv
source .venv/bin/activate # Windows: .venv\\Scripts\\activate
pip install -r requirements.txt3. Generate Session String
cp .env.example .env
# Edit .env → isi TELEGRAM_API_ID dan TELEGRAM_API_HASH
python generate_session.pyIkuti prompt:
Masukkan nomor HP (format internasional, contoh
+6281234567890)Masukkan kode yang dikirim Telegram
Password 2FA jika ada
Copy session string yang muncul → tempel ke .env sebagai TELEGRAM_SESSION_STRING.
Session string ini setara password. Jangan share ke siapapun.
4. Test manual
python server.pyKalau muncul log Connected as ... berarti sukses (server menunggu input MCP via stdio).
Konfigurasi MCP Client
Claude Desktop / Cursor / VS Code
{
"mcpServers": {
"telegram": {
"command": "/ABSOLUTE/PATH/TO/telegram-mcp/.venv/bin/python",
"args": ["/ABSOLUTE/PATH/TO/telegram-mcp/server.py"],
"env": {
"TELEGRAM_API_ID": "12345678",
"TELEGRAM_API_HASH": "your_api_hash",
"TELEGRAM_SESSION_STRING": "your_session_string"
}
}
}
}Claude Code
claude mcp add telegram -s user \\
-e TELEGRAM_API_ID=12345678 \\
-e TELEGRAM_API_HASH=your_hash \\
-e TELEGRAM_SESSION_STRING=your_session \\
-- python /path/to/telegram-mcp/server.pyContoh Prompt — Use Case Cari Lowongan Remote + Apply
Workflow yang paling cocok:
Cari lowongan
"Cari pesan Telegram yang mengandung 'remote golang' dalam 7 hari terakhir"
"Search keyword 'backend remote' atau 'hiring remote' di semua chat"
"List lowongan remote di channel @nama_channel_job dalam 3 hari terakhir"
Listing & filter
"Dari hasil search tadi, list yang relevan buat backend / full-stack, ringkas masing-masing 1 paragraf"
"Pilih 3 lowongan yang paling cocok, kasih company + role + link apply kalau ada"
Apply via email (pakai Gmail yang sudah connect)
"Buatkan email apply untuk lowongan X"
"Kirim email apply ke hr@company.com dengan subject dan body yang sudah kita draft"
Prompt lain
"Cek chat Telegram yang belum dibaca"
"Ringkas 20 pesan terakhir dari grup XYZ"
"Kirim pesan ke @username: ..."
"Download media dari pesan ID ... di chat ..."
Catatan Keamanan
Ini user account (MTProto). Jangan dipakai untuk spam / mass messaging → risiko ban.
Session string = akses penuh ke akun. Simpan aman.
Tool
send_message/send_file/delete_messagesbisa mengubah data atas nama kamu. Hati-hati.Disarankan mulai dengan tool read-only dulu, baru enable send setelah yakin.
Next Ideas
Draft management
Rate limiting
ACL (whitelist chat tertentu)
Transcribe voice notes
React to messages
Kalau mau ditambah tools tertentu, bilang saja.
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 Servers
- FlicenseAqualityBmaintenanceEnables AI agents to interact with Telegram via MTProto, supporting high-performance communication and seamless integration.1
- Alicense-qualityDmaintenanceEnables AI agents to read, send, and organize Telegram messages and chats. Supports tools for listing chats, fetching messages, sending/reply, archiving, muting, and folder management.1MIT
- Flicense-qualityCmaintenanceConnects AI agents to Telegram via the official TDLib library, enabling tools like getting user info, listing dialogs, and searching messages.
- Alicense-qualityCmaintenanceEnables AI agents to interact with a user's Telegram account: list chats, read history, search, and send messages through Telegram's MTProto API.1MIT
Related MCP Connectors
Multi-tenant Telegram gateway for AI agents — HTTP+stdio, 8 tools, MTProto User API
Telegram bridge for your MCP-compatible agent. Bidirectional, no LLM in our stack.
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
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/dendyramdhan/telegram-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server