telegram-mcp
v0.1.2Telegram MCP server: read, send, and search messages and manage chats via your account.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_chats
List all dialogs (groups, channels, DMs) with unread counts
| Parameter | Type | Description |
|---|---|---|
limit | integer | Max chats to return (default 50) |
get_chat_info
Get details for a specific chat
| Parameter | Type | Description |
|---|---|---|
chat_id * | integer | string | Chat ID or @username |
create_group
Create a new group
| Parameter | Type | Description |
|---|---|---|
title * | string | |
users * | array |
create_channel
Create a new channel
| Parameter | Type | Description |
|---|---|---|
title * | string | |
about | string |
archive_chat
Archive or unarchive a chat
| Parameter | Type | Description |
|---|---|---|
chat_id * | integer | string | |
archive | boolean |
mute_chat
Mute or unmute notifications for a chat
| Parameter | Type | Description |
|---|---|---|
chat_id * | integer | string | |
mute | boolean |
leave_chat
Leave a group or channel (DESTRUCTIVE: requires confirm=true)
| Parameter | Type | Description |
|---|---|---|
chat_id * | integer | string | |
confirm | boolean | Must be true to execute this destructive action. Without it, returns a warning. |
delete_chat
Delete a chat (DESTRUCTIVE: requires confirm=true)
| Parameter | Type | Description |
|---|---|---|
chat_id * | integer | string | |
confirm | boolean | Must be true to execute this destructive action. Without it, returns a warning. |
mark_read
Mark a chat as read. For forum supergroups, pass topic_id (1 for the General topic) to also clear the per-topic unread cursor.
| Parameter | Type | Description |
|---|---|---|
chat_id * | integer | string | |
topic_id | integer | Forum topic root message ID. Pass 1 for the General topic. Required to clear the topic badge in forum supergroups. |
read_messages
Get recent messages from a chat. For forum supergroups, pass topic_id to scope to a single topic (use 1 for the General topic).
| Parameter | Type | Description |
|---|---|---|
chat_id * | integer | string | |
from_user | integer | string | |
limit | integer | |
offset_date | string | ISO date to read before |
topic_id | integer | Forum topic root message ID. Use 1 for General. |
search_messages
Search messages by keyword, optionally in a specific chat or chat type
| Parameter | Type | Description |
|---|---|---|
query * | string | |
chat_id | integer | string | |
chat_type | string | Filter search to only this chat type |
limit | integer |
search_regex
Search cached messages using a regex pattern (runs locally, not against Telegram API)
| Parameter | Type | Description |
|---|---|---|
pattern * | string | Python regex pattern |
after | string | ISO datetime — only messages after this time |
before | string | ISO datetime — only messages before this time |
chat_id | integer | string | Optional: search only this chat |
limit | integer |
get_message
Get a single message by ID
| Parameter | Type | Description |
|---|---|---|
chat_id * | integer | string | |
message_id * | integer |
get_message_replies
Get replies/thread for a message
| Parameter | Type | Description |
|---|---|---|
chat_id * | integer | string | |
message_id * | integer | |
limit | integer |
get_scheduled_messages
List scheduled messages in a chat
| Parameter | Type | Description |
|---|---|---|
chat_id * | integer | string |
send_message
Send a message to a chat. For forum supergroups, pass topic_id to post into a specific topic (1 for the General topic). Combine with reply_to to reply to a specific message within that topic.
| Parameter | Type | Description |
|---|---|---|
chat_id * | integer | string | |
text * | string | |
parse_mode | string | Message formatting: 'md' for Markdown, 'html' for HTML |
reply_to | integer | Reply to a specific message ID. |
topic_id | integer | Forum topic root message ID. Use 1 for General. Required to target a specific topic in a forum supergroup. |
edit_message
Edit a sent message
| Parameter | Type | Description |
|---|---|---|
chat_id * | integer | string | |
message_id * | integer | |
text * | string | |
parse_mode | string | Message formatting: 'md' for Markdown, 'html' for HTML |
delete_message
Delete messages (DESTRUCTIVE: requires confirm=true)
| Parameter | Type | Description |
|---|---|---|
chat_id * | integer | string | |
message_ids * | array | |
confirm | boolean | Must be true to execute this destructive action. Without it, returns a warning. |
forward_message
Forward messages to another chat (DESTRUCTIVE: requires confirm=true)
| Parameter | Type | Description |
|---|---|---|
from_chat * | integer | string | |
message_ids * | array | |
to_chat * | integer | string | |
confirm | boolean | Must be true to execute this destructive action. Without it, returns a warning. |
schedule_message
Send a message at a future time
| Parameter | Type | Description |
|---|---|---|
chat_id * | integer | string | |
schedule_date * | string | ISO datetime |
text * | string | |
reply_to | integer |
send_reaction
React to a message with an emoji
| Parameter | Type | Description |
|---|---|---|
chat_id * | integer | string | |
emoji * | string | |
message_id * | integer |
pin_message
Pin a message in a chat
| Parameter | Type | Description |
|---|---|---|
chat_id * | integer | string | |
message_id * | integer |
unpin_message
Unpin a message in a chat
| Parameter | Type | Description |
|---|---|---|
chat_id * | integer | string | |
message_id * | integer |
download_media
Download a photo, video, or document from a message
| Parameter | Type | Description |
|---|---|---|
chat_id * | integer | string | |
message_id * | integer |
download_chat_media
Download media files (photos, documents) from a chat in bulk
| Parameter | Type | Description |
|---|---|---|
chat_id * | integer | string | Chat to download from |
limit | integer | Max files to download (max 200) |
media_type | string | Type of media to download |
output_dir | string | Output directory (defaults to ~/.telegram-mcp/downloads/) |
send_file
Send a file or photo to a chat. For forum supergroups, pass topic_id to post into a specific topic (1 for the General topic). Combine with reply_to to reply to a specific message within that topic.
| Parameter | Type | Description |
|---|---|---|
chat_id * | integer | string | |
file_path * | string | |
caption | string | |
reply_to | integer | Reply to a specific message ID. |
topic_id | integer | Forum topic root message ID. Use 1 for General. Required to target a specific topic in a forum supergroup. |
send_voice
Send a voice message
| Parameter | Type | Description |
|---|---|---|
chat_id * | integer | string | |
file_path * | string |
send_location
Send a location
| Parameter | Type | Description |
|---|---|---|
chat_id * | integer | string | |
lat * | number | |
lon * | number |
get_sticker_sets
List available sticker packs
list_contacts
List all contacts
get_contact
Get contact details
| Parameter | Type | Description |
|---|---|---|
user_id * | integer | string |
get_user
Get user profile info
| Parameter | Type | Description |
|---|---|---|
user_id * | integer | string |
block_user
Block a user (DESTRUCTIVE: requires confirm=true)
| Parameter | Type | Description |
|---|---|---|
user_id * | integer | string | |
confirm | boolean | Must be true to execute this destructive action. Without it, returns a warning. |
unblock_user
Unblock a user
| Parameter | Type | Description |
|---|---|---|
user_id * | integer | string |
get_participants
List members of a group or channel
| Parameter | Type | Description |
|---|---|---|
chat_id * | integer | string | |
limit | integer |
add_participant
Add a user to a group or channel
| Parameter | Type | Description |
|---|---|---|
chat_id * | integer | string | |
user_id * | integer | string |
remove_participant
Remove a user from a group or channel (DESTRUCTIVE: requires confirm=true)
| Parameter | Type | Description |
|---|---|---|
chat_id * | integer | string | |
user_id * | integer | string | |
confirm | boolean | Must be true to execute this destructive action. Without it, returns a warning. |
set_chat_title
Change a chat's title
| Parameter | Type | Description |
|---|---|---|
chat_id * | integer | string | |
title * | string |
set_chat_description
Change a chat's description
| Parameter | Type | Description |
|---|---|---|
chat_id * | integer | string | |
description * | string |
set_chat_photo
Change a chat's photo
| Parameter | Type | Description |
|---|---|---|
chat_id * | integer | string | |
file_path * | string |
list_forum_topics
List topics in a forum supergroup (e.g. GLC). Returns id, title, unread_count, and flags per topic. The General topic is always id 1.
| Parameter | Type | Description |
|---|---|---|
chat_id * | integer | string | |
limit | integer | Max topics (cap 100) |
query | string | Optional title substring filter. |
get_invite_link
Generate an invite link for a group or channel
| Parameter | Type | Description |
|---|---|---|
chat_id * | integer | string |
get_admin_log
Get admin action history for a group or channel
| Parameter | Type | Description |
|---|---|---|
chat_id * | integer | string | |
limit | integer |
get_me
Get current account info
get_status
Get connection status and session health
get_dialogs_stats
Get unread counts and chat activity summary
export_chat
Export messages from a chat as JSON (max 1000 per call)
| Parameter | Type | Description |
|---|---|---|
chat_id * | integer | string | |
limit | integer |
clear_cache
Wipe the local message cache
sync_messages
Sync messages from all chats (or a specific chat) into the local SQLite cache for fast offline search and analytics
| Parameter | Type | Description |
|---|---|---|
chat_id | integer | string | Optional: sync only this chat. Omit to sync all. |
limit | integer | Max messages per chat (default 1000, max 5000) |
max_chats | integer | Max chats to sync when syncing all (default 50) |
get_new_messages
Get messages newer than a timestamp (polling pattern for real-time awareness)
| Parameter | Type | Description |
|---|---|---|
since * | string | ISO datetime — only return messages after this time |
chat_id | integer | string | Optional: scope to a specific chat |
limit | integer |
chat_analytics
Get analytics from cached messages: top senders by message count
| Parameter | Type | Description |
|---|---|---|
after | string | ISO datetime — only count messages after this time |
before | string | ISO datetime — only count messages before this time |
chat_id | integer | string | Optional: scope to a specific chat |
limit | integer | Max senders to return |
message_timeline
Get message counts grouped by time period (hour or day) from the local cache
| Parameter | Type | Description |
|---|---|---|
after | string | ISO datetime — only messages after this time |
before | string | ISO datetime — only messages before this time |
chat_id | integer | string | Optional: scope to a specific chat |
granularity | string | Group by hour or day (default: day) |
today_messages
Get all messages from today (UTC) from the local cache
| Parameter | Type | Description |
|---|---|---|
chat_id | integer | string | Optional: scope to a specific chat |
limit | integer | Max messages to return |
export_cached_messages
Export messages from the local cache as JSON or CSV, with optional filters
| Parameter | Type | Description |
|---|---|---|
after | string | ISO datetime — only messages after this time |
before | string | ISO datetime — only messages before this time |
chat_id | integer | string | Optional: export only this chat |
format | string | Export format (default: json) |
limit | integer |