
timoncool/telegram-api-mcp
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
Ultimate Telegram Bot API MCP 서버 - 전체 v9.6 적용, 메타 모드, 제한 속도, 회로 차단기. 유형 스크립트.
개요
Zod Validation, 토큰 마스킹, 도구 annotations 및 Zero bloat (2 의존성)을 가진 185/185 Bot API 방법. - 메시지, 미디어, 설문 조사, 채팅, 포럼, 스티커, 지불, 비즈니스, 이야기, 선물, 게임, 인라인, 관리 봇 - - 헤드, 테이블, 목록, collages, Slideshows, footnotes 및 최대 50 인라인 미디어와 함께 32768 문자로 포스트 - 1024-character caption 천장 대신 - (7 월 2026) - 풍부한 메시지, ephemeral 메시지, 라이브 사진, 게스트 모드, 가입-requestries-requests, 미디어에 노출되지 않은 자원을 설명합니다. (이러한 경우), MCG는 MCG에 노출되지 않습니다
개요(AI 번역)
** Telegram Bot API 용 MCP 서버 - 185 방법, 전체 v10.2 적용, 풍부한 메시지, 메타 모드, 제한 속도, 회로 차단기. **
Zod Validation, 토큰 마스킹, 도구 annotations 및 Zero bloat (2 의존성)을 가진 185/185 Bot API 방법.
특징
-185/185 Bot API 메소드 — 메시지, 미디어, 설문 조사, 채팅, 포럼, 스티커, 결제, 비즈니스, 스토리, 선물, 게임, 인라인, 관리 봇 -Rich 메시지 — headings, table, lists, collages, slideshows, footnotes 및 최대 50 인라인 미디어를 사용하여 최대 32768 문자를 게시합니다. 1024-character caption Ceiling -Bot API 10.2 (7월 2026) - 풍부한 메시지, ephemeral 메시지, 라이브 사진, 게스트 모드, 참여 요청 쿼리, 설문 조사
telegram_format] 도구 - 서버는rich_message,media],reply_markup],poll] 및 더 많은 before의 정확한 모양을 설명합니다. 그래서 에이전트는 구문을 추측할 필요가 없습니다 (telegram://format/…]) -Meta-mode - 185 대신 2개의 도구, ~99% 컨텍스트 토큰 저장- ** 제한 ** — 글로벌 (30 req/sec) + per-chat (20 msg/min), async mutex 토큰 버킷
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
185/185 Bot API methods with Zod validation, token masking, tool annotations, and zero bloat (2 dependencies).
Features
- 185/185 Bot API methods — messages, media, polls, chats, forums, stickers, payments, business, stories, gifts, games, inline, managed bots
- Rich messages — post up to 32768 characters with headings, tables, lists, collages, slideshows, footnotes and up to 50 inline media, instead of the 1024-character caption ceiling
- Bot API 10.2 (July 2026) — rich messages, ephemeral messages, live photos, guest mode, join-request queries, poll media
telegram_formattool — the server explains the exact shape ofrich_message,media,reply_markup,polland more before you send, so an agent never has to guess the syntax (also exposed as MCP resources undertelegram://format/…)- Meta-mode — 2 tools instead of 185, saves ~99% context tokens
- Rate limiting — global (30 req/sec) + per-chat (20 msg/min), token bucket with async mutex
- Circuit breaker — 3-state (closed/open/half-open), auto-recovery
- Retry with backoff — respects Telegram 429
retry_after, exponential backoff on 5xx - Zod validation — every parameter validated before hitting Telegram API
- Token masking — bot token never appears in responses, logs, or error messages
- File upload security — path traversal protection, configurable allowed directories
- Tool annotations — all 185 methods annotated (readOnly, destructive, idempotent, openWorld)
- Docs mirror + audit —
npm run docs:refreshre-downloads the official spec,npm run auditfails if any method or parameter drifts from it - Response truncation — 100K char limit to prevent context overflow
- Zero bloat — only 2 dependencies:
@modelcontextprotocol/sdk+zod
Quick Start
Claude Code
claude mcp add telegram -- npx telegram-api-mcp -e TELEGRAM_BOT_TOKEN=your_token
With meta-mode (recommended for large conversations):
claude mcp add telegram -- npx telegram-api-mcp \
-e TELEGRAM_BOT_TOKEN=your_token \
-e TELEGRAM_META_MODE=true
Claude Desktop
Add to claude_desktop_config.json:
설치
npx telegram-api-mcp설정
{
"mcpServers": {
"telegram": {
"command": "npx",
"args": ["telegram-api-mcp"],
"env": {
"TELEGRAM_BOT_TOKEN": "your_token_from_botfather"
}
}
}
}