Telegram MCP server
Telegram MCP server: read, send, and search messages and manage chats via your account.
5 stars34 downloads/wk
Reviews
Write oneNobody has reviewed Telegram yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Telegram tools
No tool declarations could be read from the package source. They show once the server is installed.
Public scan report
scanner v0.1.9 · 2026-09-26 · same rubric, same numbers if you re-run it
- Code scan10 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitylocal package, no credentials required12/15
- Maintenancelast push 101 days ago8/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
What the publisher says
From the Telegram repository's README, as published. We do not edit it. Read it on GitHub
telegram-mcp
<!-- mcp-name: io.github.jgalea/telegram-mcp -->
Give your AI tools direct access to Telegram. Read chats, send messages, search history, manage groups, download media — all via the Model Context Protocol.
telegram-mcp is an MCP server that connects your Telegram account to Claude Code, Cursor, Windsurf, or any AI tool that supports MCP. Instead of switching to Telegram, you ask the AI to check your messages, reply to someone, or find that link from last week — and it does.
What makes this different:
- Your real account. Uses MTProto (Telethon), not the Bot API. You see everything you'd see in the Telegram app — private chats, groups, channels, media.
- 40 tools. Chats, messages, search, media, contacts, groups, channels, scheduling, reactions, admin tools, and more.
- Passive caching. Messages are cached in local SQLite as you use the server. No explicit sync step — the cache builds itself. Gives you searchable history that grows over time.
- Security first. Session files stored with restricted permissions. No credentials in config files. Rate limiting built in.
Quick Start
This is not a bot. There is no bot to add. No third party gives you a phone number. You log in as yourself, with the same phone number you already use for Telegram. If an AI tool tells you to "add a bot to give you a number", ignore it — and never share a Telegram login code with anyone, ever.
If you're asking Claude (or another AI agent) to install this for you: the agent can wire up the MCP server config and clone the repo, but the agent cannot complete the login step. Login is interactive — Telegram sends a code to your phone, and you type it into a terminal prompt yourself. You must run telegram-mcp login in a real terminal once, then the agent can use the server.
Install from PyPI
uv tool install telegram-mcp-jgaleaOr with pip:
pip install telegram-mcp-jgaleaBoth provide the telegram-mcp command.
Install from source
git clone https://github.com/jgalea/telegram-mcp.git
cd telegram-mcp
uv syncAuthenticate
Run the login command once to create your Telegram session:
telegram-mcp loginYou'll need a Telegram API ID and hash first. To get them:
- Go to my.telegram.org and log in with your phone number
- Click API development tools
- If you already have an app, use those credentials. Telegram only allows one API app per account, and the same apiid/apihash work for any Telegram project.
- If not, fill in the form: App title (e.g. "telegram-mcp"), Short name (anything), Platform: "Other". Description can be left blank. Click Create application.
- Copy the App apiid (a number) and App apihash (a hex string)
The login command will prompt for these if not already configured, then ask for:
- Your phone number
- The verification code Telegram sends you
- Your 2FA password (if enabled)
The session is saved to ~/.telegram-mcp/session.session. You only need to do this once.
Connect to Claude Code
Add to your MCP config (~/.claude.json):
{
"mcpServers": {
"telegram": {
"command": "telegram-mcp",
"args": ["serve"]
}
}
}If installed from source:
{
"mcpServers": {
"telegram": {
"command": "uv",
"args": ["run", "--directory", "/path/to/telegram-mcp", "telegram-mcp", "serve"]
}
}
}Troubleshooting
Tools return errors or empty results
You almost certainly haven't logged in yet. Installing the MCP server and logging into Telegram are two separate steps — installation alone is not enough. Run telegram-mcp login in a real terminal and complete the phone + code + 2FA flow. After that, restart Claude Code (or your MCP client) so the proxy picks up the new session.
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Install directly
claude mcp add telegram-mcp -- uvx telegram-mcp-jgalea
Telegram: common questions
- Is Telegram MCP server safe?
- Mostly: it is graded B (82/100). Read the Telegram safety report
- How do I install Telegram?
- It runs on your machine. Copy the Claude Code, Claude Desktop or Cursor config from the install section.
- Does Telegram need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is Telegram maintained?
- The last commit was 102 days ago (2026-06-17). The latest release is v0.1.2.
- What can I use instead of Telegram?
- Servers from other publishers that do the same job: Chatroost — unofficial Telegram MCP server, Apple Messages MCP server and iMessage History MCP server. Compare all Telegram alternatives.
Alternatives to Telegram
Same job from other publishers: the closest match first, then the best rated.
- Chatroost — unofficial Telegram MCP serverUnofficial Telegram MCP server — read, search, reply and react in your own Telegram account.not reviewedEstablishedA
Apple MessagesSearch and read Apple Messages — chats and decoded text, sending off by defaultnot reviewedGrowingA- iMessage HistorySearch and read your Apple Messages history from any MCP client. Read-only, local.not reviewedGrowingA
TenjinSearch, read & publish paid essays. Pay-per-read in USDC on Base (x402); wallet-only, no account.not reviewedGrowingB- Apple MailRead, search, compose, and send emails via Apple Mail on macOS.not reviewedGrowingA