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.
Install Telegram MCP Server
Built from the published package, never by AI.
claude mcp add telegram-mcp-server -- npx -y telegram-mcp-serverRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"telegram-mcp-server": {
"args": [
"-y",
"telegram-mcp-server"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"telegram-mcp-server": {
"args": [
"-y",
"telegram-mcp-server"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"telegram-mcp-server": {
"args": [
"-y",
"telegram-mcp-server"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add telegram-mcp-server -- npx -y telegram-mcp-server{
"mcpServers": {
"telegram-mcp-server": {
"args": [
"-y",
"telegram-mcp-server"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
Step-by-step: install Telegram MCP Server in Antigravity CLI
gemini mcp add telegram-mcp-server npx -y telegram-mcp-serverGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
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
ANo 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 →Jitsu MCP server lets AI assistants configure and operate Jitsu data pipelines. It covers destinations, streams, connections and functions, plus Live Events and connector syncs. It is aimed at teams that run event data pipelines.
Vexa sends a bot into Google Meet, Microsoft Teams, Zoom and Jitsi calls to capture speaker-labelled transcripts live or after the call. It suits teams that want meeting transcripts they can self-host.
Gives Claude and other MCP-compatible AI agents access to LinkedIn through your own browser session. It reads profiles, researches companies, finds jobs, and manages messages and connection requests.
Runs a NetSapiens phone system from Claude, ChatGPT, or any MCP client. Each person signs in as themselves, and their assistant gets role-aware tools for calls, voicemail, queues, and provisioning.
Resend MCP Server connects AI assistants to the Resend email platform. It lets them send and receive emails and manage contacts, broadcasts, templates, and domains. It suits developers and teams who use MCP clients such as Claude or Cursor.
The source does not describe labelhead-artist-momentum. It is a README for Paperclip, an open-source orchestration app for teams of AI agents.
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.
