telegram-user-mcp
Provides read-only access to your Telegram account as a real user, enabling message reading, searching, listing chats and folders, inspecting group info, and downloading media.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@telegram-user-mcpsearch for 'meeting notes' across all chats"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
telegram-user-mcp
An MCP server that connects to Telegram as your real user account (MTProto via GramJS) and exposes read-only tools — read & search messages, list your chats/folders, inspect group info, and download media — to any MCP client (Claude Desktop, Cursor, etc.).
Because it logs in as you, it can see everything your account can: private channels and groups you're a member of, DMs, and their media. A bot cannot do this — that's the whole point of this server.
⚠️ Security: logging in creates a session string in
~/.telegram-mcp-session. That string grants full access to your Telegram account — treat it like a password. Never share it, never commit it, never paste it into a hosted service. This server keeps it on your machine and only ever reads.
Quick start
You need Node.js ≥ 18.
1. Get Telegram API credentials
Go to https://my.telegram.org → API development tools → create an app, and copy
your api_id and api_hash. (These identify the app, not your account.)
2. Run setup (one time)
npx telegram-user-mcp setupIt asks for your api_id, api_hash, and phone number, then logs you in (you'll get
a login code in the Telegram app; enter it, plus your 2FA password if you have one).
This writes:
~/.telegram-mcp-config.json—{ apiId, apiHash, phoneNumber }~/.telegram-mcp-session— your login session (keep secret)
3. Register it in your MCP client
Claude Desktop (claude_desktop_config.json) or Cursor (~/.cursor/mcp.json):
{
"mcpServers": {
"telegram": {
"command": "npx",
"args": ["-y", "telegram-user-mcp"]
}
}
}Restart the client. The Telegram tools will appear.
Related MCP server: telegram-archive-mcp
Tools (all read-only)
Reading & search
Tool | Args | Returns |
|
| recent messages (with id + media tag) |
|
| keyword search within a chat |
|
| only messages newer than |
|
| one message + metadata (views/forwards/reactions/replies/media flag) |
|
| search across all chats you're in |
Discovery & navigation
Tool | Args | Returns |
|
| group/channel metadata (title, members, about) |
|
| all chats/channels you're in, with unread counts |
| — | chat folders (dialog filters) |
|
| pinned message(s) |
Media
Tool | Args | Returns |
|
| media type/mime/size/duration/filename without downloading |
|
| downloads just the small preview image (a few KB) instead of the full video/file |
|
| downloads video/photo/document/voice to disk; returns the saved path |
groupUrl accepts a https://t.me/... link, an @username, or a numeric id (as
printed by list_dialogs). Media downloads land in ~/.telegram-mcp-downloads/.
download_media refuses files over maxDownloadMB (default 200) unless maxMB
overrides it (maxMB: 0 = no limit), and reports a clear error for channels that
restrict saving (no-forward). For heavy videos you only want to preview, use
get_thumbnail — a 1 GB video has an ~18 KB thumbnail.
Configuration
~/.telegram-mcp-config.json:
{
"apiId": 123456,
"apiHash": "your_api_hash",
"phoneNumber": "+9725...",
"downloadDir": "~/.telegram-mcp-downloads",
"maxDownloadMB": 200
}downloadDir and maxDownloadMB are optional.
Run from source
git clone https://github.com/KobiHaz/telegram-user-mcp.git
cd telegram-user-mcp
npm install
npm run setup
npm startLicense
MIT © Kobi Hazout
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityCmaintenanceAn MCP server that enables interaction with Telegram to send, read, and search messages across chats and dialogs. It supports waiting for incoming messages and retrieving conversation history through natural language commands.Last updated354MIT
- AlicenseBqualityAmaintenanceMCP server that exposes any Telegram-Archive instance to LLMs, enabling message search, chat browsing, and access to archived Telegram history.Last updated7504GPL 3.0
- Flicense-qualityCmaintenanceAn MCP server that connects to a Telegram group chat, persists messages to a local SQLite database, and exposes tools to search, retrieve, and send messages via SSE.Last updated
- FlicenseAqualityBmaintenanceRead-only MCP server for self-hosted Telegram access via Telethon. Enables reading messages, chats, and media but disallows any write operations.Last updated10
Related MCP Connectors
Telegram bridge for your MCP-compatible agent. Bidirectional, no LLM in our stack.
Search your AI chat history (ChatGPT, Claude, Codex) from any MCP client. Remote, private, read-only
An MCP server that gives your AI access to the source code and docs of all public github repos
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/22syn/telegram-user-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server