Telegram MCP Bridge
Provides a bridge between Telegram and Claude Code, allowing users to send messages to a Telegram bot and receive AI replies, with support for per-chat context, history persistence, and optional allowlist.
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 Bridgesummarize my Telegram chat history with @bob"
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 self-hosted bridge that connects a Telegram bot to Claude Code over the Model Context Protocol (MCP), with an instant auto-reply layer so the bot answers users immediately — even when the Claude app is closed.
Features ✨
Instant auto-replies — any message to the bot gets an AI reply in ~2 seconds (OpenAI-compatible LLM)
Claude integration — messages containing a keyword (default:
claude) are routed to Claude Code for full-powered answersEmoji reactions — automatically reacts to every incoming message 👍❤️🔥
Photo support + vision — when someone sends a photo, the bot reacts, analyzes the image content with a vision model, and replies with a description 📷👁️
User feedback buttons — every bot reply has 👍 / 👎 / 🚩 Report buttons; reports are sent to the admin 👍👎🚩
Per-chat context — each user only sees their own conversation history
History persistence — conversations survive restarts (saved to
.history.json)Allowlist support — optional: restrict usage to specific Telegram user IDs
SSE MCP server — Claude connects over
http://127.0.0.1:8765/sseStartup launcher — runs at login, always available
Cloudflare Worker fallback (optional) — always-on layer that answers via Gemini when your PC is off (see
telegram-worker/) ☁️
Related MCP server: tsgram-mcp
Architecture 🏗️
Telegram bot ←→ bridge (node) ←→ LLM (auto-reply, instant)
│
└── MCP over SSE ←→ Claude Code (smart mode)
(optional) Telegram webhook → Cloudflare Worker → local bridge (if online) or Gemini fallbackSetup 🚀
Prerequisites
Node.js 18+
A Telegram bot token (from @BotFather)
An OpenAI-compatible LLM endpoint + API key
Install
npm install
cp config.env.example config.env
# edit config.env with your valuesRun (manual)
node server.jsRun (auto-start at login, Windows)
Create a .bat in the Startup folder (shell:startup) that sets the env vars from config.env and runs node server.js.
Connect Claude Code
Add to ~/.claude.json:
{
"mcpServers": {
"telegram": {
"type": "sse",
"url": "http://127.0.0.1:8765/sse"
}
}
}Configuration ⚙️
See config.env.example for all options: bot token, allowlist, SSE port, auto-reply model, fallback model, Claude keyword, vision model, admin ID.
For the optional Cloudflare Worker layer, see telegram-worker/README.md.
Security 🔒
Never commit
config.env— it contains your bot token and API keysAllowlist (
ALLOWED_USER_IDS) restricts who can use the bot — recommended for private botsThe auto-reply uses your LLM API key — a public bot means anyone can consume your quota
License 📄
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityDmaintenanceMCP server that enables Claude Code to interact with a personal Telegram account via MTProto, providing over 120 tools for messaging, media, chat management, and more.Last updated1002MIT
- Alicense-qualityDmaintenanceConnects Claude Code sessions to Telegram, enabling AI-powered code assistance and file management directly from Telegram chats.Last updated92MIT
- FlicenseAqualityAmaintenanceConnects AI assistants to Telegram bidirectionally, enabling any MCP-compatible client to send messages, receive voice replies, and run multiple concurrent agent sessions through a single bot.Last updated46
- Flicense-qualityCmaintenanceEnables AI assistants like Claude to read, search, and send messages through your personal Telegram account via MCP tools.Last updated
Related MCP Connectors
Telegram bridge for your MCP-compatible agent. Bidirectional, no LLM in our stack.
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
Real-time chat hub for AI agents — Claude Code, Cursor, Cline, Codex over MCP or REST.
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/MOEINv363/telegram-mcp-bridge'
If you have feedback or need assistance with the MCP directory API, please join our Discord server