How to integrate Ably MCP with Hermes

Connect Hermes to Ably MCP. List all active channels and their details, get message history from 'support-chat' channel, and more using natural language, with authentication handled for you.

Ably logoAbly
Api Key

Ably is a real-time messaging platform for live chat and data sync in modern apps. It offers global scale and rock-solid reliability for seamless, instant experiences.

25 Tools

Introduction

Hermes is a 24/7 autonomous agent that lives on your computer or server — it remembers what it learns and evolves as your usage grows.

This guide explains the easiest and most robust way to connect your Ably account to Hermes. You can do this through either Composio Connect CLI or Composio Connect MCP. For personal use we recommend the CLI, but you won't go wrong with MCP either.

Also integrate Ably with

What is Composio Connect?

Composio Connect is a consumer offering that lets anyone plug 1,500+ applications directly into their agent harness — including Hermes. It can:

  • Search and load tools from relevant toolkits on-demand, reducing context usage.
  • Chain multiple tools to accomplish complex workflows via a remote workbench, without excessive back-and-forth with the LLM.
  • Manage app authentication end-to-end with zero manual overhead.

Integrating Ably with Hermes

Using Composio Connect CLI

1. Install the Composio CLI

Run the install script directly, or paste https://composio.dev/hermes into your Hermes chat box to have it installed for you.

bash
curl -fsSL https://composio.dev/install | bash
Hermes authenticating with Composio

2. Authenticate

Once the CLI is installed, ask Hermes to authenticate with Composio.

3. Connect to Ably

Ask your agent to connect to Ably, or simply request any Ably-related task. Hermes will prompt you to authenticate and authorize access.

4. Done. You're all set with a new Ably connection.


Using Composio Connect MCP

1. Get your MCP URL and API Key

Go to dashboard.composio.dev and copy your Connect MCP URL and API key.

Copy MCP URL and API key from Composio dashboard

2. Open the Hermes config file

bash
nano ~/.hermes/config.yaml

3. Add the Composio Connect MCP server

bash
mcp_servers:
  composio:
    url: "https://connect.composio.dev/mcp"
    headers:
      x-consumer-api-key: "YOUR_COMPOSIO_API_KEY"
    connect_timeout: 60
    timeout: 180

Save with Ctrl + O, Enter, then exit with Ctrl + X.

4. Restart your Hermes agent

Once restarted, ask your agent to connect to Ably or request any Ably-related task. It will prompt you to authenticate and authorize access.

5. Done!

What is the Ably MCP server, and what's possible with it?

The Ably MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your Ably account. It provides structured and secure access to your channels, messages, presence data, application statistics, and push notifications, so your agent can publish messages, inspect active channels, review channel history, monitor presence, and manage push notifications on your behalf.

  • Channel messaging: Have your agent publish a message to one channel or send batches of messages across multiple channels.
  • Channel activity and history: Let the agent list active channels, retrieve channel details, review message history, and inspect earlier versions of a message.
  • Presence monitoring: Direct your agent to check who is currently present in one or more channels and review past presence activity.
  • Push notification management: Instruct your agent to send individual or batch push notifications, manage channel subscriptions, and register, update, inspect, or unregister receiving devices.
  • Application insights: Have your agent retrieve Ably service time and review application usage statistics.

Way Forward

With Ably connected, Hermes can now act on your behalf whenever it detects a relevant task or you ask it to.

From here, you can extend Hermes further:

  • Connect more apps: Calendar, Slack, Notion, Linear, and hundreds of others are available through the same Composio Connect setup. Each new integration compounds what Hermes can do for you.
  • Build workflows across tools: Once multiple apps are connected, Hermes can chain actions together — turn an email into a calendar invite, a Slack message into a Linear ticket, or a meeting note into a follow-up draft.
  • Let it learn your patterns: The more you use Hermes, the better it gets at anticipating how you'd handle recurring tasks. Give it feedback on drafts and decisions, and it will adapt.

If you run into trouble or want to share what you've built, join the community or check out the Docs for deeper configuration options.

TOOLS

Supported Tools

Every Ably action and event your agent gets out of the box.

Query Batch Presence

Queries the presence states of multiple Ably channels in a single request, retrieving member presence details for the specified channels.

Query Batch Presence History

Query presence history for multiple Ably channels, with optional start and end times and forwards or backwards ordering.

Delete Channel Subscription

Unsubscribes a device or client from push notifications for a specified channel, or across all channels if no channel is provided.

Get Channel Details

Retrieves status and occupancy metadata for a specific Ably channel, including connection, presence, publisher, and subscriber metrics.

Get Channel History

Retrieves a page of message history for a specified Ably channel, with time range, limit, and direction filters.

Get Channel Presence

Tool to obtain the set of members currently present for a channel.

Get Message Versions

Retrieves a page of historical versions of a specific Ably channel message, including the original and subsequent updates or deletes.

Get Channel Presence History

This tool retrieves the history of presence messages for a specified channel in Ably.

Get Push Device Registration

Retrieves a device's push registration by device ID, including available platform, state, recipient, and metadata fields.

Get Ably Service Time

This tool retrieves the current server time from Ably's service in milliseconds since the epoch.

Get Application Stats

Retrieve a page of Ably application usage statistics by minute, hour, day or month, with optional time range, direction and limit.

List Channels

Tool to enumerate all active channels in the Ably application.

List Push Channels

Lists a page of Ably channels with at least one subscribed device for push notifications.

List Push Channel Subscriptions

Lists a page of push channel subscriptions filtered by channel, client ID, or device ID, with pagination links; at least one filter is required.

List Registered Push Devices

List a page of Ably push device registrations, optionally filtered by device ID or client ID.

Patch Push Device Registration

Partially update an existing Ably push device registration.

Batch Publish Messages

Tool to batch publish messages to multiple channels in parallel.

Publish Message to Channel

Publishes a message to a specified Ably channel with a string or JSON object payload and an optional event name and client ID.

Publish Push Notification

Tool to publish a push notification directly to device(s) via Ably's Push Notifications API.

Batch Publish Push Notifications

Tool to batch publish push notifications directly to specific recipients.

Register Push Device

Register an iOS, Android, or browser device with Ably to receive push notifications.

Request Access Token

Request an Ably access token with optional capabilities, client ID and lifetime.

Unregister All Push Devices

Unregister matching Ably push devices, optionally filtering by device ID or client ID, but not both.

Unregister Push Device

Unregister a single Ably push device by device ID.

Update Push Device Registration

Upsert an Ably push device registration, creating it or replacing an existing registration.

FAQ

Frequently asked questions

With a standalone Ably MCP server, the agents and LLMs can only access a fixed set of Ably tools tied to that server. However, with the Composio Tool Router, agents can dynamically load tools from Ably and many other apps based on the task at hand, all through a single MCP endpoint.

Yes, you can. Hermes fully supports MCP integration. You get structured tool calling, message history handling, and model orchestration while Tool Router takes care of discovering and serving the right Ably tools.

Yes, absolutely. You can configure which Ably scopes and actions are allowed when connecting your account to Composio. You can also bring your own OAuth credentials or API configuration so you keep full control over what the agent can do.

All sensitive data such as tokens, keys, and configuration is fully encrypted at rest and in transit. Composio is SOC 2 Type 2 compliant and follows strict security practices so your Ably data and credentials are handled as safely as possible.

Start with Ably.It takes 30 seconds.

Managed auth, hosted MCP servers, and every Ably tool your agent needs.Free to start.

Start building