Telegram MCP Bridge
Provides read-only access to a Telegram user account, allowing listing chats, retrieving messages, searching messages, getting message context, and getting chat information.
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 Bridgeshow me the last 10 messages from my Python group chat"
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 Bridge
A local, read-only MCP bridge for accessing your own Telegram account through a user session. It uses Telethon (MTProto), not the Telegram Bot API.
Current tools
telegram_list_chatstelegram_get_messagestelegram_search_messagestelegram_get_message_contexttelegram_get_chat_info
The first version cannot send, edit, delete, forward, or mark messages as read.
Related MCP server: tdl-mcp
Requirements
Python 3.11+
Telegram
api_idandapi_hashfrom https://my.telegram.orgAn MCP host that supports stdio servers
Setup
python -m venv .venv
source .venv/bin/activate
pip install -e .
cp .env.example .envOn Windows PowerShell:
python -m venv .venv
.venv\Scripts\Activate.ps1
pip install -e .
Copy-Item .env.example .envFill in .env, then create the Telegram user session interactively:
telegram-mcp-loginStart the MCP server:
telegram-mcpExample MCP configuration:
{
"mcpServers": {
"telegram": {
"command": "/absolute/path/to/.venv/bin/telegram-mcp",
"env": {
"TELEGRAM_API_ID": "123456",
"TELEGRAM_API_HASH": "replace_me",
"TELEGRAM_SESSION_PATH": "/absolute/path/to/private/telegram_mcp"
}
}
}
}On Windows, point command to .venv\\Scripts\\telegram-mcp.exe.
Access policy
Set TELEGRAM_ALLOWED_CHAT_IDS to a comma-separated allowlist. When it is empty, all ordinary cloud chats visible to the account are accessible. For safer use, begin with one or two chat IDs returned by telegram_list_chats.
Limits are controlled with:
TELEGRAM_MAX_MESSAGES_PER_REQUEST(default: 100)TELEGRAM_MAX_SEARCH_RESULTS(default: 100)
Media is not downloaded in this version.
Security
The .session file grants access to the Telegram account. Never commit or share it. Keep the bridge local, use an allowlist, and review every MCP host that can invoke it.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- 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/boltholds/Telegram_MCP_Bridge'
If you have feedback or need assistance with the MCP directory API, please join our Discord server