ST

siavashdelkhosh81/telegram-bot-mcp-server

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

8 stars 0 forks Качество 59 Тренд 24

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

# 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

  1. Node.js 18+: Download here
  2. Telegram Bot Token: Get one from @BotFather

Getting Your Bot Token

  1. Open Telegram and search for @BotFather
  2. Start a conversation and run: /newbot
  3. Follow the prompts to name your bot
  4. 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"
      }
    }
  }
Открыть полный README на GitHub

Установка

npx telegram-bot-mcp-server
Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

{ "mcpServers": { "telegram_bot": { "command": "npx", "args": ["telegram-bot-mcp-server"], "env": { "TELEGRAM_BOT_API_TOKEN": "your_bot_token_here" } } } }