telegram-mcp-kit
Allows interaction with the Telegram Bot API, enabling sending messages, editing/deleting messages, managing chats (ban, unban, pin), sending photos and documents, and retrieving bot info.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@telegram-mcp-kitsend a message saying 'Hello everyone'"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
🚀 telegram-mcp-kit
MCP server that exposes the Telegram Bot API as tools for Claude Code (or any MCP client).
Table of Contents
Related MCP server: Telegram MCP Server
🚀 Quick Start
Get your bot token from @BotFather on Telegram. Once the server is configured, you can run /mcp inside Claude Code to verify it is connected.
🛠️ Installation
Get your bot token from @BotFather on Telegram first.
Option 1: From PyPI (recommended)
claude mcp add telegram-mcp-kit \
-e TELEGRAM_BOT_TOKEN=your-bot-token-here \
-e TELEGRAM_CHAT_ID=your-chat-id \
-- uvx telegram-mcp-kit{
"mcpServers": {
"telegram-mcp-kit": {
"command": "uvx",
"args": ["telegram-mcp-kit"],
"env": {
"TELEGRAM_BOT_TOKEN": "your-bot-token-here",
"TELEGRAM_CHAT_ID": "your-chat-id"
}
}
}
}Option 2: From GitHub
claude mcp add telegram-mcp-kit \
-e TELEGRAM_BOT_TOKEN=your-bot-token-here \
-e TELEGRAM_CHAT_ID=your-chat-id \
-- uvx --from "git+https://github.com/QuocTang/telegram-mcp-kit.git" telegram-mcp-kit{
"mcpServers": {
"telegram-mcp-kit": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/QuocTang/telegram-mcp-kit.git",
"telegram-mcp-kit"
],
"env": {
"TELEGRAM_BOT_TOKEN": "your-bot-token-here",
"TELEGRAM_CHAT_ID": "your-chat-id"
}
}
}
}Option 3: From source
git clone https://github.com/QuocTang/telegram-mcp-kit.git
cd telegram-mcp-kit
cp .env.example .env # add your TELEGRAM_BOT_TOKEN
uv syncclaude mcp add telegram-mcp-kit \
-- uv run --directory /absolute/path/to/telegram-mcp-kit telegram-mcp-kit{
"mcpServers": {
"telegram-mcp-kit": {
"command": "uv",
"args": [
"run",
"--directory",
"/absolute/path/to/telegram-mcp-kit",
"telegram-mcp-kit"
]
}
}
}With this option,
TELEGRAM_BOT_TOKENis read from the.envfile inside the project directory.
Environment variables
Variable | Required | Description |
| Yes | Token from BotFather |
| No | Default chat ID (if set, |
| No |
|
| No | Bind host (default |
| No | Bind port (default |
| No | Telegram API timeout in seconds (default |
📦 Features
🚀 Feature | 📝 Description |
🛠️ 20+ Tools | Comprehensive coverage for messages, chat management, files/photos, and bot info. |
🔍 Auto-discovery | Simply add a Python file to the |
📡 Flexible Transport | Works seamlessly over stdio (for local clients) or SSE (remote/Docker). |
Tools List
Messages
Tool | Description |
| Send a text message (Markdown/HTML) |
| Edit an existing message |
| Delete a message |
| Forward a message between chats |
Updates
Tool | Description |
| Fetch recent messages/updates the bot received |
Chat management
Tool | Description |
| Get chat metadata (name, type, description) |
| Count members |
| List administrators |
| Ban a user |
| Unban a user |
| Change group/channel title |
| Change group/channel description |
| Pin a message |
| Unpin a message |
Files & photos
Tool | Description |
| Send a photo by URL or file_id |
| Send a local photo file |
| Send a document by URL or file_id |
| Send a local file as document |
| Get file metadata + download link |
Bot
Tool | Description |
| Get bot name, username, etc. |
🤝 How to Contribute
We welcome contributions! Please follow these steps:
Fork the repository.
Create a new branch for your feature.
Submit a Pull Request.
See CONTRIBUTING.md for how to add new tools.
Development
uv sync # install all deps (including dev)
uv run pytest -v # run tests
uv run ruff check src/ tests/ # lint💬 Community & Support
If this repository saves you time, please star the repository!
👥 Repo Contributors
Made with contrib.rocks.
⚖️ License
MIT License. See LICENSE for details.
🌟 Star History
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/QuocTang/telegram-mcp-kit'
If you have feedback or need assistance with the MCP directory API, please join our Discord server