# ChatRail [Health: Active]

**Category:** 💬 Communication  
**Repository:** https://github.com/chatrail/chatrail_mcp  
**GitHub Stars:** 0  
**npm Downloads (last month):** 60  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/chatrail

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

## Tools
Capabilities this server exposes over MCP:

- **list_connections** — Every WhatsApp connection in the workspace with its state and health.
- **get_connection** — One connection with its state, health and recent state history.
- **list_whatsapp_groups** — Groups visible to a connected number, with ids and participant counts.
- **get_whatsapp_group** — Name, description, settings and member counts for one group.
- **list_messages** — Recent messages with their delivery state.
- **get_message** — One message and its delivery timeline.
- **explain_message_failure** — A structured explanation of why a message failed.
- **list_scheduled_messages** — Messages waiting to be sent, soonest first.
- **list_webhook_deliveries** — Recent webhook deliveries and their outcomes.
- **reschedule_message** — Change when a scheduled message is sent. Previews first.
- **cancel_scheduled_message** — Cancel a message that has not been sent. Previews first.
- **react_to_message** — Set or remove an emoji reaction on a message. Previews first.
- **replay_webhook** — Requeue a dead or skipped webhook delivery. Previews first.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

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

**Requires environment variables:** `CHATRAIL_API_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What ChatRail MCP server does

ChatRail MCP server gives an MCP client read access to operational data in a ChatRail workspace. ChatRail is a WhatsApp API that sends and receives messages over HTTP using an existing number, while this MCP server focuses on workspace inspection and selected management actions.

Available information includes WhatsApp connection state and health, recent connection history, groups and participant counts, message delivery state, delivery timelines, scheduled messages, and webhook delivery outcomes. The server can also explain structured reasons for message failures.

Message bodies, recipient phone numbers, and credentials are not returned by tools. Each call is scoped to one workspace and recorded in its audit log. Sending messages is outside this MCP server; the accompanying agent skill directs agents to the REST API for that operation.

## How it works

There are two connection modes. The hosted server uses the streamable HTTP endpoint at `https://www.chatrail.dev/v1/mcp` and OAuth. A client opens a browser so a workspace owner, admin, or developer can approve access. This mode requires no local package installation or copied API key.

The local option runs the `chatrail-mcp` npm package over stdio. It forwards MCP requests to the hosted endpoint and authenticates with a workspace API key. Docker can run the same local server. When no key is configured, the process can still start and expose its tool catalog, but authenticated tool calls are unavailable.

State-changing operations use a confirmation step. Rescheduling or canceling a scheduled message, changing a reaction, or replaying a webhook first returns a preview; the operation is applied only when called again with `confirm: true`.

## Setup and configuration

For the hosted mode, configure an MCP client with the service URL. Claude Code, Cursor, and VS Code examples are provided by the project. For local stdio mode, create a ChatRail workspace API key with `mcp:read`; add `mcp:write` if the agent needs to reschedule, cancel, react, or replay.

The npm package can be launched with `npx -y chatrail-mcp`. Docker users can build the repository image and pass `CHATRAIL_API_KEY` at runtime. `CHATRAIL_MCP_URL` is optional and overrides the default hosted endpoint. The MCP features are included on ChatRail Core + AI and Team plans.

## Tools and capabilities

ChatRail MCP server provides these read tools:

- `list_connections` and `get_connection` for connection state, health, and recent state history.
- `list_whatsapp_groups` and `get_whatsapp_group` for group details and member counts.
- `list_messages`, `get_message`, and `explain_message_failure` for delivery records and failure analysis.
- `list_scheduled_messages` for pending messages in sending order.
- `list_webhook_deliveries` for recent webhook results.

Write tools include `reschedule_message`, `cancel_scheduled_message`, `react_to_message`, and `replay_webhook`. These actions require write scope and confirmation after the preview.

## Limitations and notes

The server does not send WhatsApp messages. Use the ChatRail REST API for sending. Write access is separate from read access and should be granted only when needed. The hosted and local modes both operate against a ChatRail workspace, rather than providing an independent WhatsApp connection layer. The project also publishes an agent skill describing setup and sending rules; it can be installed from the repository or referenced from ChatRail's canonical skill URL.

_Full upstream README: https://allmcps.com/mcp/chatrail/readme_

