# ably MCP server

MCP server for Ably — channel history, presence, occupancy, stats, publish, and app management.

## Links
- Registry page: https://www.getdrio.com/mcp/io-usefulapi-ably
- Repository: https://github.com/m190/usefulapi-mcp

## Install
- Endpoint: https://ably.usefulapi.io/mcp
- Auth: Not captured

## Setup notes
- Remote endpoint: https://ably.usefulapi.io/mcp

## Tools
- ably_get_channel_history (Get channel message history) - Retrieve historical messages published to a channel, newest-first by default. REST: GET /channels/{channel}/messages. Endpoint: https://ably.usefulapi.io/mcp
- ably_get_presence (Get channel presence set) - List the members currently present on a channel (who is online now). REST: GET /channels/{channel}/presence. Endpoint: https://ably.usefulapi.io/mcp
- ably_get_presence_history (Get channel presence history) - Retrieve historical presence events (enter/leave/update) for a channel. REST: GET /channels/{channel}/presence/history. Endpoint: https://ably.usefulapi.io/mcp
- 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}. Endpoint: https://ably.usefulapi.io/mcp
- 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. Endpoint: https://ably.usefulapi.io/mcp
- 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. Endpoint: https://ably.usefulapi.io/mcp
- 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. Endpoint: https://ably.usefulapi.io/mcp
- 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. Endpoint: https://ably.usefulapi.io/mcp
- 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. Endpoint: https://ably.usefulapi.io/mcp
- 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. Endpoint: https://ably.usefulapi.io/mcp
- 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. Endpoint: https://ably.usefulapi.io/mcp
- 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. Endpoint: https://ably.usefulapi.io/mcp
- 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. Endpoint: https://ably.usefulapi.io/mcp
- 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. Endpoint: https://ably.usefulapi.io/mcp
- 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. Endpoint: https://ably.usefulapi.io/mcp

## Resources
Not captured

## Prompts
Not captured

## Metadata
- Owner: io.usefulapi
- Version: 1.0.1
- Runtime: Streamable Http
- Transports: HTTP
- License: Not captured
- Language: Not captured
- Stars: Not captured
- Updated: Jul 17, 2026
- Source: https://registry.modelcontextprotocol.io
