45telega
Provides tools for interacting with Telegram's API to send, edit, delete, forward, and reply to messages; send files and media; list and manage chats, groups, channels, and members; and retrieve or manage user and contact information, including blocking and unblocking users.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
๐ 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
Related MCP server: Better Telegram MCP
๐ 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 | bashPyPI Install
pip install 45telegaDocker 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
Go to my.telegram.org
Login with your phone number
Create new application
Copy
api_idandapi_hash
2. Configure Environment
Copy .env.example to .env:
cp ~/.config/45telega/.env.example ~/.config/45telega/.envEdit with your credentials:
TELEGRAM_API_ID=your_api_id_here
TELEGRAM_API_HASH=your_api_hash_here
TELEGRAM_PHONE=+1234567890 # Optional3. First Authentication
45telega sign-in --phone +1234567890Enter the code you receive on Telegram.
๐ฏ Usage
Start MCP Server
# Native
45telega run
# Docker
docker-compose up -d
# With custom port
45telega run --port 9000Add 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)
See the Windows Setup Guide for detailed Kiro IDE integration instructions.
๐ Available Methods
Messages
SendMessage- Send text messagesEditMessage- Edit existing messagesDeleteMessage- Delete messagesForwardMessage- Forward messagesReplyToMessage- Reply to specific messagesSendFile- Send files/media
Chats
GetChats- List all chatsGetChatInfo- Get chat detailsGetChatMembers- List chat membersCreateGroup- Create new groupCreateChannel- Create new channelJoinChatByInvite- Join via invite link
Users
GetMe- Get current user infoGetUserInfo- Get user detailsGetContacts- List contactsAddContact- Add new contactBlockUser- Block userUnblockUser- Unblock user
๐ณ Docker Deployment
docker-compose.yml
version: '3.8'
services:
45telega:
image: ghcr.io/sergekostenchuk/45telega:latest
restart: unless-stopped
ports:
- "8765:8765"
volumes:
- ./data:/data
- ./logs:/logs
env_file:
- .envRun with Docker Compose
docker-compose up -d
docker-compose logs -f # View logs
docker-compose down # Stop๐ Security
Non-root container: Runs as unprivileged user
Environment variables: No hardcoded credentials
Session encryption: Secure session storage
Rate limiting: Built-in protection
Health checks: Automatic recovery
๐ Monitoring
Health Check
curl http://localhost:8765/healthPrometheus Metrics
Enable in .env:
PROMETHEUS_ENABLED=true
PROMETHEUS_PORT=9090Logging
Logs are stored in ./logs/ with rotation:
tail -f logs/45telega.log๐ Updates
Auto-update
45telega updateManual Update
cd ~/.local/share/45telega
git pull
pip install -e . --upgrade๐งช Development
Setup Development Environment
git clone https://github.com/sergekostenchuk/45telega
cd 45telega
pip install -e .[dev]Run Tests
pytest tests/
pytest --cov=telega45 # With coverageCode Quality
black . # Format code
ruff check . # Lint
mypy telega45 # Type check๐ค Contributing
Fork the repository
Create feature branch (
git checkout -b feature/amazing)Commit changes (
git commit -m 'Add amazing feature')Push to branch (
git push origin feature/amazing)Open Pull Request
๐ License
MIT License - see LICENSE file.
๐ฌ Support
Issues: GitHub Issues
Discussions: GitHub Discussions
๐ Acknowledgments
Made with โค๏ธ by Sergey Kostenchuk
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogโฆ
This server cannot be deployed
Maintenance
Related MCP Connectors
Hosted Telegram MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Telegram bridge for your MCP-compatible agent. Bidirectional, no LLM in our stack.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yoโฆ
The Telnyx MCP server is an official implementation of the Model Context Protocol that enables AI clients (like Claude Desktop, Cursor, and OpenAI Agents) to interact with Telnyx's telephony, messaging, and AI assistant APIs. It provides comprehensive capabilities including making and managing phone calls, sending SMS/MMS messages, purchasing and configuring phone numbers, creating AI assistants with custom instructions, managing cloud storage buckets, scraping and embedding website content, and handling integration secrets. The server exists as both a local implementation and a remotely hosted version, allowing developers to integrate real-world communication infrastructure directly into AI applications.
Related MCP Servers
- AlicenseAqualityDmaintenanceA minimal Model Context Protocol server for interacting with Telegram bots via MTProto. It provides simple tools to send messages and retrieve chat history while serving as an easy-to-extend reference for developers.2MIT
- AlicenseNot gradedqualityAmaintenanceProduction-grade MCP server for Telegram with dual-mode Bot API and MTProto. 6 composite tools covering messages, chats, media, contacts management with 3-tier token optimization.922 PyPI13Apache 2.0
- FlicenseNot gradedqualityDmaintenanceModel Context Protocol server for Telegram. Let AI read, search, send, and forward your Telegram messages.-
- AlicenseAqualityCmaintenanceMCP server that acts as a gateway to Telegram, providing AI-optimized tools for messaging, search, and chat management via MTProto. Supports multi-user authentication with QR login and HTTP/stdio transports.82MIT