Telegram Bridge MCP Server

Local setup required. This server has to be cloned and prepared on your machine before you register it in Claude Code.
1

Set the server up locally

Run this once to clone and prepare the server before adding it to Claude Code.

Run in terminal
git clone https://github.com/electricessence/Telegram-Bridge-MCP.git
cd Telegram-Bridge-MCP
pnpm install
pnpm build
2

Register it in Claude Code

After the local setup is done, run this command to point Claude Code at the built server.

Run in terminal
claude mcp add -e "BOT_TOKEN=${BOT_TOKEN}" -e "ALLOWED_USER_ID=${ALLOWED_USER_ID}" telegram-bridge -- node "<FULL_PATH_TO_TELEGRAM_BRIDGE_MCP>/dist/index.js"

Replace <FULL_PATH_TO_TELEGRAM_BRIDGE_MCP>/dist/index.js with the actual folder you prepared in step 1.

Required:BOT_TOKENALLOWED_USER_ID
README.md

Two-way Telegram bridge for AI agents — messaging, voice, multi-session.

Telegram Bridge MCP

Two-way Telegram bridge for AI agents — messaging, voice, multi-session, real-time.

Telegram Bridge MCP

A Model Context Protocol server that connects AI assistants to Telegram. Send messages, ask questions, receive voice replies, run multiple agent sessions concurrently — all through a single bot.

Works with VS Code Copilot, Claude Desktop, Claude Code, Cursor, Windsurf, and any MCP-compatible host.


Highlights

  • Two-way messaging — text, Markdown, files, voice notes
  • Interactive controls — buttons, confirmations, checklists, progress bars
  • Voice in, voice out — automatic transcription (Whisper) and TTS (local or OpenAI)
  • Multi-session — multiple agents share one bot with per-session queues, identity auth, and message routing
  • Reminders — scheduled events that fire as synthetic messages after a delay
  • Live animations — cycling status messages while the agent works
  • Slash commands — dynamic bot menu; commands arrive as structured events
  • No webhooks — long-polling, no public URL needed

Quick Start

1. Install

git clone https://github.com/electricessence/Telegram-Bridge-MCP.git
cd Telegram-Bridge-MCP
pnpm install && pnpm build

Or use the pre-built Docker image — no Node.js required.

2. Create a Telegram bot

Message @BotFather/newbot → copy the token.

3. Pair

pnpm pair

Verifies your token, generates a pairing code, waits for you to send it to the bot, then writes .env.

4. Configure your MCP host

See mcp-config.example.json for a complete reference. The core shape for each host:

VS Code (.vscode/mcp.json):

{
  "servers": {
    "telegram": {
      "type": "stdio",
      "command": "node",
      "args": ["dist/index.js"],
      "cwd": "/absolute/path/to/telegram-bridge-mcp",
      "env": { "BOT_TOKEN": "...", "ALLOWED_USER_ID": "..." }
    }
  }
}

Claude Desktop (claude_desktop_config.json) / Claude Code (.mcp.json):

{
  "mcpServers": {
    "telegram": {
      "command": "node",
      "args": ["/absolute/path/to/telegram-bridge-mcp/dist/index.js"],
      "env": { "BOT_TOKEN": "...", "ALLOWED_USER_ID": "..." }
    }
  }
}

Do not add to global ~/.claude.json — multiple instances will fight over getUpdates.

5. Start

Paste LOOP-PROMPT.md into your AI assistant's chat. It connects, announces itself on Telegram, and waits for instructions.


Tools

Interaction

Tool Description
send_text Send a formatted message
send_text_as_voice TTS voice note
notify Notification with severity
ask Question → blocks for text/voice reply
choose 2–8 buttons → blocks for selection or voice
confirm Yes/No prompt with button styles
send_new_checklist Live checklist (edits in-place)
send_new_progress / update_progress Emoji progress bar
show_animation / cancel_animation Cycling status message
dequeue_update Wait for next inbound event

Messaging

send_message · send_choice · edit_message · edit_message_text · append_text · delete_message · pin_message · send_file · show_typing · send_chat_action · answer_callback_query · get_message · get_chat_history

Session

Tool Description
session_start Authenticate, get identity [sid, pin]
close_session Disconnect gracefully
list_sessions See all active sessions
rename_session Change display name (requires operator approval)
send_direct_message DM another session
route_message Forward an event to another session
dump_session_record Export timeline as JSON

Reminders

Tool Description
set_reminder Schedule a reminder event after a delay
cancel_reminder Cancel a pending reminder by ID
list_reminders List all reminders for the current session

Utilities

get_me · get_chat · get_agent_guide · get_debug_log · set_reaction · set_commands · set_topic · set_default_animation · set_voice · download_file · transcribe_voice · shutdown


Multi-Session

Multiple agents can share one bot simultaneously. Each ses

Tools (8)

send_textSend a formatted message to Telegram.
send_text_as_voiceSend a text message as a TTS voice note.
notifySend a notification with severity levels.
askAsk a question and block for a text or voice reply.
choosePresent 2–8 buttons and block for selection or voice input.
confirmYes/No prompt with button styles.
session_startAuthenticate and retrieve identity details.
set_reminderSchedule a reminder event after a delay.

Environment Variables

BOT_TOKENrequiredTelegram bot token obtained from BotFather.
ALLOWED_USER_IDrequiredTelegram user ID authorized to interact with the bot.

Configuration

claude_desktop_config.json
{"mcpServers": {"telegram": {"command": "node", "args": ["/absolute/path/to/telegram-bridge-mcp/dist/index.js"], "env": {"BOT_TOKEN": "...", "ALLOWED_USER_ID": "..."}}}}

Try it

Send a message to my Telegram bot asking for confirmation on the current task progress.
Create a checklist on Telegram for the remaining steps of this coding project.
Set a reminder to check back on this task in 30 minutes.
Transcribe the latest voice note I sent to the Telegram bot.
Show a progress bar on Telegram while you are processing these files.

Frequently Asked Questions

What are the key features of Telegram Bridge MCP?

Two-way messaging supporting text, Markdown, files, and voice notes.. Interactive controls including buttons, confirmations, and live checklists.. Automatic voice transcription using local Whisper models.. Multi-session support allowing multiple agents to share one bot.. Live status animations and scheduled reminders..

What can I use Telegram Bridge MCP for?

Receiving real-time notifications and progress updates from long-running AI tasks on your phone.. Interacting with AI agents via voice notes while on the go.. Managing multiple AI agent sessions through a single centralized Telegram interface.. Using Telegram buttons to provide human-in-the-loop approvals for agent actions..

How do I install Telegram Bridge MCP?

Install Telegram Bridge MCP by running: git clone https://github.com/electricessence/Telegram-Bridge-MCP.git && cd Telegram-Bridge-MCP && pnpm install && pnpm build

What MCP clients work with Telegram Bridge MCP?

Telegram Bridge MCP works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep Telegram Bridge MCP docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare