telegram-mcp
Turn any Telegram bot into a chat-first AI assistant. Allows sending messages and reading recent conversation history via MCP tools.
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-mcppush a notification 'deployment complete' to my bot"
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
Turn any Telegram bot into a chat-first AI assistant. Sign in with Google, paste your BotFather token, message your bot. Bonus: MCP tools let external agents (Claude Desktop, Cursor, custom scripts) push notifications to your bot and read your recent conversation history.
Chat via your own Telegram bot — you own the token, you own the data.
MCP over streamable-HTTP — plug into Claude Desktop, Cursor, etc.
OpenRouter under the hood — swap models freely (Claude 5, GPT, Gemini).
Self-host in one Docker Compose command if you don't want us in the loop.
Hosted for free at telegram.regiq.in.
Use it (hosted)
As a chat assistant (main use case)
Visit https://telegram.regiq.in and sign in with Google.
In Telegram, DM @BotFather →
/newbot, follow prompts, copy the token.Paste the token in the Telegram bot panel on your dashboard.
Open your bot on Telegram, send
/start, then chat with it in plain English.
Commands your bot understands:
Any plain-English message → assistant replies with memory of the conversation
/reset→ clears conversation history/start→ welcome message
As an MCP tool (optional)
If you want your Claude Desktop / Cursor agent to push messages into your Telegram bot:
On the dashboard, generate an MCP API key.
Add to
claude_desktop_config.json:{ "mcpServers": { "telegram": { "url": "https://telegram.regiq.in/api/mcp", "headers": { "Authorization": "Bearer YOUR_KEY_HERE" } } } }Restart Claude Desktop. Now your agent has:
send_telegram_message(text)— notify you on Telegramlist_recent_messages(max)— read recent bot history
Great for: long-running job notifications, scheduled reminders, agent-to-human handoff.
Related MCP server: tgmcp
Tools
Tool | Purpose |
| Push a message from your agent into the user's bot. |
| Return recent bot conversation for context. |
Self-host
You'll need:
Docker + Compose
A Google OAuth client — Cloud Console. Scopes:
openid,email,profile. Redirect:<PUBLIC_BASE_URL>/api/auth/callback/googleAn OpenRouter API key — openrouter.ai/keys
A public HTTPS domain for Telegram webhooks to reach (Cloudflare Tunnel or
ngrok http 3012locally)
git clone https://github.com/globalion/telegram-mcp
cd telegram-mcp
cp .env.example .env
# fill in NEXTAUTH_SECRET, GOOGLE_*, OPENROUTER_API_KEY, PUBLIC_BASE_URL
docker compose up -d
# open http://localhost:3012How it works
Telegram
▼
/api/telegram/webhook/<per-user-secret>
│
▼
┌─────────────┐
│ chat.ts │ loads recent history from Postgres
│ │ → sends to OpenRouter
│ │ → persists reply + sends via bot API
└─────────────┘
External MCP clients (Claude Desktop, Cursor, custom agents)
▼
/api/mcp (Bearer <apiKey>)
│
┌───────────┴───────────┐
▼ ▼
send_telegram_message list_recent_messagesPer-user webhook URL segment is a random secret so a leaked bot token can't be pointed at someone else's account. Google refresh tokens aren't touched — Google sign-in is identity only.
License
MIT. See LICENSE.
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.
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/globalion/telegram-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server