Telegram MCP Server

Integrations

  • Provides access to Telegram messaging platform, enabling reading unread messages, retrieving conversation history, sending messages, and managing communication entities within a Telegram account.

电报-mcp

要求

用法

  1. 安装依赖项
pip3 install uv uv venv source .venv/bin/activate uv sync
  1. 使用您的电报 api id 和哈希(我的电报)编辑 .env 文件,不要与他人分享。
  2. 启动 http 服务器

uv run http-server/http-server.py

  1. 安装 MCP 服务器

uv run mcp install mcp-server/mcp-server.py

可用函数

MCP 服务器提供以下功能:

  • get_unread_entities :获取包含未读消息的实体
  • get_unread_messages(id) :获取给定实体 id 的所有未读消息
  • get_messages(id, count) :从实体中获取按计数限制的消息
  • get_entities :获取当前会话中的所有实体
  • get_entity_by_id(id) :从当前会话中获取实体
  • send_message(entity_id, content, reply_to_message_id) :向实体发送带有可选标记和回复的消息

常见问题及解决方法

  • Claude 无法运行 MCP 服务器 >> 使用 brew 安装 uv: brew install uv
  • 无法在 Telegram 中创建新应用 >> 断开 VPN 并重试

执照

麻省理工学院

You must be authenticated.

A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

一个可以与 Telegram 消息平台交互的 MCP 服务器,允许用户检索未读消息、获取实体信息并通过自然语言界面发送消息。

  1. Requirements
    1. Usage
      1. Available Functions
        1. Common Issues & How to Fix
          1. License

            Related MCP Servers

            • -
              security
              F
              license
              -
              quality
              An MCP server that enables communication with users through Telegram. This server provides a tool to ask questions to users and receive their responses via a Telegram bot.
              Last updated -
              1
              16
              JavaScript
            • A
              security
              A
              license
              A
              quality
              An MCP server that enables posting messages to Discord webhooks, allowing customization of content, username, and avatar URL.
              Last updated -
              1
              0
              JavaScript
              MIT License
            • -
              security
              A
              license
              -
              quality
              A server that enables interaction with Telegram chats directly through MCP-compatible hosts like Claude for Desktop, providing tools to retrieve chats, get messages, and send messages.
              Last updated -
              85
              Python
              Apache 2.0
              • Apple
              • Linux
            • -
              security
              -
              license
              -
              quality
              An MCP-based messaging system that allows AI systems to interact with various messaging platforms through standardized tools for sending text, images, documents, buttons, and alerts.
              Last updated -
              Python

            View all related MCP servers

            ID: 9oat3exviw