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 分