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.
Latest Blog Posts
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/KobiHaz/telegram-user-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server