Multi-tenant Telegram gateway for AI agents — HTTP+stdio, 8 tools, MTProto User API
This MCP server provides a Model Context Protocol (MCP) gateway for Telegram, supporting multi-tenant operation and an MTProto bridge. It exposes 8 context-efficient tools and can run with both HTTP and stdio interfaces. It is distributed via pip install fast-mcp-telegram or uvx --from fast-mcp-telegram.
🛠️ Key Features
Multi-tenant Telegram gateway for AI agents
MCP gateway for Telegram
HTTP + stdio support
MTProto User API / MTProto bridge
8 context-efficient tools
🚀 Use Cases
Connect MCP-capable AI agents to Telegram
Use Telegram as a backend for multi-tenant agent workflows
Bridge Telegram MTProto interactions into MCP tool calls
Telegram MCP Server — Model Context Protocol (MCP) gateway for Telegram. 8 context-efficient tools, multi-tenant, MTProto bridge.
Canonical GitHub repository: alexeyleshchenko/fast-mcp-telegram. This is the same project previously published under leshchenko1979/fast-mcp-telegram. The old GitHub URL is a public 404. Install remains pip install fast-mcp-telegram or uvx --from fast-mcp-telegram; PyPI is the stable pointer.
This server sits between your AI agent and Telegram's API:
code
Your agent → MCP/HTTP → this server → MTProto → Telegram
What it does: Authenticates you with Telegram (QR or phone/bot token), exposes 8 AI-friendly tools instead of 80+ micro-APIs, and bridges raw MTProto for power users. Multi-tenant — one server, many users, isolated sessions.
Optional PREFIX_MCP_TOOLS_WITH_ACCOUNT — when one agent uses several MCP connections (same server, different tokens), prefixes tool names so they do not collide; not needed for standard multi-user hosting
Bot token alternative (no phone, no OTP):
Set BOT_API_TOKEN instead of --phone-number. See Installation Guide.
2. Configure MCP Client
stdio mode (local): Add to your MCP client config (e.g. claude_desktop_config.json) — stdio (standard input/output) is the default transport for local MCP clients: