MCP Telegram Server is an MCP server that connects AI assistants and large language models directly to the Telegram API via MTProto. Designed for developers and automated workflows, it acts as a gateway that replaces broad micro-APIs with eight context-efficient tools. It enables clients to authenticate via mobile QR codes, bot tokens, or standard credentials, facilitating direct interaction with personal accounts or bots. Users can search messages across chats, inspect threads and forum topics, download replies, and dispatch formatted text along with rich file attachments. The server supports multi-tenant remote deployments over HTTP with Bearer tokens as well as local execution via standard I/O. Through this bridge, AI agents can read user dialogues, fetch chat profiles, execute targeted queries across folders, and access raw MTProto methods when advanced interaction is necessary, all while enforcing session isolation and access control lists.
Category: Communication & Messaging
Tags: bot, chat, messaging, telegram
uvx --from fast-mcp-telegram fast-mcp-telegram-setup --api-id="your_api_id" --api-hash="your_api_hash" --phone-number="+123456789" (or provide BOT_API_TOKEN instead of a phone number). 2. For local stdio connections, add the server to your claude_desktop_config.json: json { "mcpServers": { "telegram": { "command": "uvx", "args": ["fast-mcp-telegram"], "env": { "API_ID": "your_api_id", "API_HASH": "your_api_hash" } } } } 3. For remote HTTP deployments, configure the endpoint and auth header instead: json { "mcpServers": { "telegram": { "url": "https://tg-mcp.l1979.ru/mcp", "headers": { "Authorization": "Bearer YOUR_TOKEN" } } } } 4. Restart your MCP client to access the Telegram tools.Part of MCP Servers
MCP Telegram Server is a Model Context Protocol gateway that connects AI assistants to the Telegram platform. It enables agents to read chats, retrieve message history, manage contacts, and send formatted text or attachments using Telegram's MTProto API.
You install and authenticate using uvx by executing the fast-mcp-telegram-setup tool with your API credentials. Once your session is established, register fast-mcp-telegram under the mcpServers configuration in your client configuration file using uvx or connect via an HTTP endpoint.
The server consolidates functionality into eight core tools: search_messages_globally, get_messages, send_message, edit_message, find_chats, get_chat_info, send_message_to_phone, and invoke_mtproto for raw API interactions.
Yes, MCP Telegram Server is open source and released under the MIT license. You can inspect its source code, contribute modifications, or self-host it directly from its GitHub repository.