Back to Home
Sarang-Nambiar icon

telegram-mcp

Verified Safe

by Sarang-Nambiar

Overview

Enables AI assistants to programmatically interact with Telegram chats for message reading, sending, and management.

Installation

Run Command
uv run main.py

Environment Variables

  • TELE_APP_ID
  • TELE_HASH

Security Notes

The server loads Telegram API credentials from environment variables, which is good practice. It utilizes the Telethon library for API interaction. There are no explicit uses of `eval`, `exec`, or `os.system` for arbitrary code execution from user input found in the provided code. A critical security aspect is the `anon.session` file created locally, which stores session data; its compromise would grant access to the Telegram account. The `message` parameter in `send_message` is sent directly to Telegram, so an AI generating malicious markdown could potentially create annoying messages, but not execute code on the server itself. Overall, the direct code appears reasonably safe, but relies heavily on the security of the Telethon library and proper protection of the session file.

Similar Servers

Stats

Interest Score0
Security Score7
Cost ClassLow
Avg Tokens3000
Stars0
Forks0
Last Update2025-11-30

Tags

TelegramAI AssistantMessagingCommunicationMCP Server