Telegram MCP Server
telegram-mcp
Requirements
Python Project Manager, UV
Usage
install dependencies
pip3 install uv
uv venv
source .venv/bin/activate
uv syncedit .env file with your telegram api id and hash (My Telegram), don't share with others.
start the http-server
uv run http-server/http-server.py
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 themget_unread_messages(id): Get all unread messages from a given entity idget_messages(id, count): Get messages limited by a count from an entityget_entities: Get all entities in the current sessionget_entity_by_id(id): Get an entity from the current sessionsend_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 uvCan't create new app in Telegram >> Disconnect VPN and retry
License
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/prem-research/telegram-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server