Unofficial. Made by Kirill Bobykin, an independent developer; not affiliated with Telegram. Developers: Claude Code, Cursor, self-host.
Sell your stuff
Catch up
Book a table
Not “it's safe”, but exactly what tg-mcp can't do with your account.
Encryption protects what's stored. While your AI reads a chat, the messages pass through the server's memory, so whoever runs the server could, in theory, see them. And whatever you ask goes to your AI provider: OpenAI, Anthropic or Google.
Don't want to trust even me? Run your own copy.
docker run -d --name tg-mcp --restart unless-stopped \ -p 127.0.0.1:8080:8080 -v tg-mcp-data:/data \ -e TG_MCP_PUBLIC_URL=https://tg.example.com \ -e TG_MCP_DB_PATH=/data/tg-mcp.db \ -e TG_MCP_API_ID=123456 -e TG_MCP_API_HASH=your_api_hash \ ghcr.io/qelphybox/tg-mcp:latest
You need HTTPS on a public hostname and your own app id from my.telegram.org. Full guide
It uses Telegram's official API through its own registered app, stays within Telegram's rate limits, and when Telegram asks it to wait, it waits instead of retrying around the limit. We can't speak for Telegram, so nobody can honestly promise that nothing will ever happen.
I do: Kirill Bobykin, an independent developer, @qelphybox on GitHub. tg-mcp is unofficial and not affiliated with Telegram, OpenAI, Anthropic or Google. All the code is public, and issues go straight to me.
The messages the AI reads to answer your question, the same as if you had pasted them into the chat yourself.
Not always. Some apps only forget their keys, and the Telegram session stays. To be sure, end it in Telegram → Settings → Devices → Unofficial MCP Server.