How to integrate Clay MCP with Hermes

Connect Hermes to Clay MCP. Search people by email and enrich, run routine to update company records, and more using natural language, with authentication handled for you.

Clay logoClay
Api Key

Clay is a go-to-market data enrichment and workflow automation platform for searching people and companies, running routines, and querying workspace tables. It helps teams enrich leads, automate GTM workflows, and keep workspace data synchronized.

15 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 Clay 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.

For exact tool slugs and parameter tables, see the tool catalog in the Composio docs.

Also integrate Clay with

What is Composio Connect?

Composio Connect is a consumer offering that lets anyone plug 1,700+ 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 Clay 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 Clay

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

4. Done. You're all set with a new Clay 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 Clay or request any Clay-related task. It will prompt you to authenticate and authorize access.

5. Done!

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

The Clay MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your Clay account. It provides structured and secure access to Clay searches, routines, results, and workspace details, so your agent can find people and companies, explore additional matches, run routines, monitor progress, and retrieve results on your behalf.

  • People and company research: Have your agent search for people or companies using the criteria that matter to your go-to-market work.
  • Expanded search results: Let the agent explore more matches from an existing search when you need a broader prospect list.
  • Clay search guidance: Instruct your agent to review Clay's supported search fields and rules before composing detailed people or company searches.
  • Routine execution and tracking: Direct your agent to run a Clay routine for up to 100 items, check its progress, and collect completed results.
  • Account and workspace context: Have your agent confirm which Clay user and workspace are connected to the current API key.

Way Forward

With Clay 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 Clay action and event your agent gets out of the box.

Continue Search

Consume one next page from an existing Clay query-mode search.

Get Credit Balance

Return the current Clay workspace's remaining spendable data credits and, when available, action-execution balance.

Get Current User

Return the Clay user and workspace associated with the connected Public API key.

Get Privacy Delete Status

Check an existing Audiences privacy deletion job in your Clay workspace once, including tracked cascading cleanup.

Get Routine Batch Results

Check an existing asynchronous Clay batch routine run once.

Get Routine Batch Upload URL

Create a presigned upload URL and file ID for a Clay routine batch.

Get Routine Run Results

Check progress or fetch one page of results for an existing inline Clay routine run.

Get Search Query Reference

Return Clay's current advanced-search field and grammar reference for composing people or company queries.

Get Workflow Runs Query Reference

Get Clay's workflow-run query reference (beta) as Markdown.

Privacy Delete People

Queue deletion of people from Clay Audiences for privacy-related requests in the workspace associated with the API key.

Query Table Rows

Run a structured query across caller-identified Clay workspace tables and return one page of rows, with field metadata when available; tables require Enterprise access.

Query Workflow Runs

Search Clay workflow runs using the official beta query API.

Run Routine

Start a Clay routine for 1-100 items, poll it for a bounded time, and return completed item results or the current run ID and progress.

Search People or Companies

Create a Clay query-mode people or company search and consume its first result page.

Start Routine Batch

Start an asynchronous Clay routine batch over a previously uploaded JSONL file.

FAQ

Frequently asked questions

Start with Clay.It takes 30 seconds.

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

Start building