Skip to main content

The simplest MCP server for interacting with Telegram

Project description

Logo

Simple Telegram MCP

✨ Example use cases

  • Automate tasks: “Look up the weather forecast and send it to my family group”
  • Stay on top of things: “Review my unread messages, give me the highlights, and queue polite replies”
  • Polish before sending: “Read Tony’s latest note in the Family channel, craft three informal reply drafts, and leave them for me to send.”

🚀 Quick Start

Automatic client configuration

Client Command
Cursor uvx simple-telegram-mcp --install cursor
Claude Desktop uvx simple-telegram-mcp --install claude-desktop
Claude Code uvx simple-telegram-mcp --install claude-code
Gemini CLI uvx simple-telegram-mcp --install gemini-cli
VS Code (global) uvx simple-telegram-mcp --install vscode
MCP JSON (stdout) uvx simple-telegram-mcp --install mcp-json
OpenAI Codex CLI uvx simple-telegram-mcp --install codex-cli

Authorize Telegram

uvx simple-telegram-mcp --login

✨ Heads-up: the login flow is zero drama. You’ll pop in your phone number, Telegram will DM you a code, you paste it back here, and you’re in.

🛠️ Tools

Tool Description
telegram_add_reaction Adds an emoji reaction to a specific message.
telegram_get_chat_history Retrieves recent messages for a chat.
telegram_get_draft Returns the current unsent draft for a chat, if one exists.
telegram_get_user_profile Fetches profile information for a user.
telegram_list_chats Lists dialogs (DMs, groups, channels) the account can access.
telegram_login_status Reports connection and authorization status.
telegram_post_message Sends a new message to a chat.
telegram_reply_to_message Replies to a message by ID.
telegram_save_draft Stores or updates a draft message without sending it.
telegram_search_chats Finds chats by partial name or username.
search_telegram_messages Searches globally (or within a chat) for messages containing text.

🧾 Resources

Resource URI Description
telegram://chats Latest 25 dialogs with names, types, and unread counts.
telegram://session/status Connection and authorization snapshot.
telegram://chats/{chat_id}/unread Incoming unread messages for a chat (oldest first).
telegram://chats/{chat_id}/history Recent message history for a chat.

🧠 Prompts

  • telegram/draft-reply – Generates a concise reply in the tone you request.
  • telegram/check-session – Reminds the assistant to verify the session before doing anything else.

✅ Testing

  • Fast unit tests (default): uv run pytest -q
  • Integration tests: RUN_TELEGRAM_TESTS=1 uv run pytest -m integration -q (make sure to log in first: uvx simple-telegram-mcp --login)

(back to top)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

simple_telegram_mcp-0.1.8.tar.gz (1.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simple_telegram_mcp-0.1.8-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

Details for the file simple_telegram_mcp-0.1.8.tar.gz.

File metadata

  • Download URL: simple_telegram_mcp-0.1.8.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.6.14

File hashes

Hashes for simple_telegram_mcp-0.1.8.tar.gz
Algorithm Hash digest
SHA256 5b7283b5d9b3863701f8ff574d990b4901ed3e6949804091b58362c1ebd1da9b
MD5 495bf13f1f2fd725083104d26456d9fa
BLAKE2b-256 76cf2b43ca9bd48de89507f3bc06c41ccffb8705dd8818125c784cc6d6c58cc6

See more details on using hashes here.

File details

Details for the file simple_telegram_mcp-0.1.8-py3-none-any.whl.

File metadata

File hashes

Hashes for simple_telegram_mcp-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 931963908047c91a52d5a3fcae53fa61989db9c381fac66010126dd1638a0e4c
MD5 bc2eafb8262c6dc1cd0816751eca5f13
BLAKE2b-256 293f1c7891bee9d19a150726cdcbbc0839ce299b9386edfb9b97bfb3950f818c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page