ChatRail

dev.chatrail由 chatrail.dev 發布官方發布者v0.1.0更新於 Nov 2, 2026

Inspect WhatsApp connections, groups, message delivery, schedules and webhooks in ChatRail.

已驗證Streamable HTTP可網頁執行開發者工具溝通與協作

概覽

AI 產生的概覽

ChatRail 的託管 MCP 伺服器讓助理檢視 ChatRail 工作區中的 WhatsApp 連線、群組、訊息投遞、排程訊息與 webhook。

可以做什麼
  • 列出並檢視 WhatsApp 連線的狀態、健康狀況與近期狀態歷程
  • 查詢已連線號碼可見的群組,包含名稱、描述、設定與成員數量
  • 檢視近期訊息、投遞時間軸,以及訊息失敗原因的結構化說明
  • 列出待傳送的排程訊息與近期 webhook 投遞及其結果
  • 重新排程或取消排程訊息、新增或移除表情回應、重送失敗或略過的 webhook 投遞,皆先預覽再執行
適用情境
適合已使用 ChatRail 工作區、想在編輯器內排查 WhatsApp 投遞問題、檢查連線健康狀況、檢視群組與排程訊息,或重新投遞 webhook 的情境。
執行需求
遠端 MCP 端點,需由工作區擁有者、管理員或開發人員透過 OAuth 授權;或使用本機 npm 套件 chatrail-mcp(npx 或 Docker),並以 CHATRAIL_API_KEY 提供工作區 API 金鑰(mcp:read,可選 mcp:write)。MCP 存取包含於 Core + AI 與 Team 方案。
安裝前請注意
此伺服器只管理工作區,無法傳送訊息。寫入類工具(重新排程、取消、回應、重送)會改變狀態,會先回傳預覽,需再次以 confirm: true 呼叫才生效,且需要具備 mcp:write 的 API 金鑰。API 金鑰是工作區憑證,請勿放入共用設定。所有呼叫僅限於單一工作區並記錄於稽核日誌。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 ChatRail,將其新增到工作區。
  2. 連接 所需的 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
  3. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/dev.chatrail%2Fchatrail/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。 客戶端會在首次連接時完成 OAuth 登入。

{
  "mcpServers": {
    "chatrail": {
      "type": "http",
      "url": "https://www.chatrail.dev/v1/mcp"
    }
  }
}

README

ChatRail MCP server

[npm version] [npm downloads]

Operate a ChatRail workspace from Claude, Cursor, VS Code and any other Model Context Protocol client. Check the health of your WhatsApp connections, look up groups, trace why a message failed, manage scheduled messages and replay webhook deliveries without leaving your editor.

ChatRail is a WhatsApp API for developers: send and receive WhatsApp messages over HTTP from a number you already have. See the MCP documentation for the full reference.

Privacy by design

  • Message bodies, recipient phone numbers and credentials are never returned by any tool.
  • Tools that change state return a preview first and apply only when called again with confirm: true.
  • Every call is scoped to one workspace and recorded in its audit log.

Two ways to connect

1. Hosted server with OAuth (recommended)

Point any client that supports remote MCP servers at:

https://www.chatrail.dev/v1/mcp

Your client opens a browser window where a workspace owner, admin or developer approves access. Nothing to install and no key to copy.

Claude Code

bash
claude mcp add --transport http chatrail https://www.chatrail.dev/v1/mcp

Cursor (~/.cursor/mcp.json)

json
{  "mcpServers": {    "chatrail": { "url": "https://www.chatrail.dev/v1/mcp" }  }}

VS Code (.vscode/mcp.json)

json
{  "servers": {    "chatrail": { "type": "http", "url": "https://www.chatrail.dev/v1/mcp" }  }}

2. Local stdio server with an API key

For clients that only run local servers, or when you would rather use an API key. This package runs on your machine and forwards requests to the hosted server.

  1. In the ChatRail dashboard, create a workspace API key with the mcp:read scope. Add mcp:write if the assistant may reschedule, cancel, react or replay.
  2. Add the server to your client.

Claude Desktop (claude_desktop_config.json)

json
{  "mcpServers": {    "chatrail": {      "command": "npx",      "args": ["-y", "chatrail-mcp"],      "env": { "CHATRAIL_API_KEY": "cr_live_..." }    }  }}

The package is published on npm as chatrail-mcp, so npx fetches it from the registry. If you need a version that is not published yet, run it straight from the repository instead:

json
"args": ["-y", "github:chatrail/chatrail_mcp"]

Docker

bash
docker build -t chatrail-mcp .docker run -i --rm -e CHATRAIL_API_KEY=cr_live_... chatrail-mcp
VariableRequiredDescription
CHATRAIL_API_KEYYes, to call toolsWorkspace API key with mcp:read (and optionally mcp:write).
CHATRAIL_MCP_URLNoOverride the endpoint. Defaults to https://www.chatrail.dev/v1/mcp.

Without a key the server still starts and lists its tools, so you can inspect it before signing up.

Tools

ToolScopeWhat it does
list_connectionsreadEvery WhatsApp connection in the workspace with its state and health.
get_connectionreadOne connection with its state, health and recent state history.
list_whatsapp_groupsreadGroups visible to a connected number, with ids and participant counts.
get_whatsapp_groupreadName, description, settings and member counts for one group.
list_messagesreadRecent messages with their delivery state.
get_messagereadOne message and its delivery timeline.
explain_message_failurereadA structured explanation of why a message failed.
list_scheduled_messagesreadMessages waiting to be sent, soonest first.
list_webhook_deliveriesreadRecent webhook deliveries and their outcomes.
reschedule_messagewriteChange when a scheduled message is sent. Previews first.
cancel_scheduled_messagewriteCancel a message that has not been sent. Previews first.
react_to_messagewriteSet or remove an emoji reaction on a message. Previews first.
replay_webhookwriteRequeue a dead or skipped webhook delivery. Previews first.

Plans

MCP access is included on the ChatRail Core + AI and Team plans. See pricing.

Development

bash
npm installnpm run buildCHATRAIL_API_KEY=cr_test_... node dist/index.js

tools.json is the tool catalog served when no API key is configured. It is exported from the hosted server and should be refreshed when the hosted tools change.

Agent skill

ChatRail publishes a skill file that tells an agent when to use ChatRail, what a person has to set up, how to send and receive, and the rules for sending. This MCP server operates a workspace and cannot send messages, so the skill points to the REST API for sending.

Give your agent this line:

Read https://www.chatrail.dev/SKILL.md and follow it to set up ChatRail.

Or install it with the skills CLI, which installs agent skills from a GitHub repository:

bash
npx skills add chatrail/chatrail_mcp

Or copy it into Claude Code by hand:

bash
mkdir -p ~/.claude/skills/chatrailcurl -fsSL https://www.chatrail.dev/SKILL.md -o ~/.claude/skills/chatrail/SKILL.md

The canonical file is https://www.chatrail.dev/SKILL.md. A copy lives in this repository at skills/chatrail/SKILL.md so tools that install skills from GitHub can find it.

Links

License

MIT

來源:README.md,提交 73210cd

工具

0
該伺服器需要登入,因此 SourceWeft 無法在沒有帳號的情況下讀取其工具,也未收錄。已連接帳號所能看到的內容可能因帳號及其權限而異。

版本歷史

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

評分

已滿足適用檢查項的 85%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分