Telegram Bridge
Stdio MCP bridge to the Telegram Bot API with a fail-closed chat allowlist and scrubbing
Telegram Bridge is an open-source MCP server for communication. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- macOS, Windows, Linux
- Runs
- Locally
- What it can do
- Can change data (2 tools)
- Version
- 0.2.1
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add mcp-telegram-bridge -- uvx mcp-telegram-bridgeAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"mcp-telegram-bridge": {
"command": "uvx",
"args": [
"mcp-telegram-bridge"
]
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"mcp-telegram-bridge": {
"command": "uvx",
"args": [
"mcp-telegram-bridge"
]
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"mcp-telegram-bridge": {
"command": "uvx",
"args": [
"mcp-telegram-bridge"
]
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.json
{
"mcpServers": {
"mcp-telegram-bridge": {
"type": "stdio",
"command": "uvx",
"args": [
"mcp-telegram-bridge"
]
}
}
}Or put the same entry in .mcp.json at your workspace root to share it.
Add with the CLI
Run in a terminal
codex mcp add mcp-telegram-bridge -- uvx mcp-telegram-bridgeOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.mcp-telegram-bridge]
command = "uvx"
args = ["mcp-telegram-bridge"]Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"mcp-telegram-bridge": {
"command": "uvx",
"args": [
"mcp-telegram-bridge"
]
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "mcp-telegram-bridge": { "command": "uvx", "args": [ "mcp-telegram-bridge" ] } } }Or run: gemini mcp add -s user mcp-telegram-bridge uvx -- mcp-telegram-bridge
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "mcp-telegram-bridge": { "command": "uvx", "args": [ "mcp-telegram-bridge" ] } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.json
{ "mcpServers": { "mcp-telegram-bridge": { "command": "uvx", "args": [ "mcp-telegram-bridge" ] } } }On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.
Cline
Add to cline_mcp_settings.json
{ "mcpServers": { "mcp-telegram-bridge": { "command": "uvx", "args": [ "mcp-telegram-bridge" ] } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.json
{ "context_servers": { "mcp-telegram-bridge": { "command": "uvx", "args": [ "mcp-telegram-bridge" ] } } }Open it with zed: open settings file. Merge context_servers into the settings you already have.
JetBrains AI Assistant and Junie
AI Assistant
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "mcp-telegram-bridge": { "command": "uvx", "args": [ "mcp-telegram-bridge" ] } } }Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "mcp-telegram-bridge": { "command": "uvx", "args": [ "mcp-telegram-bridge" ] } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "mcp-telegram-bridge": { "command": "uvx", "args": [ "mcp-telegram-bridge" ] } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
About Telegram Bridge
This is a small local bridge that lets an agent in Cursor, Claude Desktop or Windsurf send and read Telegram messages through a bot, while the process itself enforces safety limits. It is not a hosted bot service and does not open a port or listen for webhooks; it polls Telegram with getUpdates.
Since version 0.2.0 an empty allowlist denies every chat, so you must set ALLOWED_CHAT_IDS or deliberately opt in to open mode with ALLOW_ALL_CHATS. Outbound text, button labels and callback toasts are scrubbed for the configured secret values and token-shaped strings, and logs are rewritten so a bot token in a URL does not leak. Inbound updates are size-capped and rate limited, bot messages are omitted, and everything inbound is marked untrusted, with optional heuristic safety labels that the README says are not a prompt-injection filter.
The same operations can be used as a Python library. It needs Python 3.11 or later and a bot token from BotFather.
Tools this server provides (6)
Taken from the project documentation; the running server may differ.
From the tool list in its README, going by the names, 2 of 6 tools change data; 1 name doesn't say.
From the server's own tool labels and tool names; not verified by us.
- telegram_get_meName suggests: reads
- Bot identity. Not rate limited.
- telegram_get_chatName suggests: reads
- Chat metadata for an allowed chat.
- telegram_send_messageName suggests: changes
- Sends scrubbed text with optional parse mode and buttons.
- telegram_edit_reply_markupName suggests: changes
- Replace or clear inline buttons.
- telegram_answer_callback
- Acknowledge a callback query.
- telegram_get_updatesName suggests: reads
- One bounded poll of incoming updates.
What it does
- Fail-closed allowlist
- Chats are refused unless listed, or open mode is explicitly enabled.
- Outbound scrubbing
- Secrets and token-shaped strings are removed from outgoing messages.
- Inline buttons
- Messages can carry buttons, with tools to edit markup and answer callbacks.
- Bounded polling
- Updates are size-capped, rate limited and deduplicated.
- Untrusted data marking
- Inbound content is labelled untrusted for the model.
- Library mode
- TelegramBridge can be used from Python without the MCP package.
Good for
- Let a local agent notify you on Telegram
- Receive approvals via inline buttons from an allowed chat
- Run an agent-driven bot in a restricted group
- Keep bot tokens out of logs and messages
Pricing
Open source
Open source; needs a Telegram bot token
More servers for the same service
Telegram Bridge FAQ
Is Telegram Bridge hosted?
No, it runs locally as a stdio process you launch.
What happens with no allowlist?
Since 0.2.0 an empty ALLOWED_CHAT_IDS denies every chat.
Does Telegram Bridge listen for webhooks?
No, it only polls getUpdates and opens no port.
Can I use Telegram Bridge without MCP?
Yes, as a Python library.
Is Telegram Bridge free?
Yes. Telegram Bridge is open source, so you can use and self-host it for free.
How do I add Telegram Bridge to Claude Code?
Run this command in your terminal: claude mcp add mcp-telegram-bridge -- uvx mcp-telegram-bridge
What are the best alternatives to Telegram Bridge?
The closest alternatives to Telegram Bridge are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.
Where this comes from
- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.


