
MCP Server
prem-research
public
telegram mcp
一个基于 Telegram API 和 MCP 协议的 Python 工具,用于管理消息和实体。
Repository Info
10
Stars
1
Forks
10
Watchers
1
Issues
Python
Language
-
License
About This Server
一个基于 Telegram API 和 MCP 协议的 Python 工具,用于管理消息和实体。
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
# telegram-mcp ## Requirements - Python Project Manager, [UV](https://docs.astral.sh/uv/getting-started/installation/) - [MCP Client](https://modelcontextprotocol.io/clients) ## Usage 1. install dependencies ``` pip3 install uv uv venv source .venv/bin/activate uv sync ``` 2. edit .env file with your telegram api id and hash ([My Telegram](https://my.telegram.org)), don't share with others. 3. start the http-server `uv run http-server/http-server.py` 4. install the MCP Server `uv run mcp install mcp-server/mcp-server.py` ## Available Functions The MCP Server provides the following functions: - `get_unread_entities`: Get entities which have unread messages in them - `get_unread_messages(id)`: Get all unread messages from a given entity id - `get_messages(id, count)`: Get messages limited by a count from an entity - `get_entities`: Get all entities in the current session - `get_entity_by_id(id)`: Get an entity from the current session - `send_message(entity_id, content, reply_to_message_id)`: Send a message to an entity with optional markup and reply ## Common Issues & How to Fix - Claude can't run MCP server >> Install uv with brew : `brew install uv` - Can't create new app in Telegram >> Disconnect VPN and retry ## License [MIT](https://choosealicense.com/licenses/mit/)
Quick Start
1
Clone the repository
git clone https://github.com/prem-research/telegram-mcp2
Install dependencies
cd telegram-mcp
npm install3
Follow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Ownerprem-research
Repotelegram-mcp
Language
Python
License-
Last fetched8/8/2025
Recommended MCP Servers
💬
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
integrationsdiscordchat
🔗
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
integrationsautomationsaas
🕷️
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
apifycrawlerdata
🌐
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
testingqabrowsers
⚡
Zapier MCP
A Zapier server that provides automation capabilities for various apps.
zapierautomation