Rocketchat Mcp

io.github.millerchou由 GitHub 账号 millerchou 发布v0.1.0更新于 Oct 24, 2026

MCP server for Rocket.Chat — messages, DMs, search, files, and channels over stdio

已验证STDIO仅桌面文件与存储沟通与协作

概览

AI 生成的概览

一个本地 MCP 服务器,让助手在 Rocket.Chat 工作区中读取、发送、搜索和管理消息、文件与频道。

可以做什么
向频道发送消息、向用户发送私信,并在权限允许时删除自己的消息。分页读取频道、群组和私信历史,按关键词搜索消息,列出有未读消息的房间。向频道或用户上传文件,并把消息附件(含引用附件)下载到本地文件。列出房间和用户、查看用户资料、创建频道。
适用场景
当你希望助手在 Rocket.Chat 工作区内工作时使用:起草并发送消息或私信、查看未读房间、搜索历史对话,或导入导出附件。适合已使用 Rocket.Chat 的团队,而非其他聊天平台。
运行要求
以 Python 包形式通过 uvx 在本地运行。需要工作区地址(ROCKETCHAT_SERVER_URL)、用户 ID(ROCKETCHAT_USER_ID)和个人访问令牌(ROCKETCHAT_AUTH_TOKEN);也支持以命令行参数提供用户名和密码。需要能访问工作区的网络,自签名证书需额外参数。
安装前请注意
需要 Rocket.Chat 个人访问令牌和用户 ID,可访问该账号的聊天内容。助手能发送消息、创建频道和删除消息,写入会触达真实用户。列出全部房间和用户需要管理员或查看权限。下载会写入本地磁盘;错误信息可能暴露服务器细节,但已配置的密钥会被排除。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Rocketchat Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

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

ToolDescription
send_message_in_channelSend a message to a channel
send_direct_messageSend a direct message to a user
delete_messageDelete a message (your own, unless the role has force-delete)
get_channel_messagesRead history of a channel/group/DM; supports offset paging and accepts a room ID or name
search_messagesKeyword search within a room (chat.search)
get_unreadList rooms with unread messages and their latest content
send_fileUpload a file to a channel or @user
download_attachmentDownload a message's attachments to local files
list_all_roomsList channels, groups and DMs ∗
list_usersList users ∗
get_user_infoGet a user's profile
create_channelCreate a channel

Quoted messages and attachments

Message listings include quoted text and uploaded files inside quotes. A quote is a snapshot shared in the containing message; the original room may no longer be accessible. Use the containing message ID when downloading a quoted attachment. You do not need to read the original room first.

download_attachment(message_id, attachment_id) downloads the selected file ID shown in the listing. Omitting attachment_id retains the existing behavior of downloading all supported attachments, now including quoted files. The server still enforces file access permissions. File references must originate from this Rocket.Chat server's upload path; redirects to file storage do not receive Rocket.Chat authentication headers. Downloads use unique temporary filenames and do not overwrite prior downloads.

HTTP errors include the server's error type and message when available, so a missing message, an access failure, and a network failure are not reduced to the same diagnosis. Configured authentication secrets are excluded from these error summaries.

∗ 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:

VariableDescription
ROCKETCHAT_SERVER_URLWorkspace URL, e.g. https://chat.example.com
ROCKETCHAT_USER_IDYour Rocket.Chat user ID
ROCKETCHAT_AUTH_TOKENPersonal 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

bash
uvx rocketchat-mcp --server-url https://chat.example.com

To run the latest unreleased code straight from GitHub instead:

bash
uvx --from git+https://github.com/millerchou/rocketchat-mcp rocketchat-mcp --server-url https://chat.example.com

Client configuration

json
{  "mcpServers": {    "rocketchat": {      "command": "uvx",      "args": ["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

bash
git clone https://github.com/millerchou/rocketchat-mcpcd rocketchat-mcpuv run rocketchat.py --server-url https://chat.example.com \  --auth-token "$ROCKETCHAT_AUTH_TOKEN" --user-id "$ROCKETCHAT_USER_ID"

Reliability

Run the offline attachment and API error tests with:

bash
uv run python -m unittest discover -s tests -v

The tests use synthetic messages and an HTTP mock transport; no chat account is needed.

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.

来源:README.md,提交 cddff60

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.0最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分