Clay

Clay

Clay GTM data from any AI agent: search Clay's people and company database, run Clay enrichment and custom functions, query Clay tables, search Workflow runs and check credits. Clay Public API with a personal API key.

7 天免费 · 无需信用卡 · EU 托管

问 Clay 任何事

通过 AnythingMCP 对 Clay 试一个真实提示 — Claude 调用工具并返回答案。在你的消息上按 Enter 即可在 Cloud 安装。

在 Cloud 上安装 Clay
Clay · 通过 MCP 实时
分享
Opus 4.7

Claude 是 AI,可能会出错。请核对回答。

2 分钟设置

  1. 1在 cloud.anythingmcp.com 开始免费试用。
  2. 2在连接器商店点击 Clay。提示时粘贴凭据。
  3. 3生成 MCP API 密钥,将 AI 客户端指向生成的 MCP URL。
立即安装 Clay

Clay 指南

面向主流 AI 客户端的逐步设置。

配置 Clay

直接来自连接器定义:在哪里获取凭据、需要哪些权限,以及该适配器调用的是哪个 API。 由连接器作者以英文提供。

Clay

This connector uses the Clay Public API (https://api.clay.com/public/v0): searches of Clay's people and company database, runs of Clay functions (enrichment and research), queries of Clay tables, Workflow run search, credit balance and privacy deletion.

What it cannot do: the Public API has no endpoints to list tables or functions, create tables or write rows. Rows are still written to tables through a table's inbound webhook, and function and table ids are copied from the Clay app.

Setup

  1. In Clay open API and CLI, tab API keys (https://app.clay.com/workspaces/~/api-and-cli?tab=api-keys) and create a key. The key acts as your user, with your workspace access.
  2. Paste it into CLAY_API_KEY. It is sent in the clay-api-key header.
  3. For custom functions, open the function in Clay, Details, and enable API access; copy its t_... id.

Check the key: clay_get_me returns the user and workspace; clay_get_credit_balance shows the credits left.

Search the GTM database

  1. clay_get_search_query_reference once per session to learn the fields and grammar.
  2. clay_create_search with a query such as select from companies where people.exists(is_current = true and job_title is_similar_to ("VP Sales")); keep the search_id.
  3. clay_get_search_results with that id; it is a stateful iterator: each call returns the next page, call again while has_more is true. Search results count against the plan's result limits (free: 50 per search and 100 per 30 days; paid: 500 per request). Over a limit Clay answers 402 naming the limit.

Enrich with a function

  1. clay_run_routine with the routine id (function:t_...) and up to 100 items {"id": "...", "inputs": {...}}. It spends credits.
  2. clay_get_run_results with the routine_run_id: HTTP 202 and status: in_progress while running, then 200 with status: complete and data. Match results to inputs by id, not by order; a complete run can contain failed items. total and finished count the whole run, finished includes failures. Poll every few seconds, not in a tight loop.
  3. clay_get_batch_run_results reads batch runs started from the Clay CLI; a finished batch returns result_url.

Tables (Enterprise): clay_query_tables with the table id from the table's URL (.../tables/t_...). Cells come back with a status: success (with value), empty, error (with error), or a pending state (running, queued, retry, rate_limited, awaiting_callback). Pass cursor back to page; a scan can return a row twice when it changes mid-scan, so deduplicate by id.

Workflows (beta): clay_get_runs_query_reference, then clay_query_workflow_runs to find runs and their status.

Privacy: clay_privacy_delete_people (installed switched off) deletes people from Audiences; try dry_run: true first, then follow the job with clay_get_privacy_deletion_status.

Paging: collections return data and a cursor while more pages exist; search iterators return data and has_more.

Errors: errors carry a message. 401/403: wrong key or no access; 402: search result limit reached; 404: unknown id, or a function without API access; 409/422: invalid request state or input; 429: workspace rate limit, wait for Retry-After seconds.

你的 AI 距离 Clay 仅两次点击。

安装连接器、粘贴凭据、向 AI 提问。7 天免费,无需信用卡。