telegram-slack-mcp
Connects to your Slack workspaces using user tokens to list and read channels and DMs, search messages, read threads, view unread summaries, and optionally send messages as you.
Connects to your personal Telegram account to read chats, DMs, groups, and channels, search messages, view unread summaries, and optionally send messages as you.
Click on "Deploy 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-slack-mcpwhat's unread on my Telegram from actual people?"
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-slack-mcp
Give Claude your actual chats.
Two MCP servers that connect Claude to your personal Telegram and Slack accounts — your real DMs, groups, and channels, not a bot inbox.
claude mcp add telegram -- npx -y telegram-slack-mcp telegram
claude mcp add slack -- npx -y telegram-slack-mcp slackThen just talk:
"what's unread on telegram from actual people?" "read my last 30 messages with Priya and draft a reply" "search all my slack workspaces for the deploy postmortem" "what's in the screenshot Priya sent me?"
Why this exists
Most Telegram integrations use the Bot API, which only sees messages sent to a bot
you created. It cannot read your existing conversations. telegram-slack-mcp uses MTProto,
the same protocol the official app uses, authenticating as you — so Claude sees the
chats you actually have.
For Slack, the usual connector is scoped to one workspace. telegram-slack-mcp takes one user
token per workspace and treats them as a single surface, so "search everywhere" means
everywhere.
Related MCP server: google-chat-mcp
Install
Pick whichever runtime you already have. Both ship the same tools.
Node
claude mcp add telegram -- npx -y telegram-slack-mcp telegram
claude mcp add slack -- npx -y telegram-slack-mcp slackPython
claude mcp add telegram -- uvx telegram-slack-mcp telegram
claude mcp add slack -- uvx telegram-slack-mcp slackClaude Code plugin
/plugin marketplace add nileshpatil6/telegram-slack-mcp
/plugin install telegram@telegram-slack-mcp
/plugin install slack@telegram-slack-mcp{
"mcpServers": {
"telegram": {
"command": "npx",
"args": ["-y", "telegram-slack-mcp", "telegram"],
"env": { "TELEGRAM_API_ID": "1234567", "TELEGRAM_API_HASH": "your_hash" }
},
"slack": {
"command": "npx",
"args": ["-y", "telegram-slack-mcp", "slack"],
"env": { "SLACK_USER_TOKENS": "xoxp-one,xoxp-two" }
}
}
}Setup
Telegram — 2 minutes
Go to https://my.telegram.org → API development tools → create an app.
Copy the
api_idandapi_hash, and set them:claude mcp add telegram -e TELEGRAM_API_ID=1234567 -e TELEGRAM_API_HASH=your_hash -- npx -y telegram-slack-mcp telegramLink your account. Either ask Claude — "log into telegram" — or do it yourself in a terminal, which needs no MCP client at all:
TELEGRAM_API_ID=1234567 TELEGRAM_API_HASH=your_hash npx -y telegram-slack-mcp login# PowerShell $env:TELEGRAM_API_ID="1234567"; $env:TELEGRAM_API_HASH="your_hash" npx -y telegram-slack-mcp loginEither way you scan a QR and the session is saved to
~/.chat-mcp.Through Claude:
It calls
login, which returns a link to a page showing a QR code (and the code as text, if your client renders it). Scan it from Telegram on your phone — Settings → Devices → Link Desktop Device — then it callslogin_statusto confirm. No phone number, no SMS code, no 2FA password typed anywhere. On the same machine you can click "open in Telegram Desktop" instead of scanning.The session is saved to
~/.chat-mcpand persists; you do this once.
login_start(phone) sends you a code, login_complete(code, password?) finishes.
Note that with this path your phone number and login code pass through the conversation
as tool arguments, so they land in the model's context. The QR flow keeps them out of it.
Slack — 5 minutes
Go to https://api.slack.com/apps → Create New App → From a manifest.
Paste
slack-app-manifest.yaml— it prefills every scope.Install to Workspace, then copy the User OAuth Token (
xoxp-…, notxoxb-).Repeat step 3 for each workspace you want. Same app, one token each.
Ask Claude: "connect my slack" — the
logintool prompts for the tokens, verifies each one against Slack, and saves them to~/.chat-mcp. Nothing to put in your config.Prefer environment variables? That still works:
claude mcp add slack -e SLACK_USER_TOKENS=xoxp-aaa,xoxp-bbb -- npx -y telegram-slack-mcp slack
Slack has no local OAuth flow, which is why you create the app yourself: Slack's OAuth requires a client secret and an HTTPS redirect URL, so a package distributed over npm cannot complete it without either shipping a secret publicly or running a callback server. This project has no server, so it asks for the token instead.
Tools
Telegram
tool | what it does |
| scan a QR to link your account — no phone number or code |
| check whether the QR has been scanned yet |
| fallback: send yourself a login code |
| finish login, save the session |
| which account is connected |
| recent chats; |
| messages of one chat — |
| full-text search, one chat or all |
| catch-up view; |
| view a photo or file — returns the actual image, not just its type |
| reply as you — off unless |
Slack
tool | what it does |
| prompts for your |
| every connected workspace and who you are in each |
| channels across workspaces |
| 1:1 and group DMs |
| one channel or DM |
| replies inside a thread |
| supports |
| what's unread everywhere |
| view a file shared in Slack — returns the actual image |
| post as you — off unless |
Every Slack tool takes an optional workspace (any substring of the name). Leave it
blank to act across all of them; it's only required when a channel name exists in more
than one, and the error tells you which.
Configuration
variable | default | meaning |
| — | from my.telegram.org |
| — | from my.telegram.org |
|
|
|
| — | one |
|
|
|
|
| where the Telegram session is stored |
Sending is off by default in both servers. Reading is the safe default; you opt into writing deliberately.
Privacy
Nothing is sent to any server belonging to this project. There is no such server.
telegram-slack-mcp runs entirely on your machine. The only network traffic it makes is directly
to Telegram's and Slack's own APIs, using your own credentials. There is no telemetry,
no analytics, no crash reporting, no license check, no "phone home" — grep the source,
there is no endpoint to find.
The data path is exactly this:
your machine <--> Telegram / Slack APIs (your credentials, your account)
your machine <--> Claude (only what you ask Claude to read)Your credentials never reach Claude. Your session file and xoxp- tokens stay in
~/.chat-mcp and in your environment; the servers use them locally to make API calls
and pass back only the messages themselves.
What does reach Claude is the chat content you ask about — because that is the point of the tool. If you ask Claude to read a conversation, that conversation goes into your Claude conversation and is handled under Anthropic's privacy policy, exactly like text you paste in yourself. Nothing else is read, and nothing is read in the background: the servers only act when Claude calls a tool.
The author of this project cannot see any of it.
Security
Read this part.
These act as you, not as a bot. Anything sent shows as sent by your account, and people in those chats cannot tell the difference.
The stored session is a full credential.
~/.chat-mcp/telegram.sessionand yourxoxp-tokens are equivalent to being logged in as you. Anyone who copies them has your account. They never leave your machine, and nothing here phones home.Everything Claude reads enters the model's context. Don't point this at accounts holding data you would not send to a model.
Telegram calls this a userbot. Automating a personal account is restricted by Telegram's ToS. Light personal read-and-reply use is common and low risk; bulk automation gets accounts banned. Your call, your account.
Revoke any time: Telegram → Settings → Devices, or delete the token in Slack's app settings. Deleting
~/.chat-mcpdrops the local session.
Troubleshooting
"Telegram not logged in yet" — run the login flow: ask Claude to log in with your
phone number. It persists after that; if it keeps reappearing, check that
CHAT_MCP_DATA_DIR is writable.
"Missing Telegram credentials" — TELEGRAM_API_ID / TELEGRAM_API_HASH aren't
reaching the server. With claude mcp add, pass them with -e.
Slack returns nothing at all — you're almost certainly authorized against an empty
or wrong workspace. Run whoami to see which workspaces are actually connected.
"#general" exists in several workspaces — pass workspace to disambiguate; the
error lists your options.
Slack search returns not_allowed_token_type — the token is a bot token (xoxb-).
You need the User OAuth token (xoxp-).
Development
git clone https://github.com/nileshpatil6/telegram-slack-mcp
cd telegram-slack-mcp
npm install && npm run build
node dist/cli.js telegram # run the server on stdio
cd python && python -m build # build the Python distributionLicense
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Connect any mailbox to Claude, ChatGPT & AI: read, send, reply, schedule & search emails.
- platform7nOAuthtech.p7n
Connect Claude to your Platform7n workspaces — chat, links, and tasks. One-click OAuth.
Drive your real WhatsApp inbox from Claude — send, reply, label, assign, and triage via TimelinesAI.
Multiple Google accounts (Gmail, Calendar, Drive, Contacts, Tasks) in one Claude connector.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables Claude to interact with your Telegram account, including reading messages, searching conversations, and sending messages.-
- AlicenseNot gradedqualityFmaintenanceConnects Claude to Google Chat for searching messages, spaces, and DMs, automatically resolving user IDs to real display names.MIT
- FlicenseNot gradedqualityDmaintenanceEnables Claude to interact with Telegram, including listing chats, reading messages, sending messages, searching, and managing contacts.1-
- AlicenseNot gradedqualityCmaintenanceConnect Claude to your personal Telegram account via MTProto to read messages, search chats, send replies, forward files, and more using your real account.3 npm3MIT