Skip to main content
Glama
antonio-castellon

io.github.antonio-castellon/mcp-telegram-bridge

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
SAFETY_STRICTNoWhen set to 1, true, yes, or on, enables strict inbound classification of updates for untrusted groups. Disabled by default.
ALLOWED_CHAT_IDSNoComma-separated list of chat IDs the bot is allowed to send messages to. If empty, the bot can send to any chat it can see. Recommended for production use.
TELEGRAM_BOT_TOKENYesYour Telegram bot token from @BotFather. Required to authenticate with the Telegram Bot API.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
telegram_get_meA

Return the bot identity (getMe). Useful as a connectivity check.

telegram_get_chatC

Fetch chat metadata (getChat) for a chat_id.

telegram_send_messageA

Send a text message. Outbound text is scrubbed for token-shaped secrets. Optional buttons=[{id,label}] become an inline keyboard.

telegram_edit_reply_markupA

Edit or clear inline buttons on an existing message. Pass buttons=null/omit to strip markup; or a new [{id,label}] list.

telegram_answer_callbackC

Acknowledge a callback_query (optional toast text / alert).

telegram_get_updatesA

Long-poll getUpdates. The agent owns the offset loop. When SAFETY_STRICT is enabled, each update is annotated with safety.{kind,blocked,warning}; otherwise inbound text is returned unchanged and is not classified.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.7/5.0

Scored across 6 tools

Disambiguation4/5

Each tool targets a distinct Telegram API endpoint: identity, chat info, sending messages, editing buttons, answering callbacks, and fetching updates. The only minor ambiguity is between send_message and edit_reply_markup since both handle buttons, but their purposes (new vs. existing message) are clearly different.

Naming Consistency5/5

All tools follow a consistent 'telegram_' prefix followed by a verb_noun pattern (e.g., get_me, get_chat, send_message). The naming is predictable and consistent across the entire set.

Tool Count5/5

With 6 tools, the server covers the essential operations for a Telegram bridge without unnecessary bloat. Each tool serves a clear purpose in the core workflow of a bot, making the count well-scoped.

Completeness3/5

The server covers identity, chat info, sending, editing, callback answers, and updates. However, it lacks common operations like deleting messages or sending media/files. Also, the update loop relies heavily on the agent, and there is no method to manage webhooks, but the core messaging loop is covered.