Skip to content
MCP server
Registry

Telegram channels MCP Server

Read, search and analyze Telegram channels from your own account, post with preview

Telegram channels scores 68 (Good), licensed MIT and written in Python. It installs as a local process. It declares 8 tools. Filed under Communication. GitHub shows 2 stars. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.

by kochurinMITPython2 stars
Trust score
68Good
Trust score 68 of 100, Good

Good trust

68 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 68 comes from

22 + 20 + 2 + 10 + 4 + 10 = 68. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity2 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 2 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs10 / 10

A real summary, a README with depth, listed tools.

Docs: 10 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "kochurin-telegram-channels-mcp": {      "command": "uvx",      "args": [        "telegram-channels-mcp"      ],      "env": {        "TELEGRAM_READ_ONLY": "",        "TELEGRAM_SESSION_PATH": ""      }    }  }}

Environment variables

NameRequiredNotes
TELEGRAM_READ_ONLYOptionalSet to 1 to hide the tools that publish posts and reply to comments
TELEGRAM_SESSION_PATHOptionalSession file created by `telegram-channels-mcp login`, default ~/.telegram-channels-mcp/session

Tools8Tool docs quality grade D

All capabilities
  • Subscribers, average and median views, reach %, reactions, posts per day, best post

  • Comments under a channel post

  • Your channels, groups and chats. adminonly leaves only the ones you run

  • Post text or text with an image to your channel. Preview first, sends only with the confirm token

  • Latest posts or messages of any channel or chat, with views, reactions, comment count and links

  • Comment under your post or reply to a specific comment. Preview first, sends only with the confirm token

  • Telegram's own full-text search inside one channel or chat

  • Best posts for the last N days by views, reactions, forwards or comments

About


An MCP server that connects Claude to your own Telegram account. Ask Claude to read a channel, find an old post, compare this week's reach with last week's, draft a post and publish it after you say yes

It works through the Telegram user API (Telethon), so it sees what you see in your app: public channels, your private channels and groups, comments under posts. The session file stays on your computer

What you can ask

  • "What did @durov post this month? Summarize in 5 bullets"
  • "Search my channel for posts about pricing and give me the links"
  • "Stats for my channel: subscribers, average views, best post of the week"
  • "Which of my last 30 posts got the most reactions, and what do they have in common?"
  • "Read the comments under my latest post and draft replies to the questions"
  • "Write a post about the update with this image and publish it to my channel" (Claude shows a preview first)

Install

You need uv and your own api_id / api_hash from my.telegram.org/apps

1. Log in once (asks for api_id, api_hash, phone, code and 2FA password right in your terminal):

uvx telegram-channels-mcp login

Login code doesn't arrive? Run uvx telegram-channels-mcp login --qr and scan the QR code in Telegram → Settings → Devices → Link Desktop Device

Latest code from GitHub instead of PyPI: replace uvx telegram-channels-mcp with uvx --from git+https://github.com/Kochurin/telegram-channels-mcp telegram-channels-mcp

Keys go to ~/.telegram-channels-mcp/.env, the session to ~/.telegram-channels-mcp/session.session. Nothing is sent anywhere except Telegram

2. Connect to Claude Code:

claude mcp add telegram -- uvx telegram-channels-mcp

Check with /mcp inside Claude Code

Or connect to Claude Desktop. Open Settings → Developer → Edit Config and add:

{
  "mcpServers": {
    "telegram": {
      "command": "uvx",
      "args": ["telegram-channels-mcp"]
    }
  }
}

Restart Claude Desktop. If it can't find uvx, put the full path, for example C:\Users\you\.local\bin\uvx.exe (write it with double backslashes inside JSON) or /Users/you/.local/bin/uvx

Want a read-only setup? Add "env": {"TELEGRAM_READ_ONLY": "1"} and the write tools disappear

Tools

ToolWhat it does
list_chatsYour channels, groups and chats. admin_only leaves only the ones you run
read_messagesLatest posts or messages of any channel or chat, with views, reactions, comment count and links
search_messagesTelegram's own full-text search inside one channel or chat
channel_statsSubscribers, average and median views, reach %, reactions, posts per day, best post
top_postsBest posts for the last N days by views, reactions, forwards or comments
get_commentsComments under a channel post
publish_postPost text or text with an image to your channel. Preview first, sends only with the confirm token
reply_commentComment under your post or reply to a specific comment. Preview first, sends only with the confirm token

Chats can be passed as @username, a t.me link, a t.me/c/... link or a numeric id from list_chats

Safety

  • Write tools never send on the first call. They return a preview and a one-time confirm_token, Claude shows the preview to you, and only after your yes repeats the call with the token. The token is tied to the exact text, channel and image, so the post can't change between your yes and the send. It dies when the server restarts
  • Both write tools carry the destructive hint, so Claude Code and Claude Desktop ask your permission before each call unless you allowed it for good
  • Only pictures (.jpg, .png, .webp, .gif) can be attached. A prompt injection in someone's post can't make Claude upload a private file to your channel
  • Claude is told that text from Telegram is data, not instructions
  • Posting and replying work only in channels where you are the owner or an admin with posting rights
  • TELEGRAM_READ_ONLY=1 removes the write tools. TELEGRAM_WRITE_ALLOWLIST=mychannel limits writing to the channels you list
  • There is no tool for private messages, deleting or editing. Claude can read your chats but can't write to people
  • The session file is a full key to your account. Don't commit it, don't share it, and if it leaks, end that session in Telegram → Settings → Devices

Settings

All optional except the API keys. Put them in ~/.telegram-channels-mcp/.env or into env of the MCP config. See .env.example

VariableMeaning
TELEGRAM_API_ID, TELEGRAM_API_HASHYour app keys from my.telegram.org
TELEGRAM_SESSION_PATHSession file location, default ~/.telegram-channels-mcp/session
TELEGRAM_SESSION_STRINGSession as a string (login --string), handy for servers and containers
TELEGRAM_READ_ONLY1 hides publish_post and reply_comment
TELEGRAM_WRITE_ALLOWLISTComma-separated usernames or ids where writing is allowed
TELEGRAM_MCP_HOMEConfig folder, default ~/.telegram-channels-mcp

Check the session any time:

uvx telegram-channels-mcp whoami

Troubleshooting

  • database is locked: two copies of the server use one session file, for example Claude Code and Claude Desktop at the same time. Give the second one its own session: run login with another TELEGRAM_SESSION_PATH and put that path into its env
  • Telegram session is not authorized: run login again. The session also ends if you terminate it in Telegram → Settings → Devices
  • Long pauses: Telegram limits request rates (FloodWait). Telethon waits out short limits by itself. If it happens often, ask for fewer posts at once

Run from source

git clone https://github.com/Kochurin/telegram-channels-mcp
cd telegram-channels-mcp
uv run telegram-channels-mcp login
npx @modelcontextprotocol/inspector uv run telegram-channels-mcp
uv run pytest

По-русски

MCP-сервер, через который Claude работает с вашим Telegram: читает каналы и чаты, ищет по каналу, считает статистику ваших каналов (подписчики, просмотры, охват, лучший пост за неделю), публикует пост с картинкой и отвечает в комментариях

Работает через ваш аккаунт, сессия хранится только у вас на компьютере. Публикация и ответы сначала показывают превью и уходят только после вашего «да». Писать в личку, удалять и редактировать сервер не умеет

Установка: получите api_id и api_hash на my.telegram.org/apps, выполните команду login из раздела Install и введите номер и код в своём терминале. Потом одна команда claude mcp add для Claude Code или блок JSON для Claude Desktop

Если Telegram в России тормозит или не грузит медиа, помогут бесплатные MTProto-прокси. Для остального интернета, в том числе на мобильном с белыми списками, есть @SkyrimVPN_bot, первые 3 дня бесплатно · сайт

Other projects

MIT License

Frequently asked questions

What is Telegram channels MCP Server?

Read, search and analyze Telegram channels from your own account, post with preview

How do I install Telegram channels MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Telegram channels MCP Server runs locally from the PyPI package telegram-channels-mcp with the command uvx telegram-channels-mcp.

Is Telegram channels MCP Server free and open source?

Yes. Telegram channels MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does Telegram channels MCP Server support remote (HTTP) connections?

No remote endpoint is listed for Telegram channels MCP Server. It runs locally on your machine over stdio, started by your MCP client.

What tools does Telegram channels MCP Server provide?

Telegram channels MCP Server provides 8 tools, including channel_stats, get_comments, list_chats, and publish_post. See the full tool list for descriptions and parameters.

How is Telegram channels MCP Server's trust score calculated?

Telegram channels MCP Server scores 68 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server