Telegram MCP Kit logo

Telegram MCP Kit

Connects Claude, Codex, or another MCP client to a local server for searching and reading your personal Telegram account.

Install Telegram MCP Kit

Run the project’s own setup commands, in order.

Setup steps from the project

telegram-mcp-kit installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    git clone https://github.com/chigwell/telegram-mcp
    
  2. 2. Check the setup
    git remote get-url origin        # must print https://github.com/chigwell/telegram-mcp
    
  3. 3. Configure
    git checkout e55d9c7a66a8eb0855debb268a4ed5b63749af2d   # commit this kit was checked against (24 Oct 2026)
    
  4. 4. Add to Claude Code
    claude mcp add --transport http telegram http://127.0.0.1:<FREE_PORT>/mcp
    
  5. 5. Start the server
    uvx telegram-mcp
    

Overview

telegram-mcp-kit connects Claude Code, Codex, Cursor, Gemini CLI, Claude Desktop, or another MCP client to your personal Telegram account through a local streamable-HTTP server. It packages setup instructions, an agent skill, validation steps, and operational guidance around the upstream chigwell/telegram-mcp server. Telegram tools can search and read real chats, identify the logged-in account, and optionally send messages when explicitly enabled. Reach for it when an AI assistant needs access to a user account rather than a Telegram bot inbox.

Use cases

  • Search personal Telegram chats for a specific message or topic
  • Read messages from existing Telegram conversations in an AI client
  • Confirm which Telegram account a local MCP session uses
  • Share one local Telegram connection with Claude Code and Codex
  • Enable controlled message sending after read-only validation

Key features

  • Personal Telegram account access
  • Streamable HTTP MCP endpoint
  • Read-only tool configuration
  • Claude Code and Codex setup skill
  • Account and session validation checks
  • Optional message-sending tools

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.

Adoption & maintenance

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

GitHub stars6Stargazers on the source repository.
Last commit9d agoMost recent push to the default branch.

How Telegram MCP Kit works

What telegram-mcp-kit does

telegram-mcp-kit provides the setup and operating materials for connecting an MCP client to a personal Telegram account. The underlying server is cloned from chigwell/telegram-mcp; this repository adds an installable skill, prompts, configuration guidance, recovery procedures, validation checks, and notes about historical patches.

The resulting setup runs locally on the user's computer and exposes Telegram tools through streamable HTTP. Its intended starting point is read-only access, such as finding what someone wrote about a topic or reading messages from the user's existing chats. Sending can be enabled later, subject to the user's explicit decision.

How it works

A local Python process runs the upstream server and listens on a loopback URL such as http://127.0.0.1:<port>/mcp. Claude Code and Codex can register that same URL, allowing both clients to use one MCP service. The server authenticates as the user's Telegram account, not as a bot, using Telegram API credentials and a local session.

The repository also describes a separate Telethon worker for scripts that do not use an LLM. That worker must have its own machine-local authorization key rather than reusing the MCP server's session. The included telegram-connect skill can be installed for Claude Code or Codex, and the same skill distribution is usable with agents that read Agent Skills, including Cursor and Gemini CLI.

Setup and configuration

Create a Telegram API ID and API hash at my.telegram.org/apps, then keep both private. Install Python 3.10 or newer, clone the upstream repository, verify its origin, and use the dependency instructions associated with the selected upstream commit. The kit recommends pinning a full commit instead of assuming that historical patches still apply.

Configure the server with a private .env file, including the HTTP transport, loopback host, a free port, read-only exposed tools, and transcription disabled initially. Generate a Telegram session with the upstream session utility using phone or QR login. Login codes, 2FA passwords, API hashes, and session data must be entered or stored locally rather than sent through an AI chat.

Run one server process with a narrow private media directory, then register its /mcp URL in each client. Verification should call get_me or list_accounts; a listening port alone does not confirm that authentication works. Restarting and repeating the check confirms that the session persists.

Tools and capabilities

  • Search and read the user's Telegram conversations.
  • Call get_me to confirm the authenticated account.
  • Call list_accounts where supported by the selected upstream setup.
  • Expose read-only Telegram tools by default.
  • Enable message-sending tools when deliberately configured.
  • Share one local MCP endpoint between Claude Code and Codex.
  • Provide the telegram-connect agent skill and setup prompts.

Limitations and notes

The kit is not the Telegram MCP implementation itself; the server comes from the pinned upstream checkout. Do not install the unrelated PyPI package named telegram-mcp. Historical patches target specific upstream commits and should not be applied to a different revision without checking them.

The local endpoint has no built-in bearer authentication in the pinned upstream, so other local processes may be able to reach it. Keep it bound to 127.0.0.1 and use it only on a trusted single-user machine. Do not run two MCP servers with the same Telegram key, copy an authorized session between machines, or mix /sse and /mcp. Sending actions can affect real chats, so test with Saved Messages and inspect a chat after a timeout before retrying.

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 Telegram MCP Kit

telegram-mcp-kit is an MCP server setup kit that connects Claude Code, Codex, Cursor, Gemini CLI, Claude Desktop, or another MCP client to a user's personal Telegram account. Its main tools support searching and reading chats, checking the logged-in account with get_me or list_accounts, and optionally sending messages.

Clone the upstream chigwell/telegram-mcp repository, follow the dependency instructions for the selected commit, install the telegram-connect skill if needed, configure a private environment file, and register the local `/mcp` URL in your client. Do not install the unrelated PyPI package named telegram-mcp.

Register the server's local streamable-HTTP URL in each client. Claude Code uses its MCP add command with the HTTP transport, while Codex uses an `mcp_servers.telegram` entry containing the same URL. Both clients can share one running local server.

Yes. Configure `TELEGRAM_EXPOSED_TOOLS=read-only` to start with read-only tools for searching and reading chats. Sending tools can be enabled later, but the setup guidance recommends testing carefully with Saved Messages first.

Call `get_me` or `list_accounts` from the MCP client and confirm that it returns the user's own account. A listening port or running process is not sufficient, and restarting before repeating the check verifies that the session remains usable.

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 PreviewTelegram MCP Kit AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/telegram-mcp-kit?style=directory)](https://allmcps.com/mcp/telegram-mcp-kit)
HTML Embed
<a href="https://allmcps.com/mcp/telegram-mcp-kit"><img src="https://allmcps.com/api/badge/telegram-mcp-kit?style=directory" alt="Telegram MCP Kit on AllMCPs" /></a>