MCP Catalogs
Home

mcp-telegram

by dryeab·243·Score 46

MCP server enabling LLMs to interact with Telegram through messaging, search, and media operations.

communicationai-llm
38
Forks
8
Open issues
12 mo ago
Last commit
24d ago
Indexed

Overview

Built with Telethon, this MCP server provides comprehensive Telegram integration through the Model Context Protocol. It enables AI agents to perform various Telegram operations including sending, editing and deleting messages, searching chats and messages, managing drafts, and downloading media. The server exposes well-documented tools that can be used by MCP-compatible clients like Claude Desktop and Cursor.

Try asking AI

After installing, here are 6 things you can ask your AI assistant:

you:Automating Telegram messaging workflows through AI agents
you:Integrating Telegram notifications into AI-powered assistants
you:Analyzing or processing Telegram message content with LLMs
you:Where do I get API ID and API hash for Telegram?
you:Can I use multiple accounts with this MCP server?
you:What privacy concerns should I be aware of?

When to choose this

Choose this when you need to integrate Telegram capabilities into AI workflows or create AI-powered Telegram bots with comprehensive message handling features.

When NOT to choose this

Avoid if you need to handle sensitive communications where privacy is paramount, as Telegram's MTProto protocol has had security scrutiny in the past.

Tools this server exposes

9 tools extracted from the README
  • send_message

    Send text messages or files to any user, group, or channel

  • edit_message

    Modify content of previously sent messages

  • delete_message

    Remove one or multiple messages

  • get_messages

    Retrieve message history with advanced filtering options

  • search_dialogs

    Find users, groups, and channels by name or username

  • message_from_link

    Access specific messages using Telegram links

  • get_draft

    View current message draft for any chat

  • set_draft

    Create or clear message drafts

  • media_download

    Download photos, videos, and documents from messages

Comparable tools

telegram-bot-apiwhatsapp-mcpsignal-mcpdiscord-mcp

Installation

Installation

  1. Install prerequisites:

- Python 3.10 or higher - uv (follow [official uv guide](https://github.com/astral-sh/uv#installation))

  1. Install the CLI tool:
uv tool install mcp-telegram
  1. Authenticate with your Telegram account:
mcp-telegram login
  1. Configure your MCP client (e.g., Claude Desktop) with:
{
  "mcpServers": {
    "mcp-telegram": {
      "command": "mcp-telegram",
      "args": ["start"],
      "env": {
        "API_ID": "<your_api_id>",
        "API_HASH": "<your_api_hash>"
      }
    }
  }
}

FAQ

Where do I get API ID and API hash for Telegram?
You can obtain API ID and API hash by creating an application at https://my.telegram.org/apps
Can I use multiple accounts with this MCP server?
Yes, you can manage multiple accounts by using different session files. Use the `--session` parameter or clear existing sessions with `mcp-telegram clear-session`
What privacy concerns should I be aware of?
Telegram's ToS prohibit automated bots and mass messaging. Keep your API credentials private and avoid activities that might get your account restricted

Compare mcp-telegram with

GitHub →

Last updated · Auto-generated from public README + GitHub signals.