ChatRail MCP server

MCP serverCommunication

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

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use ChatRail MCP server

Install ChatRail MCP server

The server’s own address, for the clients that take one directly. Or connect ahel onceand every client you use reads it from one address, with the account kept on ahel rather than in each client’s config.

  • Claude Code

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

    Run it once in your project, then open /mcp to approve any sign-in the server asks for.

  • Claude Desktop

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

    Add a custom connector in Settings, paste this address, and approve the sign-in.

  • Cursor

    cursor://anysphere.cursor-deeplink/mcp/install?name=chatrail-mcp-server&config=eyJ1cmwiOiJodHRwczovL3d3dy5jaGF0cmFpbC5kZXYvdjEvbWNwIn0=

    Open the link and Cursor adds the server at that address.

  • ChatGPT

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

    In Settings, enable Developer mode, create an MCP app, and paste this address. Your plan and workspace must allow custom apps.

  • Codex

    codex mcp add chatrail-mcp-server --url 'https://www.chatrail.dev/v1/mcp'

    Run it once, then sign in with codex mcp login chatrail-mcp-server if the server asks for an account.

From the project's README

As published by chatrail/chatrail_mcp in README.md.

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

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", "github:chatrail/chatrail_mcp"],
      "env": { "CHATRAIL_API_KEY": "cr_live_..." }
    }
  }
}

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.

Links

License

MIT

Advanced
Delivery
chatrail MCP server → your ahel gateway (mcp.ahel.ai) → every connected AI client.
Catalog kind
mcp-server
Gateway key
dev-chatrail-chatrail
Source
github.com/chatrail/chatrail_mcp
Hosted endpoint
https://www.chatrail.dev/v1/mcp