telegram-api-mcp
by timoncool·★ 20·Score 45
Comprehensive Telegram Bot API MCP server with full v9.6 coverage, meta-mode, and advanced rate limiting.
Overview
This MCP server provides complete coverage of Telegram Bot API v9.6 with all 169 methods exposed as tools. It includes sophisticated features like rate limiting (global and per-chat), circuit breaker pattern, retry with backoff, and meta-mode for context efficiency. The server uses TypeScript with Zod validation for robust parameter checking, implements security measures like token masking and path traversal protection, and maintains minimal dependencies (only 2). The codebase follows a clean architecture with declarative method registration, making it easy to extend and maintain.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose this server if you need comprehensive Telegram bot integration with Claude AI, especially if you're working with the latest Bot API features and require advanced features like meta-mode for token efficiency.
When NOT to choose this
Consider alternatives if you need a different messaging platform API or require features beyond what Telegram Bot API offers, as this is exclusively for Telegram.
Tools this server exposes
12 tools extracted from the READMEtelegram_findSearch Telegram Bot API methods by keyword or category
telegram_callCall any Telegram Bot API method by name with JSON parameters
sendMessageSend text messages to a chat
sendPhotoSend photos to a chat
sendPollSend polls to a chat
getChatGet information about a chat
banChatMemberBan a user from a chat
forwardMessageForward messages between chats
editMessageTextEdit text messages
getMeGet information about the bot
setMyCommandsSet bot commands in the menu
sendStickerSend stickers to a chat
Comparable tools
Installation
Installation
Claude Code
claude mcp add telegram -- npx telegram-api-mcp -e TELEGRAM_BOT_TOKEN=your_tokenClaude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"telegram": {
"command": "npx",
"args": ["telegram-api-mcp"],
"env": {
"TELEGRAM_BOT_TOKEN": "your_token_from_botfather"
}
}
}
}From source
git clone https://github.com/timoncool/telegram-api-mcp.git
cd telegram-api-mcp
npm install && npm run build
TELEGRAM_BOT_TOKEN=your_token node dist/index.jsFAQ
- What is meta-mode and why use it?
- Meta-mode uses only 2 tools (telegram_find and telegram_call) instead of 169, saving ~99% of context tokens. This is useful for long conversations where maintaining context for all 169 tools would be too expensive.
- How does rate limiting work?
- The server implements token bucket rate limiting with two levels: global (30 req/sec by default) and per-chat (20 msg/min by default). These limits match Telegram's official requirements and prevent API abuse.
Compare telegram-api-mcp with
Last updated · Auto-generated from public README + GitHub signals.