# telegram-mcp-kit [Health: Active]

**Category:** 💬 Communication  
**Repository:** https://github.com/tonydzi/telegram-mcp-kit  
**GitHub Stars:** 6  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/telegram-mcp-kit

## Description
Connect Claude (or any MCP client) to your own Telegram in ~15 minutes: setup prompt for Claude Code/Codex, production patches (shared daemon, extra tools, multi-account), watchdog, and every gotcha that cost us hours. On top of chigwell/telegram-mcp.

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/tonydzi/telegram-mcp-kit), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
git clone https://github.com/chigwell/telegram-mcp
```

2. Check the setup:

```sh
git remote get-url origin        # must print https://github.com/chigwell/telegram-mcp
```

3. Configure:

```sh
git checkout e55d9c7a66a8eb0855debb268a4ed5b63749af2d   # commit this kit was checked against (24 Oct 2026)
```

4. Add to Claude Code:

```sh
claude mcp add --transport http telegram http://127.0.0.1:<FREE_PORT>/mcp
```

5. Start the server:

```sh
uvx telegram-mcp
```

## Documentation

## 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.

_Full upstream README: https://allmcps.com/mcp/telegram-mcp-kit/readme_

