tg-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| TG_DIR | No | Where credentials.json and session.session live | ~/.tg |
| TG_DOWNLOAD_DIR | No | Where tg_download_media writes | $TG_DIR/downloads |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| tg_list_chatsA | List recent Telegram chats with their numeric ids, newest first. |
| tg_read_chatA | Read messages from a chat, oldest first. peer is a numeric id, an @username, or 'me' for Saved Messages. Optional since/until are YYYY-MM-DD. |
| tg_searchA | Search messages by text, across all chats or within one peer. |
| tg_download_mediaA | Download the media attached to one message. Returns the local path. message_id comes from tg_read_chat or tg_search. |
| tg_send_messageA | SEND a text message to a Telegram chat. This delivers immediately to a real person and cannot be unsent by this server. Use 'me' to write to Saved Messages. |
| tg_send_fileA | SEND a file to a Telegram chat, with an optional caption. Delivers immediately and cannot be unsent by this server. Use 'me' for Saved Messages. |
| tg_whoamiA | Which Telegram account this server is signed in as. |
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/Abdk4Moura/tg-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server