
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
mcp-telegram-bot-server
Advanced tools
A Model Context Protocol (MCP) server for Telegram Bot API integration
A powerful Model Context Protocol (MCP) server for seamless Telegram Bot API integration with intelligent message splitting, comprehensive error handling, and NPX support.
npx telegram-bot-mcp-server
- no installation required# Run directly without installation
npx telegram-bot-mcp-server
# Install globally
npm install -g telegram-bot-mcp-server
# Or install locally
npm install telegram-bot-mcp-server
/newbot
Add this configuration to your MCP client (Claude Desktop, etc.):
{
"mcpServers": {
"telegram_bot": {
"command": "npx",
"args": ["telegram-bot-mcp-server"],
"env": {
"TELEGRAM_BOT_API_TOKEN": "your_bot_token_here"
}
}
}
}
Using global installation:
{
"mcpServers": {
"telegram_bot": {
"command": "telegram-bot-mcp-server",
"env": {
"TELEGRAM_BOT_API_TOKEN": "your_bot_token_here"
}
}
}
}
Using local installation:
{
"mcpServers": {
"telegram_bot": {
"command": "node",
"args": ["./node_modules/.bin/telegram-bot-mcp-server"],
"env": {
"TELEGRAM_BOT_API_TOKEN": "your_bot_token_here"
}
}
}
}
send-message
Send text messages with automatic splitting for long content.
chatId
(string), text
(string)send-photo
Send photos with captions, handling long captions automatically.
chatId
(string), media
(string), text
(optional string)send-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)kick-chat-member
/ un-ban-chat-member
Manage chat members with detailed error reporting.
chatId
(string), userId
(number)get-chat
/ get-chat-member
/ get-chat-member-count
Retrieve detailed chat and member information.
chatId
(string), userId
(number, for member info)get-me
Test bot authentication and retrieve bot information.
set-my-name
/ get-my-name
Configure and retrieve bot name.
name
(string, 0-64 characters)set-my-description
/ get-my-description
Configure and retrieve bot description.
description
(string, 0-512 characters)set-my-short-description
/ get-my-short-description
Configure and retrieve bot short description.
short_description
(string, 0-120 characters)set-my-commands
/ get-my-commands
Configure and retrieve bot commands.
commands
(array of command objects)npx telegram-bot-mcp-server
❌ Error: Missing Telegram Bot Token
Solution: Set the TELEGRAM_BOT_API_TOKEN
environment variable:
export TELEGRAM_BOT_API_TOKEN="your_token_here"
npx telegram-bot-mcp-server
This has been replaced with detailed error messages. Update to the latest version for better error reporting.
Solution: Ensure Node.js 18+ is installed:
node --version # Should be 18.0.0 or higher
npm --version # Should be included with Node.js
Solution: On Unix systems, you may need to use sudo
for global installation:
sudo npm install -g telegram-bot-mcp-server
Set NODE_ENV=development
for additional debug information:
NODE_ENV=development npx telegram-bot-mcp-server
// Through MCP client
await sendMessage({
chatId: "@username",
text: "Hello! This is a test message."
});
// Messages over 4096 characters are automatically split
await sendMessage({
chatId: "123456789",
text: "Very long message content..." // Will be split automatically
});
await sendPhoto({
chatId: "123456789",
media: "https://example.com/photo.jpg",
text: "Very long caption..." // Will be split if needed
});
git checkout -b feature-name
git commit -am 'Add feature'
git push origin feature-name
This project is licensed under the MIT License - see the LICENSE file for details.
If you find this project helpful, consider supporting the developer:
FAQs
A Model Context Protocol (MCP) server for Telegram Bot API integration
The npm package mcp-telegram-bot-server receives a total of 283 weekly downloads. As such, mcp-telegram-bot-server popularity was classified as not popular.
We found that mcp-telegram-bot-server demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.