by chigwell
Telegram MCP server powered by Telethon to let MCP clients read chats, manage groups, and send/modify messages, media, contacts, and settings.
# Add to your Claude Code skills
git clone https://github.com/chigwell/telegram-mcpGuides for using mcp servers skills like telegram-mcp.
Last scanned: 12/1/2026
{
"issues": [
{
"file": "README.md",
"line": 131,
"type": "secret-exfiltration",
"message": "Instruction appears to send credentials/secrets to an external endpoint",
"severity": "medium"
}
],
"status": "PASSED",
"scannedAt": "2026-12-01T23:12:44.848Z",
"npmAuditRan": true,
"pipAuditRan": true,
"promptInjectionRan": true
}telegram-mcp is an open-source mcp servers skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by chigwell. Telegram MCP server powered by Telethon to let MCP clients read chats, manage groups, and send/modify messages, media, contacts, and settings. It has 2,120 GitHub stars.
Yes. telegram-mcp passed AgentsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/chigwell/telegram-mcp" and add it to your Claude Code skills directory (see the Installation section above).
telegram-mcp is primarily written in Python. It is open-source under chigwell on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other MCP Servers skills you can browse and compare side by side. Open the MCP Servers category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh telegram-mcp against similar tools.
No comments yet. Be the first to share your thoughts!
Top skills in this category by stars
A Telegram integration for Claude, Cursor, and other MCP-compatible clients. It exposes Telegram account, chat, message, contact, media, folder, and admin operations through the Model Context Protocol using Telethon.
Basic Telegram MCP usage in Claude:

Asking Claude to analyze chat history and send a response:

Message sent successfully:

Looking for ready-to-use workflows, prompt examples, or integration recipes? Explore the Skills Documentation for step-by-step guides on:
The server currently includes 80+ MCP tools grouped into these areas:
send_message, reply_to_message, and edit_message support classic formatting (parse_mode='md'/'html') and server-side rich formatting (parse_mode='rich'/'rich_markdown'/'rich_html' — full Markdown/HTML with tables, headings, formulas, and collapsible sections). Rich modes require Telegram Premium on the account; Premium is re-checked on every call, and without it nothing is sent — the tool returns a structured telegram_premium_required result so the agent can reformat with classic modes and retry. send_message, reply_to_message, and edit_message also accept format_date to render a date as a tappable chip. edit_message reports an edit that changes nothing as not modified instead of an error. edit_message_media replaces the attachment for one message ID; for an album, it edits only that item and Telegram enforces media-type restrictions. Omitting caption preserves the existing caption and formatting; an empty caption clears it.list_inline_buttons describes each button by row, column and kind (what pressing it does), for inline buttons and reply keyboards. press_inline_button presses callback and game buttons, returns the bot's answer with alert and url, and refuses buttons that need the 2FA password.
get_message_reactions returns an empty list for a message with no reactions. To reuse a custom reaction, pass the returned custom:<document_id> value to send_reaction.
vote_poll(chat_id, message_id, option_indices, account=None) votes in an existing poll.
Read the poll with get_messages first, then select zero-based answer indices: [0]
for the first answer, or [0, 2] for the first and third in a multiple-choice poll.
This may replace an existing vote; empty selections, duplicate or out-of-range
indices, closed polls, and multiple answers in single-choice polls are rejected.
Telegram enforces voting permissions and restrictions on changing quiz votes.
In supergroups where you can post as more than one identity (for example as a channel you
own), get_send_as(chat_id) lists the allowed senders and set_default_send_as(chat_id, send_as) saves which one your later messages use: "me" for your own account, or the ID or
username of an allowed sender. The saved sender applies in all your Telegram clients.
Anonymous posting as an admin is an admin right and is not changed by it.
send_typing(chat_id, seconds=5, topic_id=None, account=None) sends a temporary typing
indicator without sending a message. Duration must be 0.5 to 45 seconds; the tool blocks
until it finishes, so call it before send_message or reply_to_message, not in parallel.
It refreshes the indicator at intervals of at most four seconds and attempts to clear it
on completion, failure, or cancellation. topic_id targets a specific forum topic.
Overlapping calls for the same account, peer, and topic are rejected rather than cancelling each other's indicators. Flood waits are not slept through automatically for these RPCs; the typing phase has a 50-second timeout and cleanup a separate three-second timeout. A failed cleanup is reported explicitly. Successful RPC responses confirm Telegram accepted the requests, not that another client's UI displayed them. This is a write operation and respects the existing account routing and chat allowlist.
resolve_phone(phone) finds the Telegram user behind a phone number without adding them to your contacts, and returns the same raw result as resolve_username. Pass the number in E.164 form: a leading + and the country code, 7 to 15 digits in total. Spaces, dashes, dots and parentheses are ignored. Local forms such as 8 999 000-11-22 or 0044 ... are rejected before Telegram is called, because the country would have to be guessed. Telegram only answers when the owner's privacy settings let you find them by number. With several accounts configured, account is required, since each lookup spends that account's quota.
On a FloodWait the tool returns the wait and does not retry. Telethon ignores a per-request sleep threshold, so the tool sets the client's flood_sleep_threshold to 0 and restores it when the lookup returns. The 0 holds for as long as the lookup takes, including Telethon's own resends: any other request on that account that gets a FloodWait in that window raises it instead of sleeping.
resolve_phone is read-only, so it is part of TELEGRAM_EXPOSED_TOOLS=read-only. To hide it, exclude it by name, e.g. TELEGRAM_EXPOSED_TOOLS=read-only-resolve_phone.
Telegram publishes no quota for phone lookups and answers bulk lookups with long FloodWaits, so you can cap them locally. Both limits are off unless set. Every lookup admitted past local validation counts, whatever happens next: a Telegram answer or error, a FloodWait raised by Telethon's local pre-check without sending, or a call cancelled while it waits for another lookup on the same account. That errs on the side of refusing. Numbers rejected locally do not count. Telethon may resend a lookup itself after a server error, timeout or DC migration; that still counts once. A refused call sends nothing and says how many seconds to wait.
TELEGRAM_RESOLVE_PHONE_MAX_PER_DAY=12 # lookups per rolling 24 hours (0 or unset = no cap)
TELEGRAM_RESOLVE_PHONE_MIN_INTERVAL_SECONDS=5 # minimum gap between lookups (0 or unset = none)
TELEGRAM_RESOLVE_PHONE_STATE_FILE=/path/to/resolve-phone.json # keep the count across restarts
Without a state file the count lives in memory and restarts from zero with the server. The state file holds only lookup timestamps (owner-only, written atomically), is shared by every server process that points at it, and covers all accounts together. A <state file>.lock file next to it serialises those processes. If it exists but cannot be parsed, lookups are refused until you fix or delete it; deleting it resets the count. A malformed limit value also refuses lookups instead of running unlimited. The history keeps only the newest max(MAX_PER_DAY, 1) timestamps, so after raising the cap the first window counts only the lookups that were kept.
list_calls(chat_id=None, from_date=None, to_date=None, limit=50, account=None) lists voice and video calls, newest first, from Teleg