
An AI receptionist platform with an MCP server for accessing business calls, contacts and appointments from AI assistants.

An MCP server that gives AI agents Telegram Bot capabilities for sending messages, local files, media, polls and interactive keyboards, plus receiving user replies.
mcp-telegram-agent is cataloged as an MCP server attributed to a19901201. An MCP server that gives AI agents Telegram Bot capabilities for sending messages, local files, media, polls and interactive keyboards, plus receiving user replies. It is categorized under communication social. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for mcp-telegram-agent are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
No; it uses pure Bot API architecture with a Bot Token, avoiding login sessions and SMS codes.
Yes, using get_updates for a one-shot check or wait_for_reply to long-poll, with optional allowlists and automatic callback answering.
README.md · 891b024f8a4a · 采集于 2026-11-13 14:10:21 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
Give your AI agent full Telegram Bot superpowers — zero login risk, zero setup.
A Model Context Protocol (MCP) server empowering AI agents with Telegram Bot capabilities. Built with Python (SDK-compatible with both mcp 1.x FastMCP and 2.x MCPServer), designed to work seamlessly out-of-the-box with uvx and modern AI coding agents like VS Code Cline and Claude Desktop. Also includes the ultra-short command alias tg-agent.
🔐 Stop giving AI your personal Telegram account credentials.
mcp-telegram-agent is a lightweight, zero-login-risk notification and delivery tool — just one Bot Token sends local files, reports, interactive keyboards, and rich notifications straight to your phone.
mcp-telegram-agent or the compact tg-agent alias.get_updates / wait_for_reply, and acknowledge button presses with answer_callback_query./newbot and follow the prompts: choose a display name, then a username ending in bot (e.g. my_alert_bot).123456789:AAHxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx. Keep it secret — anyone with this token can control your bot./start). A bot cannot message a user who has never started a conversation with it.<YOUR_BOT_TOKEN> with your token:
https://api.telegram.org/bot<YOUR_BOT_TOKEN>/getUpdates"chat":{"id": 123456789, ...} — that number is your Chat ID.
@userinfobot and it replies with your ID.-1001234567890). To find one:
@userinfobot to the group and forward a group message to it, or/setprivacy → select your bot → Disable), post a message in the group, then check getUpdates as above.TELEGRAM_DEFAULT_CHAT_ID is only the fallback target. Every tool accepts an optional chat_id parameter, so you can simply ask your AI agent to "send this to chat ID -1001234567890":
chat_id omitted → the message goes to the TELEGRAM_DEFAULT_CHAT_ID from your config.chat_id provided → the message goes to that user/group/channel instead.Add the configuration below to your MCP settings file (e.g., cline_mcp_settings.json or claude_desktop_config.json).
This single block enables both sending and interactive receive — just fill in your token, chat ID and allowlists:
{
"mcpServers": {
"Telegram": {
"command": "uvx",
"args": ["mcp-telegram-agent"],
"env": {
"TELEGRAM_BOT_TOKEN": "YOUR_TELEGRAM_BOT_TOKEN",
"TELEGRAM_DEFAULT_CHAT_ID": "YOUR_CHAT_ID",
"TELEGRAM_ALLOWED_CHAT_IDS": "123456789,-1001234567890",
"TELEGRAM_ALLOWED_USER_IDS": "123456789"
}
}
}
}
💡 All four environment variables are optional. If one is missing, the server still starts normally — it returns a clear, human-readable error only when a tool call actually needs it. What each variable does:
TELEGRAM_BOT_TOKEN — your Bot Token; required by all sending tools.TELEGRAM_DEFAULT_CHAT_ID — the default recipient used when a tool call omits chat_id.TELEGRAM_ALLOWED_CHAT_IDS / TELEGRAM_ALLOWED_USER_IDS — interactive-receive allowlists so your agent can read back your replies (text messages, inline button clicks, poll answers); see step 6️⃣ for details. Omitting them disables receive: get_updates / wait_for_reply return a setup hint instead.TELEGRAM_STATE_DIR (advanced, not shown above) — directory for the persisted getUpdates offset file; defaults to a mcp-telegram-agent subfolder under the system temp directory.💡 For a credential-free trial run, omit the whole
envblock and fill in the pieces as the tool error messages instruct.
The recommended configuration already fills in both allowlists, so get_updates / wait_for_reply can fetch or long-poll your replies. Behavior details:
TELEGRAM_ALLOWED_CHAT_IDS — comma-separated chat allowlist; when set, updates from other chats are filtered out (group IDs are negative). poll_answer events carry no chat_id, so they cannot be matched against this list.TELEGRAM_ALLOWED_USER_IDS — comma-separated user allowlist; when set, updates are also filtered by user ID. An update passes if it hits any configured list (each unset list is simply ignored).get_updates (no state file yet) fetches all pending updates from Telegram, and they are consumed when mark_read is true (the default). Use mark_read: false to preview without consuming them.limit only caps how many matching updates are returned per call: the offset advances only past the last returned update, so the remaining matches stay queued for the next call. Updates that don't match the allowlist or types are still consumed — the offset is a single stream, so a single type or chat cannot be held back.get_updates / wait_for_reply return a setup hint instead of updates. Restart the MCP server after editing env.⚠️ Timing matters: Telegram keeps a callback query valid for only a few seconds.
get_updatesandwait_for_replyanswer button clicks automatically right when they are received (defaultauto_answer: true); only if you disable it must you callanswer_callback_queryimmediately after a click is returned — long gaps are rejected withquery is too old(a platform limit, not a bug).
| Tool | Description |
|---|---|
send_text_message | Send Markdown/HTML text with inline buttons or custom reply keyboards. |
send_local_document | Send any local file (PDF, CSV, code, logs, archives). |
send_local_photo | Send image files with captions and inline buttons. |
send_local_video | Send video files as native players. |
send_local_audio_or_voice | Send music tracks or native voice audio notes. |
send_media_album | Deliver 2 to 10 photos or videos as a grouped carousel. |
send_poll | Create interactive single/multiple choice polls or scored quizzes. |
send_location | Broadcast map location points via coordinates. |
send_contact | Share phone contact cards. |
send_dice | Send animated dice, basketball, football, or slot machines. |
send_chat_action | Display temporary bot statuses (typing, uploading). |
edit_message_text | Dynamically update previously sent text and keyboards. |
delete_message | Clean up or remove specific messages. |
get_updates | Fetch pending updates once (messages, button clicks, poll answers) without waiting. |
wait_for_reply | Long-poll until the next user reply arrives, with a timeout. |
answer_callback_query | Acknowledge a button press to stop its loading spinner; optional alert text or URL. |
Once configured, simply talk to your AI agent in natural language — it picks the right tool automatically. Below are typical requests together with the tool calls the agent makes:
"Tell me in Telegram that the nightly build succeeded, with a button linking to https://example.com"
{
"tool": "send_text_message",
"arguments": {
"text": "✅ *Nightly build succeeded!*",
"parse_mode": "Markdown",
"inline_buttons": [[{"text": "Dashboard", "url": "https://example.com"}]]
}
}
"Upload
logs/app.logto my Telegram and summarize the errors"
{
"tool": "send_local_document",
"arguments": {
"file_path": "logs/app.log",
"caption": "Error log summary: 3 timeout warnings"
}
}
"Send the three screenshots in
screenshots/to my Telegram as one album"
{
"tool": "send_media_album",
"arguments": {
"file_paths": ["screenshots/1.png", "screenshots/2.png", "screenshots/3.png"],
"caption": "Latest UI screenshots"
}
}
"Post a quiz to chat ID -1001234567890: which port does HTTPS use? Options 80 / 443 / 8080, the answer is 443, with a short explanation"
{
"tool": "send_poll",
"arguments": {
"chat_id": "-1001234567890",
"question": "Which port does HTTPS use?",
"options": ["80", "443", "8080"],
"type": "quiz",
"correct_option_id": 1,
"explanation": "HTTPS defaults to port 443."
}
}
"Change that deployment notice to 'finished', then delete the old reminder (ID 120)"
{
"tool": "edit_message_text",
"arguments": { "message_id": 123, "text": "🚀 Deployment **finished**" }
}
{
"tool": "delete_message",
"arguments": { "message_id": 120 }
}
"Ask me a yes/no question with inline buttons, wait for my answer, and tell me what I clicked"
{
"tool": "send_text_message",
"arguments": {
"text": "Deploy to production now?",
"inline_buttons": [[{"text": "Yes", "callback_data": "deploy:yes"}, {"text": "No", "callback_data": "deploy:no"}]]
}
}
{
"tool": "wait_for_reply",
"arguments": { "types": ["callback_query"], "timeout": 25 }
}
{
"tool": "answer_callback_query",
"arguments": { "callback_query_id": "<callback_query.id from the click>", "text": "🚀 Deploying…" }
}
💡 Requires the step 5️⃣ allowlist. Use
get_updatesfor a one-shot, non-blocking check (addmark_read: falseto peek without consuming updates) andwait_for_replyto long-poll until something arrives. Callback clicks are auto-answered the moment they are fetched; passauto_answer: falseonly when you need a custom prompt, alert, or URL viaanswer_callback_query.
💡 When
chat_idis omitted, messages go toTELEGRAM_DEFAULT_CHAT_ID; pass it explicitly to reach any user, group, or channel — see step 4️⃣ above.
main — all feature work and PRs land here.release branch: open a PR main → release, bump version in pyproject.toml within the PR, then merge — CI builds and publishes to PyPI automatically, and creates a matching GitHub Release (v* tag + auto-generated notes).release are blocked by branch protection; always go through a PR.This project is licensed under the MIT License.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for mcp-telegram-agent from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/mcp-telegram-agent)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

An AI receptionist platform with an MCP server for accessing business calls, contacts and appointments from AI assistants.
Pidgeon provides an MCP server and an email inbox API that gives AI agents their own addresses for sending, awaiting, and replying to email.

A Telegram CLI with background sync that can run an optional MCP server for a personal account using MTProto, not the bot API.