Fast MCP Telegram logo

Fast MCP Telegram

Connect AI agents to Telegram through eight MCP tools, dual transports, multi-user sessions, and an optional raw MTProto bridge.

Install Fast MCP Telegram

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "fast-mcp-telegram": {
      "command": "uvx",
      "args": [
        "--from",
        "fast-mcp-telegram",
        ";",
        "PyPI"
      ],
      "env": {
        "API_ID": "YOUR_VALUE_HERE",
        "API_HASH": "YOUR_VALUE_HERE",
        "BOT_API_TOKEN": "YOUR_VALUE_HERE",
        "ACL_ENABLED": "YOUR_VALUE_HERE",
        "PREFIX_MCP_TOOLS_WITH_ACCOUNT": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

uvx --from fast-mcp-telegram ; PyPI

Process exited before answering initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

The fast-mcp-telegram MCP server connects AI agents to Telegram through MTProto, exposing eight consolidated tools for discovery, message retrieval, messaging, editing, and direct API calls. It supports local stdio and remote HTTP transports, with Bearer-token authentication for multi-user deployments. Authentication can use QR setup, phone login, or a bot token, while sessions may be stored locally or in S3-compatible storage. Reach for it when an agent needs to search Telegram conversations, manage messages, find chats, or call Telegram API methods directly.

Use cases

  • Search messages across Telegram chats
  • Retrieve replies and browse conversation history
  • Send or edit Telegram messages
  • Find users, groups, and channels
  • Call Telegram API methods through MTProto

Key features

  • Eight consolidated MCP tools
  • Stdio and HTTP transports
  • QR, phone, and bot-token authentication
  • Multi-user session isolation
  • Global and per-chat message search
  • Direct MTProto API access

Tools8

What Fast MCP Telegram lets your agent do. Expand a tool for its parameters.

Self-reported~77 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

16/16 checks healthy over the last 79d

Supply-chain signal

1 high-severity advisory on record for this package. Most advisories affect transitive dependencies and may not be exploitable in this server's actual usage — this is a directional signal, not a security audit.

Critical 1High 0Medium 0Low 1

Scanned 4d ago via OSV.dev · fast-mcp-telegram (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars3Stargazers on the source repository.
Last commit3mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Tools exposed8Callable tools this server registers over MCP.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How Fast MCP Telegram works

What fast-mcp-telegram MCP server does

The fast-mcp-telegram MCP server gives MCP-compatible agents access to Telegram through the MTProto User API. It groups common operations into eight tools rather than exposing many small API wrappers. The available operations cover global message search, unified message retrieval, sending and editing messages, chat discovery, chat profile information, sending messages to phone numbers, and direct MTProto method invocation.

The server can work with a personal Telegram account or a bot token. Personal-account authentication supports QR setup through the web interface, with phone-number login available as a fallback. A remote deployment can serve multiple users, isolating each user’s Telegram session behind a Bearer token.

How it works

Requests follow this path: an AI agent connects over MCP or HTTP, the server resolves Telegram entities and sessions, and MTProto performs the operation against Telegram. Local MCP clients use stdio. Remote deployments use HTTP, with an authenticated mode intended for production and an unauthenticated mode available for development.

Message access is consolidated in get_messages, which supports searching, browsing, reading by ID, and retrieving replies. Search can operate globally or within a chat and supports multiple queries with deduplication. Chat discovery handles users, groups, and channels with a common entity format, and can filter dialogs by folder.

The invoke_mtproto tool provides a lower-level escape hatch for direct Telegram API methods. The HTTP MTProto bridge also supports direct API requests with Bearer authentication, entity resolution, and safety controls.

Setup and configuration

For a local installation, install the package with pip install fast-mcp-telegram or run it through uvx --from fast-mcp-telegram. Run the setup command once with an API ID, API hash, and phone number to create a Telegram session, then start the server. A bot-token configuration can be used instead of phone authentication.

For remote use, open the /setup page, scan its QR code from Telegram’s device settings, and copy the resulting Bearer token. The setup page can also generate an MCP configuration file. An HTTP client sends that token in an Authorization: Bearer header.

The fast-mcp-telegram MCP server supports per-token session files on shared hosts. S3-compatible object storage is available for sessions in ephemeral environments. Optional configuration includes MTProto proxy support, per-principal session access controls, and tool-name prefixes when one agent connects to multiple accounts.

Tools and capabilities

  • search_messages_globally: search across chats.
  • get_messages: search, browse, read messages, and retrieve replies.
  • send_message: send messages, including supported replies and attachments.
  • edit_message: modify existing messages.
  • find_chats: locate users, groups, and channels.
  • get_chat_info: retrieve detailed chat or profile information.
  • send_message_to_phone: send a message to a phone number.
  • invoke_mtproto: call Telegram API methods directly.

Messaging features include formatting, forum-topic posting, file attachments, inline data-URI uploads, and album support. File handling includes size controls and SSRF protection.

Limitations and notes

The fast-mcp-telegram MCP server requires Telegram API credentials for personal-account use, or a bot token for bot authentication. Remote HTTP use requires a Bearer token in the authenticated configuration. QR authentication is available through the web setup flow; phone, code, and two-factor authentication remain fallback options when applicable.

Direct MTProto access is intended for advanced use and should be governed by the server’s configured safety and access controls. Session ACL options can restrict chat lanes, enable read-only access, block peers, and control MTProto access when enabled. The README identifies Python 3.11 or newer and provides Docker support.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Fast MCP Telegram

fast-mcp-telegram is an MCP server that connects AI agents to Telegram through the MTProto User API. Its main tools search and retrieve messages, find chats, send or edit messages, message phone numbers, and invoke Telegram API methods directly. It supports local stdio, remote HTTP, and multi-user authenticated sessions.

Install it with `pip install fast-mcp-telegram` or run it with `uvx --from fast-mcp-telegram`. For local use, run `fast-mcp-telegram-setup` with your Telegram API ID, API hash, and phone number, then configure your MCP client to launch `fast-mcp-telegram`.

Authenticate through the web setup page by scanning its QR code with Telegram, then copy the Bearer token. Phone-number login is available as a fallback, and local setups can use the setup command. A bot token can be configured instead of phone authentication.

Yes, fast-mcp-telegram can be used with Cursor through its standard MCP configuration. Configure either the local stdio command or the remote HTTP endpoint, supplying the required environment variables or Bearer authorization header.

Yes, it provides the `invoke_mtproto` tool for direct Telegram API calls. The project also documents an HTTP MTProto bridge for calling API methods with a Bearer token, entity resolution, and safety guardrails.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewFast MCP Telegram AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/fast-mcp-telegram?style=directory)](https://allmcps.com/mcp/fast-mcp-telegram)
HTML Embed
<a href="https://allmcps.com/mcp/fast-mcp-telegram"><img src="https://allmcps.com/api/badge/fast-mcp-telegram?style=directory" alt="Fast MCP Telegram on AllMCPs" /></a>