
siavashdelkhosh81/telegram-bot-mcp-server
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
Telegram bot mcp server
概要
A powerful for seamless Telegram Bot API integration with intelligent message splitting, comprehensive error handling, and NPX support. - : Messaging, media, polls, chat administration, invite links, and bot configuration - : Automatically handles Telegram's 4096 character limit while preserving word boundaries and formatting - : Photos, documents, videos, audio, voice messages, animations, and stickers by file_id or URL - : Polls, quizzes, dice, locations, contacts, and chat actions (typing indicators) - : Edit, delete, forward, copy, and pin messages - : Ban/unban, restrict/mute, promote admins, and manage invite links - : Detailed error reporting with context, error codes, and debugging information - : Run directly with npx telegram-bot-mcp-server - no installation required - : Simple MCP client configuration for AI assistants 1. : Download here 2. : Get one from @BotFather 1. Open Telegram and search for @BotFather 2. Start a conversation and run: /newbot 3.
README
以下は原文 README の抜粋です。原文を見る。
🧠 Telegram Bot MCP Server
A powerful Model Context Protocol (MCP) server for seamless Telegram Bot API integration with intelligent message splitting, comprehensive error handling, and NPX support.
✨ Key Features
- 📝 45 Tools, Rich API Coverage: Messaging, media, polls, chat administration, invite links, and bot configuration
- 🔄 Intelligent Message Splitting: Automatically handles Telegram’s 4096 character limit while preserving word boundaries and formatting
- 🖼️ Full Media Support: Photos, documents, videos, audio, voice messages, animations, and stickers by file_id or URL
- 🎲 Interactive Content: Polls, quizzes, dice, locations, contacts, and chat actions (typing indicators)
- ✏️ Message Lifecycle: Edit, delete, forward, copy, and pin messages
- 👮 Group Administration: Ban/unban, restrict/mute, promote admins, and manage invite links
- 🛡️ Comprehensive Error Handling: Detailed error reporting with context, error codes, and debugging information
- 📦 NPX Support: Run directly with
npx telegram-bot-mcp-server- no installation required - 🔧 Easy Integration: Simple MCP client configuration for AI assistants
🚀 Quick Start
Option 1: NPX (Recommended)
# Run directly without installation
npx telegram-bot-mcp-server
Option 2: NPM Installation
# Install globally
npm install -g telegram-bot-mcp-server
# Or install locally
npm install telegram-bot-mcp-server
📋 Prerequisites
- Node.js 18+: Download here
- Telegram Bot Token: Get one from @BotFather
Getting Your Bot Token
- Open Telegram and search for @BotFather
- Start a conversation and run:
/newbot - Follow the prompts to name your bot
- Copy the API token provided
🔧 MCP Client Configuration
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"
}
}
}
}
Alternative Configurations
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"
}
}
}
インストール
npx telegram-bot-mcp-server設定
{
"mcpServers": {
"telegram_bot": {
"command": "npx",
"args": ["telegram-bot-mcp-server"],
"env": {
"TELEGRAM_BOT_API_TOKEN": "your_bot_token_here"
}
}
}
}