Telegram MCP Server
Provides tools for interacting with Telegram via MTProto, enabling AI agents to send messages, manage chats, and perform other Telegram actions programmatically.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Telegram MCP Serverget my recent messages from the group 'Tech Talk'"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Telegram MCP Server
A Model Context Protocol (MCP) server for Telegram, built with Telethon and FastMCP.
Features
MTProto Support: High-performance communication via Telethon.
FastMCP: Seamless integration with AI agents.
Async & Performance: Optimized for speed and concurrency.
Professional Core: Built-in logging, caching, and configuration.
Setup
Install
uvif you haven't already.Clone the repository.
Create a
.envfile based on.env.example:cp .env.example .envFill in your
API_IDandAPI_HASHfrom my.telegram.org.Install dependencies:
uv sync
Usage
Run the MCP server:
uv run python -m telegram_mcp.serverStructure
src/telegram_mcp/core/: Essential utilities (logger, cache, config).src/telegram_mcp/service/: Business logic and external API clients.src/telegram_mcp/models/: Pydantic data models.src/telegram_mcp/server.py: MCP server definition and tool registration.
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Latest Blog Posts
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/shaxzodrashid/TelegramMCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server