Telegram MCP
Provides read-only tools for managing Telegram messages, chats, media, and account resources via the Telethon MTProto client.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
title: Telegram MCP (personal, read-only) emoji: π¬ colorFrom: blue colorTo: green sdk: docker app_port: 7860 pinned: false license: apache-2.0 short_description: Personal Telegram MCP, read-only, bearer auth
Telegram MCP β personal remote bridge
A self-hosted bridge that exposes chigwell/telegram-mcp (Telethon-based) as a remote MCP server over streamable HTTP.
Userbot β runs under your personal Telegram account via MTProto (Telethon), not the Bot API. No bot needed, no chat to add.
Read-only β
TELEGRAM_EXPOSED_TOOLS=read-only. Only the ~30 read tools are exposed (list chats, read messages, search, download media, etc.). Send/edit/delete/group-admin tools are not registered.Bearer-token gated β Caddy in front of the streamable HTTP server rejects every request without
Authorization: Bearer <MCP_BEARER_TOKEN>.
Related MCP server: telegram-user-mcp
Endpoint
https://francescomiliani-telegram-mcp.hf.space/mcp (streamable HTTP, MCP spec 2025-03-26).
Required Space secrets
Configure these in the Space's Settings β Variables and secrets:
Name | Value | Where to get it |
| int | |
| string | |
| long base64-ish string | Generate locally with |
| long random string |
|
TELEGRAM_EXPOSED_TOOLS=read-only is set as a default Space variable (not secret).
Connecting from an MCP client
# Claude Code
claude mcp add --transport http telegram \
https://francescomiliani-telegram-mcp.hf.space/mcp \
--header "Authorization: Bearer $MCP_BEARER_TOKEN"
# Codex
codex mcp add telegram \
--url https://francescomiliani-telegram-mcp.hf.space/mcp \
--header "Authorization: Bearer $MCP_BEARER_TOKEN"For stdio-only clients (Claude Desktop, some Windsurf builds), bridge through mcp-remote:
{
"mcpServers": {
"telegram": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://francescomiliani-telegram-mcp.hf.space/mcp",
"--header", "Authorization: Bearer ${MCP_BEARER_TOKEN}"],
"env": { "MCP_BEARER_TOKEN": "<your-token>" }
}
}
}Security
The Space URL is public. The bearer token is the only thing standing between the public internet and your Telegram account.
Treat
TELEGRAM_SESSION_STRINGlike a password β anyone with it can read/write your account.Free HF Spaces sleep after 48h of inactivity. The session is preserved (string-session mode), so the next request just wakes the container and reconnects. Expect a 20β40s cold start.
Architecture
internet ββHTTPSβββΆ Caddy :7860 ββ(bearer check)βββΆ main.py :8765 ββ(Telethon/MTProto)βββΆ Telegram
β β
ββ 401 if no/bad bearer ββ streamable HTTP MCP, /mcp endpointTool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
Related MCP Connectors
Multi-tenant Telegram gateway for AI agents β HTTP+stdio, 8 tools, MTProto User API
Hosted Telegram MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Telegram bridge for your MCP-compatible agent. Bidirectional, no LLM in our stack.
Your own WhatsApp as an MCP server: read, search and send from any MCP client.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenancePrivacy-first Telegram MCP server enabling maintainers to triage chats, inspect context, search messages, draft replies, and send authorized messages locally without a cloud relay.57 npm1MIT
- AlicenseNot gradedqualityCmaintenanceAn MCP server that connects to Telegram as your real user account and exposes read-only tools to read and search messages, list chats and folders, inspect group info, and download media.16 npmMIT
- FlicenseNot gradedqualityBmaintenanceRead-only MCP access to a personal Telegram account. Allows querying chats, reading and searching messages via Streamable HTTP.-
- FlicenseNot gradedqualityBmaintenanceRead-only MCP server for personal Telegram accounts, exposing chat folders, chats, and recent messages via MTProto.-