Ably MCP by usefulapi
v1.42.1MCP server for Ably — channel history, presence, occupancy, stats, publish, and app management.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
ably_get_channel_history Get channel message history
Retrieve historical messages published to a channel, newest-first by default. REST: GET /channels/{channel}/messages.
| Parameter | Type | Description |
|---|---|---|
channel * | string | Channel name, e.g. 'chat:room1'. |
direction | string | forwards (oldest-first) or backwards (newest-first, default). |
end | integer | Latest message time, ms since epoch (inclusive). |
limit | integer | Max messages (<=1000). Default 100. |
start | integer | Earliest message time, ms since epoch (inclusive). |
ably_get_presence Get channel presence set
List the members currently present on a channel (who is online now). REST: GET /channels/{channel}/presence.
| Parameter | Type | Description |
|---|---|---|
channel * | string | Channel name. |
clientId | string | Filter to a specific clientId. |
connectionId | string | Filter to a specific connectionId. |
limit | integer | Max members (<=1000). Default 100. |
ably_get_presence_history Get channel presence history
Retrieve historical presence events (enter/leave/update) for a channel. REST: GET /channels/{channel}/presence/history.
| Parameter | Type | Description |
|---|---|---|
channel * | string | Channel name. |
direction | string | forwards or backwards (default backwards). |
end | integer | Latest event time, ms since epoch (inclusive). |
limit | integer | Max events (<=1000). Default 100. |
start | integer | Earliest event time, ms since epoch (inclusive). |
ably_get_channel_details Get channel details / occupancy
Get status and occupancy metrics for a single channel (connections, publishers, subscribers, presence members). REST: GET /channels/{channel}.
| Parameter | Type | Description |
|---|---|---|
channel * | string | Channel name. |
ably_list_channels List active channels
Enumerate channels that are currently active in the app. Requires the API key to have the 'channel-metadata' capability. REST: GET /channels.
| Parameter | Type | Description |
|---|---|---|
by | string | Return channel ids only ('id', default) or full details ('value'). |
limit | integer | Max channels per page (<=1000). Default 100. |
prefix | string | Only return channels whose name starts with this prefix. |
ably_get_stats Get app statistics
Retrieve message/connection/channel usage statistics for the app tied to the API key, bucketed by time. REST: GET /stats.
| Parameter | Type | Description |
|---|---|---|
direction | string | forwards or backwards (default backwards). |
end | integer | End of range, ms since epoch (inclusive). |
limit | integer | Max buckets (<=1000). Default 100. |
start | integer | Start of range, ms since epoch (inclusive). |
unit | string | Bucket size: minute | hour | day | month. Default minute. |
ably_get_service_time Get Ably service time
Return the current Ably service time in ms since epoch. Useful for aligning start/end windows to the server clock. REST: GET /time.
ably_publish_message Publish a message to a channel
WRITE: publish a message to a channel. Every connected subscriber receives it in real time. This is a real, outward-facing side effect — confirm the channel and payload before calling. REST: POST /channels/{channel}/messages.
| Parameter | Type | Description |
|---|---|---|
channel * | string | Channel name to publish to, e.g. 'chat:room1'. |
data * | string | Message payload (string; send JSON as a stringified value). |
clientId | string | Optional clientId to attribute the message to. |
name | string | Optional event name for the message. |
ably_revoke_tokens Revoke client tokens
WRITE: revoke Ably tokens issued by this app's API key, matched by clientId or revocationKey. Clients holding those tokens must get a new token. Only keys with revocable tokens enabled can revoke. Call with confirm false to preview; ask the user before calling with confirm true. REST: POST /keys/{appId.keyId}/revokeTokens.
| Parameter | Type | Description |
|---|---|---|
allow_reauth_margin | boolean | True postpones revocation 30 s so clients can renew without dropping. Default false (near-immediate). |
client_ids | array | clientId values to revoke (sent as clientId:<value>). |
confirm | boolean | False (default) previews the targets without calling Ably. True sends the revocation. |
revocation_keys | array | revocationKey values from the JWT claim x-ably-revocation-key (sent as revocationKey:<value>). |
ably_whoami Get control token / account info
Return details about the configured control token: the account and user it belongs to and its capabilities. Good first call to confirm control-plane access. Control API: GET /me.
ably_list_apps List Ably apps
List all apps in the account (id, name, status, tls-only). Account id is resolved automatically from the control token when ABLY_ACCOUNT_ID is unset. Control API: GET /accounts/{account_id}/apps.
| Parameter | Type | Description |
|---|---|---|
account_id | string | Override the account id (defaults to the token's account). |
ably_list_keys List an app's API keys
List the API keys for an app, including their capabilities (but not the full secret). Control API: GET /apps/{app_id}/keys.
| Parameter | Type | Description |
|---|---|---|
app_id * | string | App id (from ably_list_apps). |
ably_list_namespaces List an app's channel namespaces
List the channel namespaces (channel-rule prefixes) configured for an app, e.g. persistence and push settings. Control API: GET /apps/{app_id}/namespaces.
| Parameter | Type | Description |
|---|---|---|
app_id * | string | App id (from ably_list_apps). |
ably_list_queues List an app's queues
List the Ably Queues (AMQP/STOMP message queues) provisioned for an app, with their state and messaging stats. Control API: GET /apps/{app_id}/queues.
| Parameter | Type | Description |
|---|---|---|
app_id * | string | App id (from ably_list_apps). |
ably_list_rules List an app's integration rules
List the integration rules (reactor rules: webhooks, AWS Lambda/SQS/Kinesis, Kafka, Pulsar, etc.) configured for an app. Control API: GET /apps/{app_id}/rules.
| Parameter | Type | Description |
|---|---|---|
app_id * | string | App id (from ably_list_apps). |
ably_get_account_stats Get account-level statistics
Retrieve aggregated usage statistics across the whole account, bucketed by time. Account id is resolved from the control token when ABLY_ACCOUNT_ID is unset. Control API: GET /accounts/{account_id}/stats.
| Parameter | Type | Description |
|---|---|---|
account_id | string | Override the account id (defaults to the token's account). |
end | integer | End of range, ms since epoch (inclusive). |
limit | integer | Max buckets (<=1000). Default 100. |
start | integer | Start of range, ms since epoch (inclusive). |
unit | string | Bucket size: minute | hour | day | month. Default minute. |