ChatRail

السجل الرسمي أخرى

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

التثبيت

أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: ‏.cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).

Remote (streamable-http)
Claude Code
claude mcp add --transport http chatrail 'https://www.chatrail.dev/v1/mcp'
إعداد JSON (Claude Desktop وCursor وVS Code)
{
    "mcpServers": {
        "chatrail": {
            "type": "http",
            "url": "https://www.chatrail.dev/v1/mcp"
        }
    }
}

التوثيق

مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.

المحتويات
  1. ChatRail MCP server
  2. Privacy by design
  3. Two ways to connect
  4. Tools
  5. Plans
  6. Development
  7. Agent skill
  8. Links
  9. License

ChatRail MCP server

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

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

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

Cursor (~/.cursor/mcp.json)

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

VS Code (.vscode/mcp.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)

{
  "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:

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

Docker

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

npm install
npm run build
CHATRAIL_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:

npx skills add chatrail/chatrail_mcp

Or copy it into Claude Code by hand:

mkdir -p ~/.claude/skills/chatrail
curl -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.

License

MIT

الأسئلة الشائعة

ما هو ChatRail؟

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

كيف أثبّت ChatRail؟

يعمل كخادم بعيد. في Claude Code: claude mcp add --transport http chatrail 'https://www.chatrail.dev/v1/mcp'. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.

هل يحتاج ChatRail إلى مفتاح API؟

لا يذكر إدراجه في السجل أي مفتاح أو سر إلزامي. قد تتطلب بعض الميزات حسابًا لدى الخدمة التي يتصل بها.

هل ChatRail مفتوح المصدر؟

نعم. شيفرته متاحة على GitHub بترخيص MIT.

من يصون ChatRail؟

ينشره chatrail. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.

من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.