Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

Telegram MCP Server

MCP server by kfastov Verified · npm:telegram-mcp-server

tgcli is a Telegram command line client for a personal account, using MTProto rather than the bot API. It includes background sync and an optional MCP server.

  • Score 75
  • 46 stars
  • 23 a week
  • MIT
  • Updated

Install Telegram MCP Server

Built from the published package, never by AI.

claude mcp add telegram-mcp-server -- npx -y telegram-mcp-server

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Telegram MCP Server in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the telegram-mcp-server block.

About

tgcli is a Telegram command line client for a personal account. It uses MTProto rather than the Telegram bot API. It can authenticate, run archive backfill and realtime sync, list and search messages and channels, send text or files, download media, and manage topics, contacts and groups. A background server runs sync and serves commands, and a doctor command runs diagnostics.

The MCP server is optional. You enable it with a config setting. By default it binds to http://127.0.0.1:8080/mcp, so a client can connect there after you run tgcli server. The source does not list the MCP tools it exposes. It is aimed at people who want to work with their own Telegram account from the terminal or from an AI assistant. Users need their own api_id and api_hash from my.telegram.org.

Written from the project's README and checked against it.

What you need

  • A Telegram account with a phone number
  • Telegram API credentials (api_id and api_hash)
  • npm or Homebrew to install
  • Node.js 22 to run from a clone

Try asking

  • List the latest 20 messages from a Telegram channel I follow
  • Search my archived Telegram channel for messages about a course
  • Send a hello message to a Telegram contact of mine

Good to know

  • Works with a personal account over MTProto, not the bot API
  • MCP server binds to localhost by default
  • After an upgrade, a server you started yourself keeps old code until restarted

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

What you can do with it

  • Search archived Telegram channel messages
  • Send messages and files from the terminal
  • Sync a personal Telegram account locally

Alternatives to Telegram MCP Server

All alternatives →

Compare with Jitsu, Vexa or Linkedin MCP server

Telegram MCP Server: common questions

Does tgcli use the Telegram bot API?

No. The source says it works with a personal Telegram account over MTProto, not the bot API.

Where does tgcli store its data?

The store lives in the OS app-data directory and contains config.json, sessions and messages.db. Set TGCLI_STORE to override the location.

How do I connect an AI assistant to tgcli?

Enable mcp.enabled in the config, run tgcli server, and point your client at the configured address. The default is http://127.0.0.1:8080/mcp.

How do I install Telegram MCP Server?

In Claude Code run claude mcp add telegram-mcp-server -- npx -y telegram-mcp-server. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is Telegram MCP Server the official server?

Telegram MCP Server is published by npm:telegram-mcp-server from its verified domain in the official MCP Registry.

Is Telegram MCP Server free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is Telegram MCP Server safe to use?

It scores 75 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to Telegram MCP Server?

Similar MCP servers: Jitsu, Vexa, Linkedin MCP server, Netsapiens MCP.

Does Telegram MCP Server work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

Telegram MCP Server Install

Add to stack

Loading.