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 分