This project is a Telegram bot integration built using the Model Context Protocol (MCP) that exposes a suite of useful tools for interacting with the Telegram Bot API. It enables standardized communication with Telegram via a structured set of commands such as messaging, user management, and bot profile configuration.
This MCP server exposes the following tools:
get-me
Test your bot's authentication and retrieve basic information about the bot.
send-message
Send a plain text message to a specific user or chat.
chatId
: Target chat ID or usernametext
: Message contentsend-photo
Send a photo with an optional caption.
chatId
: Target chat ID or usernamemedia
: File ID, URL, or uploaded filetext
(optional): Caption for the photokick-chat-member
Ban a user from a group, supergroup, or channel.
chatId
: Target chatuserId
: User to banun-ban-chat-member
Unban a previously banned user from a chat.
chatId
: Target chatuserId
: User to unbanget-chat
Fetch full chat metadata and details.
chatId
: Target chatget-chat-member-count
Get the total number of members in a group or channel.
chatId
: Target chatget-chat-member
Get detailed info about a specific member in a group or channel.
chatId
: Target chatuserId
: Target userset-my-short-description
Update your bot's short description (shown in the profile and shares).
short_description
: New short description (max 120 chars)get-my-short-description
Fetch the current short description of the bot.
set-my-commands
Set the list of commands that appear in the Telegram UI.
commands
: Array of { command, description }
get-my-commands
Get the current list of commands configured for the bot.
set-my-name
Update the name of the bot.
name
: New bot nameget-my-name
Retrieve the current name of the bot.
set-my-description
Update the full description of the bot (shown in empty chats).
description
: New bot description (max 512 chars)get-my-description
Fetch the current description of the bot.
git clone https://github.com/siavashdelkhosh81/telegram-bot-mcp-server.git
cd telegram-bot-mcp-server
/newbot
Install packages
yarn
Build packages
yarn build
Add this to your MCP client configuration:
{
"mcpServers": {
"telegram_bot": {
"command": "node",
"args": ["/ABSOLUTE/PATH/TO/PARENT/FOLDER/.build/index.js"],
"env": {
"TELEGRAM_BOT_API_TOKEN": "your bot token"
}
}
}
}
🔁 Replace
/ABSOLUTE/PATH/TO/PARENT/FOLDER/.build/index.js
with the real path to your compiled project entry point.
Feel free to open issues or contribute to the project. For Telegram-specific help, refer to the Telegram Bot API documentation.
Buy me a Coffee :) https://buymeacoffee.com/delkhoshsiv
This project is licensed under the MIT License - see the LICENSE file for details.
Seamless access to top MCP servers powering the future of AI integration.