telegram-mcp-cli
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| TELEGRAM_API_ID | Yes | From my.telegram.org, API development tools | |
| TELEGRAM_SESSION | Yes | From `telegram-mcp login`. Full account access and does not expire. | |
| TELEGRAM_API_HASH | Yes | Issued with the api_id, same page |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| whoamiA | The Telegram account this session is signed in as. Call it first when it matters whose messages you are about to read or send. |
| resolveA | Turn a @username, phone number or numeric id into a chat you can act on. Use it before sending to someone you only know by handle. |
| list_chatsA | Recent conversations, newest first. Returns a compact row per chat: id, name, kind, unread count and a short preview of the last message. Use |
| get_chatA | Details of a single chat: name, kind, username, member count and description where the chat has them. |
| historyA | Messages from one chat, newest first. Bodies are truncated to a preview unless |
| searchA | Search message text, either inside one chat or across the whole account when no peer is given. |
| sendA | Send a message to a chat. This is visible to the recipient immediately and posts as you, so only send what was actually asked for. |
| editA | Change the text of a message you sent. Telegram marks it edited. |
| deleteA | Delete one or more messages. This cannot be undone, and with revoke it removes them for everyone in the chat, not only for you. |
| mark_readA | Clear the unread count on a chat. |
| forwardA | Forward messages from one chat into another. |
| download_mediaA | Save the photo, video, document or voice note attached to a message, and return the local path. The file is written to disk rather than returned inline, because a base64 image in a tool result is enormous and unreadable. |
| send_fileB | Send a local file to a chat, with an optional caption. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
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/thenavidm/telegram-mcp-cli'
If you have feedback or need assistance with the MCP directory API, please join our Discord server