Telegram MCP Server
Provides tools for interacting with the Telegram Bot API, enabling AI assistants to send messages, retrieve bot information, receive updates, and forward messages.
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 ServerSend 'Hello' to chat 123456"
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 Server
An MCP server implementation that provides tools for interacting with the Telegram Bot API. This service allows AI assistants to send messages and retrieve bot information programmatically.
Tools
The Telegram MCP Service provides the following tools for interacting with the Telegram Bot API:
get_bot_info
Retrieves basic information about the bot.
No parameters required
Returns a User object containing bot information
send_message
Sends a message to a specified chat.
chatId: Unique identifier for the target chat (can be string or number)text: Text of the message to be sentparams(optional): Additional parameters for the message (e.g., parse_mode, reply_markup, etc.)
get_updates
Receives incoming updates using long polling.
params(optional): Object containing optional parameters:offset(optional): Identifier of the first update to be returnedlimit(optional): Limits the number of updates to be retrieved (1-100)timeout(optional): Timeout in seconds for long pollingallowed_updates(optional): Array of update types to receive
Returns an array of Update objects containing various types of updates:
Messages and edited messages
Channel posts
Business messages
Inline queries
Callback queries
Shipping queries
Pre-checkout queries
Polls and poll answers
Chat member updates
Chat join requests
Chat boosts
forward_message
Forwards messages of any kind. Service messages and messages with protected content can't be forwarded.
chatId: Unique identifier for the target chat or username of the target channel (in the format @channelusername)fromChatId: Unique identifier for the chat where the original message was sent (or channel username in the format @channelusername)messageId: Message identifier in the chat specified in from_chat_idparams(optional): Object containing optional parameters:message_thread_id(optional): Unique identifier for the target message thread (topic) of the forum; for forum supergroups onlyvideo_start_timestamp(optional): New start timestamp for the forwarded video in the messagedisable_notification(optional): Sends the message silently. Users will receive a notification with no sound.protect_content(optional): Protects the contents of the forwarded message from forwarding and saving
Returns the sent Message object on success
Related MCP server: Telegram Bot MCP Server
Configuration
Environment Variables
You need to set up the following environment variable:
TELEGRAM_BOT_TOKEN=your_bot_tokenYou can get your bot token by talking to @BotFather on Telegram and creating a new bot.
Creating a new bot
Use the /newbot command to create a new bot. @BotFather will ask you for a name and username, then generate an authentication token for your new bot.
The name of your bot is displayed in contact details and elsewhere.
The username is a short name, used in search, mentions and t.me links. Usernames are 5-32 characters long and not case sensitive – but may only include Latin characters, numbers, and underscores. Your bot's username must end in 'bot', like 'tetris_bot' or 'TetrisBot'.
The token is a string, like 110201543:AAHdqTcvCH1vGWJxfSeofSAs0K5PALDsaw, which is required to authorize the bot and send requests to the Bot API. Keep your token secure and store it safely, it can be used by anyone to control your bot.
Unlike the bot's name, the username cannot be changed later – so choose it carefully. When sending a request to api.telegram.org, remember to prefix the word 'bot' to your token.
Development
npm install
npm run build
npx @modelcontextprotocol/inspector node dist/index.jsOpen http://127.0.0.1:6274 to set up the environment and interact with the tools.
License
This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.
This server cannot be deployed
Maintenance
Related MCP Connectors
Run a Telegram channel from your AI agent. Posts go out through your own bot, not your account.
Telegram bridge for your MCP-compatible agent. Bidirectional, no LLM in our stack.
Messaging tools for AI agents: send messages, manage chats, groups and channels.
Manage Telegram drafts, media, schedules and publications from AI clients.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI agents to send and receive messages, media, and files on Telegram, and manage chats via a bot token.17MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to interact with the Telegram Bot API, supporting messaging, user management, and bot configuration with intelligent message splitting and error handling.63 npm7MIT
- AlicenseBqualityDmaintenanceEnables AI agents to send notifications and media (text, photos, documents, videos) via a Telegram bot.428 npm3Do What The F*ck You Want To Public
- FlicenseNot gradedqualityCmaintenanceEnables LLM clients to send messages, read recent messages, and retrieve chat information through the Telegram Bot API.-