Telegram MCP
Allows sending messages and photos through a Telegram bot to specified chats, including text messages with plain or HTML formatting and photo uploads from local paths or URLs.
Click on "Deploy 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 MCP Send a message to chat 123456789 saying the build finished successfully."
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 (send only)
Lets Claude Code and Claude Desktop send messages and photos through your Telegram bot. It runs locally and only makes outgoing calls to Telegram: it doesn't receive messages, open ports or need hosting.
Tools
Tool | Inputs | Notes |
|
| Text over 4096 characters is sent as several messages |
|
|
|
chat_idis always required. There is no default, so include it in your prompts, including scheduled task prompts.formatisplain(the default) orhtmlfor Telegram's HTML formatting.A person must have started your bot, or a group or channel must have added it, before the bot can message them.
Related MCP server: telegram-mcp-kit
Setup
You need Node.js 20 or later on each computer, or 22.19 or later if the computer runs antivirus or a proxy that scans HTTPS.
Open PowerShell in this folder and run:
powershell -ExecutionPolicy Bypass -File .\install.ps1Open
config.envand setTELEGRAM_BOT_TOKENto your token from @BotFather.Check the token. This doesn't send a message:
node server.mjs --checkRestart Claude Desktop and any open Claude Code sessions.
Moving to another computer
Copy this whole folder. You can leave out
node_modules, which is only needed for development.Run
install.ps1on the new computer.Restart Claude.
You can also clone this repository instead of copying the folder. config.env is deliberately not in the repository, so after cloning, run install.ps1 and add your token to config.env as in Setup. server.mjs is included, so no build is needed.
Scheduled tasks are stored on each computer, not in this folder, so recreate them on the new computer and turn them off on the old one to avoid duplicate messages.
Run install.ps1 again if you move the folder on the same computer, because Claude's config stores its exact location. To remove the server from a computer you're finished with, run uninstall.ps1 there before moving the folder, then delete config.env if the folder stays behind.
Replacing the token
Anyone with config.env can send messages as your bot, so keep this folder out of shared or public locations. If the token leaks:
Send
/revoketo @BotFather in Telegram.Put the new token in
config.env.
No restart is needed, because the token is read on each send.
Safety
The server doesn't restrict recipients. Any chat that has started your bot can be messaged, and anyone who finds the bot can start it.
Keep Claude's approval prompt on for these tools in interactive sessions. Scheduled tasks need sending pre-approved, so be careful with tasks that read untrusted content such as web pages or emails, which could try to trick Claude into sending data.
send_photocan send any supported image file that Claude can name, including screenshots.
Troubleshooting
Message | What to do |
| Set |
| The token is wrong or was revoked |
| Antivirus or a proxy is intercepting HTTPS. The server trusts the Windows certificate store on Node 22.19 or later, so update Node |
| Check the ID, and that the chat has started or added the bot |
| The person needs to unblock the bot |
| The HTML is invalid; escape |
Tools don't appear in Claude | Fully quit Claude, including from the system tray, because closing the window leaves it running. Then reopen it, and run |
install.ps1 saves the previous version of each Claude config file with a .bak extension.
Development
npm install
npm run build
npm testSource is in src/. npm run build bundles it into server.mjs and regenerates THIRD_PARTY_LICENSES.txt, so rebuild before running the tests or copying the folder.
License
MIT. See LICENSE. server.mjs also includes third-party packages, which are listed with their licenses in THIRD_PARTY_LICENSES.txt.
Available Tools
2 toolssend_messageSend Telegram messageA
Send a text message through the Telegram bot. Text over 4096 characters is split into several messages.
Inputs: text (required), chat_id (required), format.
send_photoSend Telegram photoA
Send a photo through the Telegram bot from an absolute local path (.jpg, .jpeg, .png, .webp, up to 10 MB) or an http(s) URL.
Inputs: photo (required), chat_id (required), format, caption.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools have clearly distinct purposes: one sends text, the other sends an image from a path or URL. There is no realistic chance of an agent selecting the wrong tool for a given request.
Both tools follow the same verb_noun snake_case convention (send_message, send_photo) and are intuitively named. No mixed conventions or vague verbs.
Two tools is very thin for a server billed as a general Telegram integration. It is not wrong for a minimal outbound bot, but it sits at the borderline of a usable surface.
Outbound text and photo sending are covered, but there is no way to read incoming messages, edit or delete sent messages, or send other media such as documents, audio, or video. These are notable gaps for a Telegram messaging server that agents may stumble on.
Related MCP Connectors
Publish and schedule Telegram channel posts from your AI assistant.
Send AI results to Telegram as private notifications or channel posts. No copy-pasting - connect your Telegram account and publish directly from AI assistants.
Let AI assistants post to your Telegram chats, groups and channels. Not affiliated with Telegram.
Run a Telegram channel from your AI agent. Posts go out through your own bot, not your account.
Related MCP Servers
- FlicenseNot gradedqualityNot gradedmaintenanceEnables interaction with the Telegram Bot API via the Model Context Protocol to send, edit, and delete messages, photos, and videos. It allows Claude to manage Telegram communications and fetch bot updates through natural language commands.58 npm-
- AlicenseAqualityDmaintenanceExposes the Telegram Bot API as tools for Claude Code or any MCP client, enabling message sending, chat management, file handling, and bot information retrieval.201MIT
- AlicenseNot gradedqualityDmaintenanceEnables Claude to send messages, media, and manage Telegram chat messages through a Telegram bot, including sending photos, documents, and editing or deleting messages.MIT
- FlicenseAqualityDmaintenanceEnables Claude to send and manage Telegram messages through a bot, supporting remote deployment for scheduled automations.10-