MCP server for Rocket.Chat — send and read messages, DMs, search, files, and channels over stdio
Project description
rocketchat-mcp
An MCP server for Rocket.Chat. It lets MCP clients (Claude Desktop, Cursor, Claude Code, etc.) send and read messages, send DMs, search history, upload/download files, and manage channels on a Rocket.Chat workspace over stdio.
Actively maintained fork of elieworkspace/rocketchat-mcp, adding Personal Access Token auth, more tools, and reliability/security improvements. See NOTICE for attribution.
Tools
| Tool | Description |
|---|---|
send_message_in_channel |
Send a message to a channel |
send_direct_message |
Send a direct message to a user |
delete_message |
Delete a message (your own, unless the role has force-delete) |
get_channel_messages |
Read history of a channel/group/DM; supports offset paging and accepts a room ID or name |
search_messages |
Keyword search within a room (chat.search) |
get_unread |
List rooms with unread messages and their latest content |
send_file |
Upload a file to a channel or @user |
download_attachment |
Download a message's attachments to local files |
list_all_rooms |
List channels, groups and DMs ∗ |
list_users |
List users ∗ |
get_user_info |
Get a user's profile |
create_channel |
Create a channel |
∗ list_all_rooms and list_users call workspace-wide endpoints
(channels.list / users.list) that require admin or the corresponding
view-* permission. Every other tool works for a normal chat user.
Authentication
A normal chat user is enough for the core tools. A Personal Access Token is recommended — it keeps the token out of process arguments:
| Variable | Description |
|---|---|
ROCKETCHAT_SERVER_URL |
Workspace URL, e.g. https://chat.example.com |
ROCKETCHAT_USER_ID |
Your Rocket.Chat user ID |
ROCKETCHAT_AUTH_TOKEN |
Personal Access Token |
ROCKETCHAT_WATCHDOG_INTERVAL |
(optional) orphan-watchdog interval in seconds, default 60 |
Username/password is also supported via --username / --password.
Use --no-verify-ssl for self-signed certificates.
Usage
Run with uvx (no clone)
uvx --from git+https://github.com/millerchou/rocketchat-mcp rocketchat-mcp \
--server-url https://chat.example.com
Once published to PyPI this becomes simply uvx rocketchat-mcp.
Client configuration
{
"mcpServers": {
"rocketchat": {
"command": "uvx",
"args": ["--from", "git+https://github.com/millerchou/rocketchat-mcp", "rocketchat-mcp"],
"env": {
"ROCKETCHAT_SERVER_URL": "https://chat.example.com",
"ROCKETCHAT_USER_ID": "your_user_id",
"ROCKETCHAT_AUTH_TOKEN": "your_personal_access_token"
}
}
}
}
Local development
git clone https://github.com/millerchou/rocketchat-mcp
cd rocketchat-mcp
uv run rocketchat.py --server-url https://chat.example.com \
--auth-token "$ROCKETCHAT_AUTH_TOKEN" --user-id "$ROCKETCHAT_USER_ID"
Reliability
Persistent HTTP connection pool, room-endpoint caching, log rotation (1 MB), and an orphan watchdog that self-exits when the MCP client process dies.
License
Modifications in this fork are released under the MIT License. This is a fork of upstream code originally published without a license; see NOTICE for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rocketchat_mcp-0.1.0.tar.gz.
File metadata
- Download URL: rocketchat_mcp-0.1.0.tar.gz
- Upload date:
- Size: 44.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ea6db23d53aa6686d6f948671b11deed3348a95e6b99717b6553ded56db0900
|
|
| MD5 |
6ae0d66a227d98e0a027fb18f881f935
|
|
| BLAKE2b-256 |
e97c20d9af797d48561e5f533c160f4a5f36fe85f6aa30dc53518c9921364a8c
|
Provenance
The following attestation bundles were made for rocketchat_mcp-0.1.0.tar.gz:
Publisher:
publish.yml on millerchou/rocketchat-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rocketchat_mcp-0.1.0.tar.gz -
Subject digest:
2ea6db23d53aa6686d6f948671b11deed3348a95e6b99717b6553ded56db0900 - Sigstore transparency entry: 1835737580
- Sigstore integration time:
-
Permalink:
millerchou/rocketchat-mcp@f73d8e9365bac77e04f90fd128cf7418767dcc66 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/millerchou
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f73d8e9365bac77e04f90fd128cf7418767dcc66 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file rocketchat_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: rocketchat_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 12.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b21f998f59821993e70a7637a8d83f285255578d4b90a746ced1970c11693bec
|
|
| MD5 |
4f395e8b78f26904ca61d949d279be1e
|
|
| BLAKE2b-256 |
9cdee2d26cdf3dd73f973a73817c6a4e2e4d8716560fe295281bd4575cb6c18c
|
Provenance
The following attestation bundles were made for rocketchat_mcp-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on millerchou/rocketchat-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rocketchat_mcp-0.1.0-py3-none-any.whl -
Subject digest:
b21f998f59821993e70a7637a8d83f285255578d4b90a746ced1970c11693bec - Sigstore transparency entry: 1835737751
- Sigstore integration time:
-
Permalink:
millerchou/rocketchat-mcp@f73d8e9365bac77e04f90fd128cf7418767dcc66 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/millerchou
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f73d8e9365bac77e04f90fd128cf7418767dcc66 -
Trigger Event:
workflow_dispatch
-
Statement type: