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.

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. Clone the repository and install dependencies:

    git clone https://github.com/ashizam/mcp-server-telegram-pager.git
    cd mcp-server-telegram-pager
    pipx install .
    
  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.0.tar.gz (2.7 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.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for mcp_server_telegram_pager-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c9d6850c66acf032bf8c12c53966e1ccbca35f050d8cc83eeb472bd1625faa90
MD5 97c718de25aca3cb64d75f337151dad5
BLAKE2b-256 f0cf7b7000d09f111a42d04c5c62788ca3cfd9d27cb18a776199da698e80ab0b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_server_telegram_pager-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5af88e429ac982f8ee7d094d3f31e37e046abd40799111eb1fe880fc1e8e59c3
MD5 5ee0251de1d6bd6c83b9e0fde5d416af
BLAKE2b-256 bd20a2304f435cf4082700f946fa2cea85bcfd1d89e54cfee1f3b5b5a9704172

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