Learn / AI and automation

Running Clay from Claude Code: three live tests

About 60 days before we recorded this, Clay shipped API keys and the Clay MCP. That one change means you no longer have to sit inside Clay managing every column by hand. You connect it to Claude Code and run the workflow by typing what you want.

So we tested the three use cases that matter for cold email, live, on camera, the first time we'd run any of them: enriching a list, treating a Clay table as a database you can query, and building lead scoring from scratch. Here's what each prompt was and what came back.

API, CLI and MCP, in plain English

The acronyms put people off, and they shouldn't. Think of it like driving a car:

  • The API is the engine. It does the actual work of reading and writing your Clay data.
  • The CLI is the steering wheel. Full control, and no real boundaries on where you point it.
  • The MCP is cruise control. It keeps the assistant locked safely in its lane, using only the actions Clay has exposed.

You don't have to be a developer for any of it. In Clay, go to your account, open API keys (beta), and add a key. Paste it into Claude Code, VS Code, or whatever you code in. Then open the MCP section in Clay and make sure it's connected to Claude. The MCP itself is an open standard, documented at modelcontextprotocol.io, if you want to know what's happening underneath. Setup took a couple of minutes.

Use case 1: enrich a list with one prompt

The job everyone does in Clay: take a list of companies and fill in the emails, phone numbers, company size, tech stack and the rest, column by column. With the API connected, you hand Claude the list, say what you want, and Clay's own providers do the enrichment.

Pull the first 50 rows of this CSV of companies, find the contacts, enrich everything in one pass, and output it all to one CSV.

The full file had 1,000 companies. We ran 50 as a sample. It came back with 23 contacts across those 50 companies: company, contact, job title, work email, industry, employee size and revenue, all in one file. We also asked it to look for recent news, and it found something worth mentioning for 7 of the 23.

A 50% hit rate sounds low until you look at why. Some of those companies simply don't have the job title we asked for. Give it a looser title list and it comes back with more. That part is on the prompt, not the tool.

Use case 2: treat a Clay table as a database

Normally a Clay table is just where your data gets stored and organized. Through the API you can treat it like a real database: query it, pull from it, build a dashboard on top of it. No exporting it somewhere else just to look at it. For this one we used the API rather than the MCP.

Fetch this table, pull the metadata so we know what columns exist, query the first 50 records, and report which fields are fully populated, partially populated and empty. Make it a reusable script so we can rerun it with different filters.

We pointed it at a table of US tech companies with over 43,000 contacts across almost 13,000 companies. The report came back with the picture you'd want before spending another credit on it:

  • 59% of the table was enriched.
  • Seniority split: 33% director or head, 22% founder or owner, 18.7% CEO or president, 12.8% C-suite, 9% VP.
  • Every contact had a unique LinkedIn profile and a corporate domain. Only 14 duplicates.
  • About 31,000 rows had never run at all, which it sized at roughly 20,000 more emails sitting in the table untouched.

That last line is the whole point. It's something I wouldn't have noticed if we hadn't run the audit.

Then, just for fun, we had it build a live dashboard on top of the query: a single-file HTML page that reads from the table on page load instead of hardcoding the numbers, so it updates when the table does. We gave it a short style guide so it matched our brand. It broke the list down by seniority, function, geography, signal, source, and which rows had and hadn't been attempted. It even showed the email patterns: 62% of addresses were first name only, 14.2% first.last, 12.3% first initial plus last name.

The practical use is pruning. If half the people in a table turn out to be irrelevant to the offer, there's no reason to keep paying to enrich them.

Use case 3: build lead scoring from scratch

The first test enriched a list we already had. For this one we started with nothing and packaged the go-to-market logic into a single prompt: find the accounts, run the enrichment waterfall (contact, company, tech, funding, hiring), then score and prioritize them by our own rules.

Keeping that logic inside Clay is deliberate. You can swap a provider, a prompt or a scoring rule later without rebuilding anything downstream. For a team running high-volume outbound, three steps carry most of the value: finding the lead, the enrichment waterfall, and the scoring, because scoring tells you who to reach and in what order.

Build a lead scoring workflow with Clay. I don't have a list. Find the accounts worth reaching out to, rank them, and tell me who to prioritize first. Ideal buyer: US B2B SaaS, 11 to 200 employees. Score on: hiring SDRs, hiring demand gen, headcount up, raised funding recently.

It pulled 284 accounts. 11 came back hot, 43 warm, so 54 worth working. Hot accounts were hiring for SDR, AE or sales lead roles, had grown over the last 6 months with a spike in the last 3, and fit the size, location and revenue range. Warm loosened the fit. Cold had one of the two signals, or none.

A score you run once goes stale in a week. So the follow-up prompt was simply: how do we turn this into a repeatable process? It built a weekly report that lists four things:

  1. New accounts that weren't on the list last week.
  2. Accounts that escalated, say from cold to warm.
  3. Accounts with a new signal.
  4. Accounts that cooled off or dropped out of a band.

It also suggested sending the report to Slack by webhook, so the refreshed list lands where the team already works. This is where it stops being a demo. You can add tech stack signals, funding signals, anything Clay can see, and the ranking keeps itself current.

One prompt, no starting list
284
Accounts found and scored against the ideal buyer
11
Scored hot: hiring for sales, growing, in range
43
Scored warm: same signals, looser fit

The list was never the hard part. Knowing who to email first was.

The three tests at a glance

Use caseThe promptWhat came back
1. Enrich a list"Pull the first 50 rows of this company CSV, find the contacts, enrich everything in one pass, output one CSV."23 contacts at 50 companies, with work email, title, industry, headcount and revenue. Recent news found for 7.
2. Audit a table"Fetch the table, pull its metadata, query 50 records, report which fields are full, partial and empty. Make it reusable."A 43,000-contact table profiled by seniority, coverage and quality, plus about 31,000 rows that had never run.
3. Score accounts"Find the accounts worth reaching out to, rank them, and tell me who to prioritize first." Plus the ideal buyer and signals.284 accounts: 11 hot, 43 warm. Refreshed weekly with new, escalated and cooled accounts sent to Slack.

Where this fits, and where it doesn't

Is it perfect? Probably not. The feature was barely 60 days old when we ran this, and a 50-company sample isn't a production run. But being able to run our actual workflows by typing into Claude, instead of clicking through Clay for an afternoon, is a real change in how the work gets done.

One honest caveat: none of this makes the list the right list. Faster enrichment of the wrong buyers is still the wrong buyers, and the hype around Clay hyper-personalization was never the thing that booked calls. List precision and a real offer were. Use this to do the data work faster, not to add more personalization tokens.

If you're still building Clay tables by hand, start with the Clay cold email workflow we run, and scraping any website with Clay's AI agent for the research side. The signals behind the scoring test are covered in intent-based lead generation. And the other jobs we hand to Claude are in six ways we use Claude Code for cold email.

tl;dr: connect Clay's API or MCP to Claude Code in a couple of minutes, then enrichment, table audits and lead scoring each become one prompt, with the scoring refreshed every week.

FAQ

What is the Clay MCP?

It's the connector that lets an AI assistant like Claude operate your Clay workspace directly. Clay also shipped API keys (in beta) at the same time. The API does the actual reading and writing of your tables, while the MCP keeps the assistant locked safely in its lane. Either way you stop clicking through the Clay interface and start prompting it.

How do you connect Clay to Claude Code?

In Clay, open your account settings, go to API keys (beta) and create a key, then give that key to Claude Code or whichever editor you run it in. For the MCP, open the MCP section in Clay and connect it to Claude. The whole setup takes a couple of minutes and no coding.

Can Claude enrich leads through Clay's API?

Yes. In our first test we handed Claude a CSV of companies, asked it to find contacts at the first 50 and enrich everything in one pass, and got back 23 contacts with work email, title, industry, headcount and revenue in a single file. That's roughly a 50% hit rate, which loosening the job-title list would raise.

Can you build lead scoring with Clay and Claude?

Yes. Describe your ideal buyer and the signals that make an account hot, and Claude has Clay find the accounts, enrich them and score them. Our test prompt (US B2B SaaS, 11 to 200 employees, hiring SDRs, hiring demand gen, headcount up, recent funding) returned 284 accounts: 11 hot and 43 warm.

Do you still need the Clay interface?

For building and debugging a table, sometimes. For running the jobs you repeat every week (enrichment, table audits, scoring refreshes) the prompt is faster. The feature was about 60 days old when we tested it, so expect rough edges, and check the output before any of it goes into a live campaign.

Faster workflows don't mean much if you aren't sending enough emails to book calls. If you'd rather have the whole system run for you, that's what we do: infrastructure, lists, copy and the replies, with 4,000+ sales calls booked for clients in the past year. Book a call and see if it fits. Or keep it DIY: the full video is on YouTube, and every training sits on the trainings hub.

PS - the table audit took one prompt, and it found roughly 20,000 emails still sitting in a table we were already working from.