S4

sergekostenchuk/45telega

Developer tools

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

24 stars 5 forks Качество 77 Тренд 15MIT

Telegram MCP server with 45+ methods, QR auth, WSL/Kiro setup, and Docker-ready deployment

Обзор

A powerful Model Context Protocol (MCP) server for Telegram with 45+ methods, production-ready deployment, and enterprise features. - : Complete API coverage for messages, chats, users, media - : Docker support, health checks, monitoring, logging - : Non-root container, environment-based config, session encryption - : Async architecture, Redis caching, connection pooling - : One-line installation, auto-updates, multiple deployment options Comprehensive step-by-step guide for Windows users with WSL and Kiro IDE integration. - Python 3.9+ or Docker - Telegram API credentials from my.telegram.org - 512MB RAM minimum - Linux/macOS/Windows (with WSL) 1. Go to my.telegram.org 2. Login with your phone number 3. Create new application 4. Copy api_id and api_hash Edit ~/Library/Application Support/Claude/claude_desktop_config.json: See the Windows Setup Guide for detailed Kiro IDE integration instructions.

README

Показан фрагмент оригинального README. Открыть оригинал.

🚀 45telega - Production-Ready Telegram MCP Server

A powerful Model Context Protocol (MCP) server for Telegram with 45+ methods, production-ready deployment, and enterprise features.

✨ Features

  • 45+ Telegram Methods: Complete API coverage for messages, chats, users, media
  • Production Ready: Docker support, health checks, monitoring, logging
  • Secure: Non-root container, environment-based config, session encryption
  • Scalable: Async architecture, Redis caching, connection pooling
  • Easy Install: One-line installation, auto-updates, multiple deployment options

🚀 Quick Start

Platform-Specific Setup

🪟 Windows + WSL + Kiro IDE

📖 Complete Windows Setup Guide →

Comprehensive step-by-step guide for Windows users with WSL and Kiro IDE integration.

🐧 Linux/macOS

One-Line Install

curl -sSL https://raw.githubusercontent.com/sergekostenchuk/45telega/main/install.sh | bash

PyPI Install

pip install 45telega

Docker Install

docker run -d \
  --name 45telega \
  -p 8765:8765 \
  -e TELEGRAM_API_ID=your_api_id \
  -e TELEGRAM_API_HASH=your_api_hash \
  -v $(pwd)/data:/data \
  ghcr.io/sergekostenchuk/45telega:latest

📋 Prerequisites

  • Python 3.9+ or Docker
  • Telegram API credentials from my.telegram.org
  • 512MB RAM minimum
  • Linux/macOS/Windows (with WSL)

🔧 Configuration

1. Get Telegram API Credentials

  1. Go to my.telegram.org
  2. Login with your phone number
  3. Create new application
  4. Copy api_id and api_hash

2. Configure Environment

Copy .env.example to .env:

cp ~/.config/45telega/.env.example ~/.config/45telega/.env

Edit with your credentials:

TELEGRAM_API_ID=your_api_id_here
TELEGRAM_API_HASH=your_api_hash_here
TELEGRAM_PHONE=+1234567890  # Optional

3. First Authentication

45telega sign-in --phone +1234567890

Enter the code you receive on Telegram.

🎯 Usage

Start MCP Server

# Native
45telega run

# Docker
docker-compose up -d

# With custom port
45telega run --port 9000

Add to Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "45telega": {
      "type": "stdio",
      "command": "/Users/you/.local/bin/45telega",
      "args": ["run"],
      "env": {
        "TELEGRAM_API_ID": "your_api_id",
        "TELEGRAM_API_HASH": "your_api_hash"
      }
    }
  }
}

Add to Kiro IDE (Windows + WSL)

Открыть полный README на GitHub

Установка

docker run -d \
Новичок в MCP? Начните с руководства на mcpskill.org →

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

{ "mcpServers": { "45telega": { "type": "stdio", "command": "/Users/you/.local/bin/45telega", "args": ["run"], "env": { "TELEGRAM_API_ID": "your_api_id", "TELEGRAM_API_HASH": "your_api_hash" } } } }