Telegram MCP server: read, send, and search messages and manage chats via your account.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Give your AI tools direct access to Telegram. Read chats, send messages, search history, manage groups, download media β all via the Model Context Protocol.
telegram-mcp is an MCP server that connects your Telegram account to Claude Code, Cursor, Windsurf, or any AI tool that supports MCP. Instead of switching to Telegram, you ask the AI to check your messages, reply to someone, or find that link from last week β and it does.
What makes this different:
This is not a bot. There is no bot to add. No third party gives you a phone number. You log in as yourself, with the same phone number you already use for Telegram. If an AI tool tells you to "add a bot to give you a number", ignore it β and never share a Telegram login code with anyone, ever.
If you're asking Claude (or another AI agent) to install this for you: the agent can wire up the MCP server config and clone the repo, but the agent cannot complete the login step. Login is interactive β Telegram sends a code to your phone, and you type it into a terminal prompt yourself. You must run
telegram-mcp loginin a real terminal once, then the agent can use the server.
Or with pip:
Both provide the telegram-mcp command.
Run the login command once to create your Telegram session:
You'll need a Telegram API ID and hash first. To get them:
The login command will prompt for these if not already configured, then ask for:
The session is saved to ~/.telegram-mcp/session.session. You only need to do this once.
Add to your MCP config (~/.claude.json):
If installed from source:
You almost certainly haven't logged in yet. Installing the MCP server and logging into Telegram are two separate steps β installation alone is not enough. Run telegram-mcp login in a real terminal and complete the phone + code + 2FA flow. After that, restart Claude Code (or your MCP client) so the proxy picks up the new session.
You can confirm the session is healthy with the get_status tool β it returns {"connected": true, "authorized": true} when ready.
This is a hallucination. The server uses MTProto (Telethon) and logs in as your full Telegram account β every chat, group, channel, and contact you can see in the Telegram app is accessible. There is no bot involved. If this message appears, the underlying cause is almost always that the login step hasn't been done; see above.
Do not. This is unsafe advice, never required, and never part of this MCP's setup. Telegram login codes are how attackers steal accounts β never enter them into any bot or third-party service. The only place to type your code is the telegram-mcp login prompt running in your own terminal.
Check for a stale lock: ls ~/.telegram-mcp/daemon.lock and lsof ~/.telegram-mcp/daemon.sock. If no process is actually running, remove the stale socket file (rm ~/.telegram-mcp/daemon.sock) and retry. The lock auto-releases when the daemon exits cleanly or crashes.
Same root cause as the first item β run telegram-mcp login. "Not configured" means ~/.telegram-mcp/config.json is missing API credentials; "Not authorized" means the credentials are there but no Telegram session exists yet.
| Tool | Description |
|---|---|
list_chats | List all dialogs (groups, channels, DMs) with unread counts |
get_chat_info | Details for a specific chat (members, description, type) |
create_group | Create a new group |
create_channel | Create a new channel |
archive_chat | Archive or unarchive a chat |
mute_chat | Mute or unmute notifications for a chat |
leave_chat | Leave a group or channel |
delete_chat | Delete a chat |
mark_read | Mark a chat as read |
| Tool | Description |
|---|---|
read_messages | Get recent messages from a chat, with time and sender filters |
search_messages | Search by keyword or regex, optionally scoped to a chat |
get_message | Get a single message by ID |
get_message_replies | Get replies and thread for a message |
get_scheduled_messages | List scheduled messages in a chat |
| Tool | Description |
|---|---|
send_message | Send a message to a chat (supports reply-to for forum topics) |
edit_message | Edit a sent message |
delete_message | Delete a message |
forward_message | Forward a message to another chat |
schedule_message | Send a message at a future time |
send_reaction | React to a message with an emoji |
| Tool | Description |
|---|---|
pin_message | Pin a message in a chat |
unpin_message | Unpin a message |
| Tool | Description |
|---|---|
download_media | Download a photo, video, or document from a message |
send_file | Send a file or photo to a chat |
send_voice | Send a voice message |
send_location | Send a location |
get_sticker_sets | List available sticker packs |
| Tool | Description |
|---|---|
list_contacts | List all contacts |
get_contact | Get contact details |
| Tool | Description |
|---|---|
get_user | Get user profile info |
block_user | Block a user |
unblock_user | Unblock a user |
| Tool | Description |
|---|---|
get_participants | List members of a group or channel |
add_participant | Add a user to a group or channel |
remove_participant | Remove a user from a group or channel |
set_chat_title | Change a chat's title |
set_chat_description | Change a chat's description |
set_chat_photo | Change a chat's photo |
get_invite_link | Generate an invite link |
get_admin_log | Get admin action history |
| Tool | Description |
|---|---|
get_me | Current account info |
get_status | Connection status and session health |
get_dialogs_stats | Unread counts and chat activity summary |
export_chat | Export messages from a chat as JSON (max 1000 per call) |
clear_cache | Wipe the local message cache |
All data lives in ~/.telegram-mcp/:
The cache is passive and transparent:
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/telegram-mcp-2)<a href="https://allmcps.com/mcp/telegram-mcp-2"><img src="https://allmcps.com/api/badge/telegram-mcp-2?style=directory" alt="Telegram MCP on AllMCPs" /></a>