Skip to main content

A send-only Telegram Pager MCP server for personal AI notifications

Project description

Telegram Pager MCP Server

A specialized Model Context Protocol (MCP) server that allows AI coding assistants (like Cursor, Cline, or Claude Desktop) to send direct messages via your personal Telegram account.

Security First: This server exposes exactly one tool (send_telegram_message). It is intentionally designed as a "Telegram Pager", meaning the AI cannot read your chat history, delete messages, or view your contacts.

[!WARNING] Do NOT use this tool for spam. If you configure an AI agent to send unsolicited messages, bulk broadcasts, or promotional content using this server, Telegram's automated systems will quickly flag your activity. Your personal Telegram account will be permanently banned and your phone number blocked. Use this exclusively for personal notifications or messaging your own contacts responsibly.

Prerequisites

To use this, you need a Telegram API ID and Hash.

  1. Log in to my.telegram.org/apps.
  2. Create an application (if you haven't already).
  3. Copy your App api_id and App api_hash.

Installation & Setup

  1. Install the package:

    pipx install mcp-server-telegram-pager
    
  2. Generate your Session String: Because Telegram requires 2FA (a login code sent to your app), you must generate an authentication session string locally first.

    mcp-server-telegram-pager-auth
    

    Follow the prompts to enter your API ID, Hash, and Login Code. Copy the long session string it outputs!

Configuring your MCP Client

Add the following to your IDE's MCP configuration file (e.g., in Cursor or Claude Desktop):

{
  "mcpServers": {
    "telegram-pager": {
      "command": "mcp-server-telegram-pager",
      "env": {
        "TELEGRAM_API_ID": "YOUR_API_ID_HERE",
        "TELEGRAM_API_HASH": "YOUR_API_HASH_HERE",
        "TELEGRAM_SESSION": "YOUR_LONG_SESSION_STRING_HERE"
      }
    }
  }
}

How to Test

Once configured, you can ask your AI assistant:

"Send a Telegram message to username 'coolperson123' saying 'The build finished successfully!'"

(Note: Do not include the @ symbol in the username).

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

mcp_server_telegram_pager-0.1.1.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

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

mcp_server_telegram_pager-0.1.1-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file mcp_server_telegram_pager-0.1.1.tar.gz.

File metadata

File hashes

Hashes for mcp_server_telegram_pager-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d073c34012c3893902a36469b0884c690c6b4c995b8ee46ed163b1f88f3240ee
MD5 1aeadf8e16cb93cd7640d30459d2c54c
BLAKE2b-256 cfa55731db69cf3e403f3212274e8135a16c8c522376f311c1c5c07bc041241a

See more details on using hashes here.

File details

Details for the file mcp_server_telegram_pager-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_server_telegram_pager-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d7bced5285838d6e676d50e121369571fbf0ffd29a666c154b3bfc4e7b765fae
MD5 8e93c0099c4a5a59209ba73fa4f5c5b8
BLAKE2b-256 1e9a3da6e9be556029b276ddba247340b7983dae2dea95909f7771a50f4bab55

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