Claude Code lead generation: a 7-step workflow that finds published contacts, not guessed ones
Claude Code runs the workflow. Every contact has to come from a page the company published. The full map of 36 Leads tools, prompts, guardrails and limits.
Can Claude do lead generation?
Yes, Claude Code can run the whole lead generation workflow, but it cannot invent real contacts. Pair it with the 36 Leads tools in BigIdeasDB Desktop and it reads the emails and phones each company publishes, scores fit from 0 to 100 and drafts up to 5 emails per campaign, while you press send.
Claude Code lead generation is using Anthropic’s coding agent to find companies in a segment, collect a real contact for each one, score the fit and prepare outreach. BigIdeasDB Desktop is a local-first research app for Mac and Windows that finds evidence and leads on your own computer and lets the AI agent you already use work with them. Its Leads area exposes 36 tools to Claude Code over MCP.
Want it for a specific market? Find property managers in Phoenix with their published emails, scored against your ICP, in BigIdeasDB Desktop Leads. The setup guide is at Desktop Leads.
The top five results for this query today are an r/ClaudeCode thread asking whether Claude Code can build a lead-gen automation, a vendor tutorial that routes through a paid enrichment tool, a skill directory, a members-only Medium post and a sales-AI blog (Google US, November 23, 2026). None of them shows a published-contacts-only rule, an opt-out list or a limits table. This page does.
“Claude Code can build the orchestration, enrichment logic and scheduling. That’s probably 80% of the work. The remaining 20% is sourcing.”via r/ClaudeCode, can Claude Code build a lead generation automation
The 5 best ways to run lead generation from Claude Code, ranked
The best Claude Code lead generation setup is the one where every contact traces to a page the company published. We ranked five setups on four criteria: contact traceability, built-in guardrails (opt-out list, cap, human send), setup time and cost beyond your AI plan. The weights are equal and the ranking is BigIdeasDB’s editorial judgement, not a measured result. Reviewed November 23, 2026.
| Rank | Setup | Where the contact comes from | Fails when | Best for |
|---|---|---|---|---|
| 1 | Claude Code + BigIdeasDB Desktop Leads over MCP | Published emails and phones read from each company's own contact, about and team pages, with the source page | A site refuses to be read, or publishes only a contact form | Founders who already use Claude Code and sell to local or niche B2B segments |
| 2 | Claude Code scripts that read each company's own pages | The same published pages, but you build the reader, the dedupe and the opt-out list | Your script guesses a pattern, or nothing stops a re-send to an opted-out address | Developers who want full control and will maintain it |
| 3 | Claude Code + a paid contact-data API | A vendor database, billed per lookup | Data ages: practitioners put B2B decay at 2 to 3% a month | Large-company targets that publish nothing |
| 4 | Claude Code scraping map or social listings | Listings pages, not the company's own words | Sites block the script; Claude Code can also refuse to build the scraper | One-off research, not an outreach list |
| 5 | Asking any chat model (Claude, ChatGPT, Gemini) to list prospects and emails | Web search answers or the model's memory, unchecked | In our Nov 23, 2026 test, 35 of 43 ChatGPT emails were on the company site and 7 were not; no fit score, pipeline or opt-out list | A quick first list you then check line by line |
Rank 1 is not free of limits. Some sites refuse to be read, contact-form-only sites yield no contact, and directories are not a lead source yet. Rank 2 is a fair choice if you enjoy maintaining a reader. Ranks 3 to 5 are where the guessed, stale and blocked contacts come from.
What breaks when you wire Claude Code to scrapers and data sources?
Six failures recur in practitioner threads: sourcing, stale data, role inboxes, bounce damage, low reply rates and refusals. We read six Reddit threads in full or in part on November 23, 2026 (n=6, anecdotes, some posters sell tools). The pattern is consistent: Claude Code writes the plumbing well, and the contact source decides whether anything works.
| Failure | What practitioners report | Source | What to do |
|---|---|---|---|
| Sourcing, not code, is the hard part | “That’s probably 80% of the work. The remaining 20% is sourcing.” | r/ClaudeCode, 2026 | Decide the contact source before you write any code |
| Lists go stale | “Verify at send time, not at build time.” B2B data decays “somewhere around 2 to 3% a month.” | r/Coldemailing, Aug 2026 | Read published pages fresh for each batch |
| Page scraping returns role inboxes | Contact page scraping “hands you a lot of info@ and generic role inboxes.” | r/Coldemailing, Aug 2026 | Track generic and named contacts separately |
| Bounces damage the sending domain | “Your domain does not just heal on its own after a 14% bounce campaign.” | r/Coldemailing, Aug 2026 | Never guess; keep a permanent opt-out and bounce list |
| Writing is not the constraint | 1,097 emails over 85 days, 11 human replies, 0 paid, from a Claude Code plugin that read each site first. | r/AI_Agents, Sep 2026 | Spend the effort on segment choice, not sentence tuning |
| Claude Code can refuse a scraper | A thread titled “Claude Code refusing to build scraper” drew 141 comments. | r/webscraping, Oct 2026 | Ask for reads of public contact pages, not site-wide extraction |
“The part that stands out is the reply rate not moving even though the agent reads each site first. That result is worth taking seriously, because it says the constraint was never the writing.”via r/AI_Agents, a Claude Code plugin that sold its own product for 85 days
The lesson is selection. 1,097 emails and 11 replies is about 1%, and the commenter put generic B2B cold email “under 1 percent”. Claude Code can rewrite a hundred first lines. It cannot tell you that you picked the wrong segment. That is why the next sections start with the contact source and the ideal customer, not the prompt. If you are still choosing the segment, our guide to the ideal customer profile and the notes on Claude Code market research come first.
How do you connect Claude Code to BigIdeasDB Desktop Leads?
Connection is one click: Desktop writes its MCP entry into Claude Code’s config for you. Open Settings, press Connect your AI, then Connect next to Claude Code. Desktop’s local MCP server exposes 540+ tools in total, and 36 of them are Leads tools. Desktop uses your own Claude plan, so BigIdeasDB adds no AI bill. Details: Connect your AI, the tools reference and the skills guide.
- Mac or Windows: the app runs on your own computer, and your projects stay there.
- Clipper paired: company search runs in your own browser through the Clipper extension.
- Keep Desktop open: Claude Code talks to the local server while the app runs.
- Leads switched on by you: the notice must be accepted in the window. If an AI calls the tool that does this, it changes nothing.
Desktop is included in Basic ($199 lifetime) and Pro ($399 lifetime) as of November 23, 2026. Free and Lite accounts can buy it once as an add-on whose price rises $1 with every sale, so check the Desktop pricing page for the live number.
The 7-step Claude Code lead generation workflow
The workflow takes about 90 minutes for a first batch of 30 companies, and every step has a prompt you can paste into Claude Code. The examples use a proptech founder selling to property managers in Phoenix. Swap the vertical, keep the order.
- Connect Desktop to Claude Code and pair Clipper. Open Settings, Connect your AI, press Connect next to Claude Code, pair Clipper in your browser, then open Leads under Board and accept the notice yourself.
- Set your sender details and ideal customer. Add your name, company, postal address and opt-out line, then describe the ideal customer with keywords, industries and places so every lead gets a fit score.Set my Leads settings. Sender: [name], [company], [postal address]. Ideal customer: keywords property management, rentals, HOA; industry real estate; places Phoenix, Scottsdale, Mesa.
- Find 30 companies in one narrow segment. Ask Claude Code to run one or two searches for a single kind of company in a single place. Desktop searches in your own browser and keeps one lead per domain.Find 30 property management companies in Phoenix that manage 50 or more rental doors. Keep one lead per website.
- Read the published contacts and check the source page. Desktop reads each company's home page plus up to three contact, about, team or imprint pages. Ask Claude Code to list what each site publishes and which page it came from.For every new lead, show the emails and phones the company publishes and the page each came from. Flag sites that were refused.
- Score the fit and keep only real matches. Each lead is scored 0 to 100 against your ideal customer with the reasons shown. Move the best ones to Researching and drop the rest before any email is written.Show leads with a fit score of 70 or more and the reasons. Move those to Researching and tag the rest as skip.
- Write a short campaign and enroll the leads. A campaign is a first email plus up to four follow-ups with day delays. Claude Code writes the copy with merge fields. Enrolling creates drafts. Nothing is sent.Create a 3 step campaign for the Researching leads: short, plain, one specific reason per company. Use {{company}} and {{first_name}}. Enroll the leads that have a published email and rewrite each first draft to mention their market.
- Press Open in mail yourself, then log what happens. Read each draft in Today and press Open in mail. Your own mail app opens and you press send. Mark replies and bounces so follow-ups stop for those contacts.What is due in Leads today? List the drafts waiting and the leads with no reply after two emails.
Search is deliberately small. The tool’s own guidance is to plan a few good searches, not many, and the read step covers one company every few seconds, up to 200 sites a day. If a search page shows a check, the search stops until you solve it in Chrome and press Resume in Clipper. For choosing who to email before step 3, see how to find leads for cold email. For the wording of the emails, see cold outreach for SaaS and how to sell B2B SaaS.
If you have no customers yet, pair this with how to get your first customer. If your buyers are small businesses, read how to sell software to small businesses before you write the first email.
All 36 Leads MCP tools, grouped by job
BigIdeasDB Desktop gives Claude Code 36 Leads tools, and they fall into seven jobs: find, enrich, review, pipeline, campaign, follow-up and compliance. Read from the tools reference on November 23, 2026. Counts add to 36. A tool that changes saved data is marked as saving data in Desktop; the review tools are read-only.
| Job | Tools | Which tools | Example prompt to Claude Code |
|---|---|---|---|
| Find and add | 4 | leads_search, leads_add, leads_import_csv, leads_from_board | “Find 30 property management companies in Phoenix.” |
| Enrich | 2 | leads_enrich, leads_contact_add | “Re-read the new leads’ sites for published contacts.” |
| Review and score | 3 | leads_list, leads_get, leads_export | “Show fit score and reasons for each lead.” |
| Pipeline | 9 | leads_update, leads_stage_set, leads_tags_add, leads_note_add, leads_log, leads_task_add, leads_task_done, leads_to_board, leads_remove | “Move every lead scoring 70+ to Researching and add a task to call on Friday.” |
| Campaign and drafts | 10 | leads_campaign_create, leads_campaign_enroll, leads_campaign_get, leads_campaign_list, leads_campaign_remove, leads_draft, leads_draft_get, leads_drafts_list, leads_draft_skip, leads_draft_sent | “Write a 3 step campaign and rewrite each first draft per company.” |
| Follow-up | 2 | leads_agenda, leads_contact_status | “What is due today, and who has not replied after two emails?” |
| Compliance and setup | 6 | leads_notice_get, leads_notice_accept, leads_profile_get, leads_profile_set, leads_suppress, leads_suppression_list | “Add this domain to the opt-out list.” |
Three guardrails sit in the tools themselves, not in your prompt. First, leads_search keeps one lead per domain and leaves out directories, marketplaces and social networks. Second, leads_campaign_enroll picks a named person before a generic inbox and never picks an opted-out, replied or bounced contact. Third, two tools can only be completed by you in the window: leads_notice_accept and leads_draft_sent. If an AI calls them, they change nothing. Five built-in skills (lead finding, enrichment, scoring, cold email writing and a daily follow-up review) bundle these tools into repeatable routines.
How do you keep Claude Code honest about contacts?
Put the contact rule in writing where Claude Code reads it every session, because a model asked for 50 emails will try to produce 50. The Leads tools already refuse to save a guessed address, so your rules only need to stop Claude Code from going around them. Add five lines to the project’s CLAUDE.md file:
Rule 5 comes straight from the practitioner thread above: the commenter said the loop could rewrite the body but could not tell which segment was wrong, because it never recorded why a company was chosen. A one-line note per lead costs about 5 seconds each and lets you kill a whole segment later instead of tuning sentences. A batch of 30 leads therefore adds roughly 2 to 3 minutes of logging.
What does a lead look like in Desktop Leads?
A lead is a company with its contacts, the page each contact was found on, a fit score with reasons, a stage and a timeline. The values below are a made-up example, not a real company or person.
| Field | Example value |
|---|---|
| Company (example) | Example Desert Property Management |
| Domain | desert-pm.example |
| Stage | Researching |
| Fit score | 82 of 100, reasons: matches keyword property management, place Phoenix |
| Contact 1 | leasing@desert-pm.example, found on /contact |
| Contact 2 | owner@desert-pm.example, found on /about |
| Opt-out list | Not on it |
| Campaign step 1 (day 0) | Subject: Quick question about owner statements at {{company}} |
| Campaign step 2 (3 days later) | Short follow-up, drafted only if no reply, bounce or opt-out |
| Footer added to every email | Your name, postal address and opt-out line |
Each draft opens in your mail app through Open in mail, and nothing leaves Desktop until you press send. Full feature guide: Desktop Leads and CRM.
What does the same workflow look like for bookkeeping firms?
The only change is the segment and the pitch. For a fintech founder selling to bookkeeping firms in Austin, set the ideal customer to keywords bookkeeping, accounting and CPA, industry accounting, place Austin, and run the same seven steps. BigIdeasDB’s Capterra analysis gives the pitch angle: Accounting Practice Management has 16 systemic complaints at average severity 4.31 across 480+ company mentions (queried November 23, 2026).
A dental clinic version works the same way: Capterra’s Dental category has 8 systemic complaints at average severity 4.28 across 160+ mentions. Mentions can count one company twice, and complaint severity does not prove a clinic wants new software, so treat both as an angle for the first line, not as proof of demand. To check demand first, run the segment through a niche scan in BigIdeasDB.
What can Claude Code do on its own, with Desktop Leads, and not at all?
Claude Code alone is strong at orchestration and weak at contact data, and Desktop Leads closes the contact gap while leaving three things nobody should automate: choosing the segment, verifying an inbox, and pressing send. The table below separates the three.
| Job | Claude Code alone | Claude Code + Desktop Leads | What neither does |
|---|---|---|---|
| Run the workflow: plan, loop, summarize, write copy | Yes | Yes | n/a |
| Find companies in one segment and place | Yes, by web search; results vary run to run | Yes, searched in your own browser, one lead per domain | Cannot judge which segment will buy |
| Get a real contact | Only if your script reads the page; nothing stops it guessing | Published emails and phones only, each with its source page; never guesses | Cannot promise an inbox exists or replies |
| Contact-form-only sites | No contact | No contact saved | Neither submits forms for you |
| Business directories and map listings | Possible, often blocked | Not a lead source yet | Neither makes them company-published |
| Sites that refuse a read | Script errors you handle | Marked Site refused and left alone | Neither gets around a refusal |
| Opt-out list and legal footer | You build both | Opt-out list always applied; name, address and opt-out line on every email | Neither replaces legal advice |
| Send the email | Could, if you wire it up | No: drafts open in your mail app and you press send | Neither should send blind |
Two honest limits to repeat. A published address can still bounce, because people leave and inboxes close, so keep your first batches small and log every bounce. And many small sites publish only a generic inbox or a form, so expect fewer named people than a purchased list promises.
How do you know a Claude Code lead batch worked?
Judge a batch on four counts you can read straight off the pipeline: contacts found per 30 companies, bounces, replies and meetings. Bounces are the early signal. One r/Coldemailing practitioner advises keeping bounces under 2% and cutting volume for a few weeks after a bad batch, because sender reputation is scored on a rolling window of recent sends. We found no measured 2026 reply benchmark and quote none.
- Contacts per batch: if fewer than a third of 30 companies publish an email, the segment skews toward form-only sites. Pick a segment that publishes more, such as multi-location services.
- Bounces: log every one with
leads_contact_status. A bounced address also goes on the opt-out list, so it is never emailed again. - Replies and meetings: move the lead to Replied or Meeting. After 2 or 3 batches, compare segments, not subject lines.
- Batch size: stay at 30 or fewer per day until bounces are under 2%. The default cap of 30 a day enforces that for you.
Is lead generation illegal? CAN-SPAM, CASL and Europe
Lead generation is legal in the United States if each email follows CAN-SPAM. The FTC lists honest header information, a non-deceptive subject, a clear ad disclosure, your valid postal address, a clear opt-out and honoring opt-outs within 10 business days, with penalties up to $53,088 per violating email (FTC CAN-SPAM guide, read November 18, 2026; the page blocked our automated fetch on November 23). The law has no business-to-business exception.
Calls and texts are different: the TCPA and the Do Not Call rules govern them, and AI answers for this query cite them, so this page covers email only and you should check them before you dial a published phone number.
Canada is stricter. The CRTC’s CASL FAQ, updated February 26, 2026, describes a conspicuous publication exemption that can imply consent when a person has published their address, with conditions attached, so read it before you email Canadian businesses (CRTC CASL FAQ, read through a search summary). One r/ClaudeCode commenter said that in the Netherlands you may not email businesses offering services without permission. That is one person’s claim, so take local advice for Europe.
Desktop adds your name, postal address and opt-out line to the end of every email, applies the project’s opt-out list every time, never emails contacts who replied or bounced, and stops at your daily cap, 30 by default. That supports compliance and does not replace it. This is general information, not legal advice. The long version is in how to find leads for cold email.
Does the same workflow work with ChatGPT desktop and Codex?
Yes. Codex is one of six one-click clients (Claude Desktop, Claude Code, Cursor, Windsurf, Codex and OpenCode), and ChatGPT desktop reads the Codex config, so the 36 Leads tools work the same way. The assistant changes the writing, not the rules. See can ChatGPT generate leads and use Codex to find business ideas. For other MCP options, see the best Reddit MCP servers.
Methodology and data sources
Written and checked on November 23, 2026. Desktop facts come from the shipped Desktop guides and the generated tools reference, not from memory. Reddit threads were read through the Reddit tooling and quoted verbatim, anonymized to the subreddit. The complaint figures come from live read-only queries.
| Source | What it gives | Size | Limitation |
|---|---|---|---|
| BigIdeasDB Desktop Leads guide and tools reference | What Leads reads, saves, caps and refuses; the 36 tools by name | 36 Leads tools of 540+ | Describes shipped behavior only |
| BigIdeasDB Capterra analysis | Systemic complaint count and severity by category | Accounting Practice Management 16, Dental 8 | Mentions can count one company twice; severity is not demand |
| Reddit (r/ClaudeCode, r/Coldemailing, r/AI_Agents, r/webscraping, r/ClaudeAI, r/gtmengineering) | How practitioners wire Claude Code to lead sources and where it breaks | 6 threads | Anecdotes; some posters promote tools |
| Google SERP and People Also Ask | Who ranks and what searchers ask | US, November 23, 2026 | A snapshot, no search volumes |
| FTC CAN-SPAM guide | Requirements and penalty | 1 federal page | US only; fetch blocked November 23, read November 18 |
| CRTC CASL FAQ | Conspicuous publication exemption | 1 Canadian regulator page | Read through a search summary; conditions not reproduced |
Find real contacts for your market before you write the first email
Scan your niche in BigIdeasDB to see what buyers complain about and how thin the software is, then connect Claude Code to Desktop Leads and read the contacts they publish. Get 20% off Pro Lifetime with code SAVE20.
Scan your niche free →Frequently asked questions
Can Claude do lead generation?
Claude can run the workflow: plan a segment, loop over companies, score fit and write the emails. It cannot invent a real contact, and a guessed address bounces. The reliable setup gives Claude Code a tool that reads the contacts companies publish. BigIdeasDB Desktop does that through 36 Leads tools over MCP, with the source page kept for every email.
Can Claude Code do lead generation?
Yes, as the orchestrator. Claude Code can write scripts, call tools, dedupe and draft copy, and one r/ClaudeCode practitioner put orchestration at about 80% of the work. The other 20%, sourcing contacts, is where setups fail. Connect it to BigIdeasDB Desktop Leads and it can search, read published contacts and enroll leads in a campaign.
What is the best tool for Claude Code lead generation?
BigIdeasDB Desktop is the best fit, because its Leads area exposes 36 MCP tools that Claude Code can call, reads only the emails and phones a company publishes, and never guesses an address. It also keeps an opt-out list, caps sends at 30 a day by default and leaves the send button to you.
Which AI is best for lead generation?
For finding real contacts, BigIdeasDB Desktop Leads paired with the AI you already use is the best choice: it reads each company's own pages for published emails and phones and logs the source page. On their own, Claude, ChatGPT and Gemini are good at planning and writing, and weak at supplying addresses, so use them for copy and scoring.
What is the best MCP server for lead generation?
BigIdeasDB Desktop runs a local MCP server with 540+ tools, 36 of them for Leads: search, enrich, score, pipeline, campaigns and follow-ups. It is the best fit for founders who want published business contacts rather than a purchased list, and it works in Claude Code, Claude Desktop, Cursor, Windsurf, Codex and OpenCode.
Is there a free Claude Code lead generation setup?
You can build a free one yourself: Claude Code scripts that read each company's contact page cost only your Claude plan and your time. Desktop Leads is not free. It is included in Basic ($199 lifetime) and Pro ($399 lifetime) as of November 23, 2026, and uses your own Claude plan, so BigIdeasDB adds no AI bill.
Is there a Claude Code lead generation GitHub repo I can use?
Repos exist, and we did not audit them, so check three things before you run one: it must read pages the company publishes, never guess an address pattern, and keep an opt-out list. If it fails any, you inherit bounces and legal risk. Desktop Leads is the packaged alternative and has no repo to maintain.
How do I use Claude Code for sales prospecting?
Pick one narrow segment, such as property managers in Phoenix, then have Claude Code find the companies, read each one's published contacts, score fit against your ideal customer and draft a short campaign. Send the emails yourself from your own mail app. Plan on 30 well-chosen companies per batch rather than thousands, since selection beats volume.
Is lead generation illegal?
No. Lead generation is legal in the United States when done honestly. For email, CAN-SPAM requires honest headers, a non-deceptive subject, your postal address and an opt-out honored within 10 business days, with fines up to $53,088 per email. Calls and texts fall under separate consent and Do Not Call rules (the TCPA), and Canada and the EU are stricter.
Can Claude Code send the cold emails for me?
It can if you wire it to a sending tool, but we advise against it. In Desktop Leads the AI drafts and enrolls, and you press Open in mail to send from your own account. The tool that records a send only works from the window, so an AI cannot mark a draft sent. The daily cap defaults to 30.
Why does my Claude Code lead list bounce?
Usually because the addresses were guessed or aged. A r/Coldemailing practitioner puts B2B data decay at 2 to 3% a month and warns that a 14% bounce campaign does not heal on its own. Read addresses fresh from each company's own site, never pattern-guess, and keep a permanent bounce and opt-out list outside the sending tool.
Do ChatGPT desktop and Codex work with BigIdeasDB Desktop Leads the same way?
Yes. Codex is a one-click client, and ChatGPT desktop reads the Codex config, so the same 36 Leads tools and five built-in skills are available. Claude Code, Claude Desktop, Cursor, Windsurf and OpenCode also connect in one click. Which assistant you use changes the writing style, not what Leads is allowed to save.
Keep reading: how to find leads for cold email, cold outreach for SaaS, Claude Code market research and BigIdeasDB Desktop. Ready to try a segment? Scan property management in BigIdeasDB.
BigIdeasDB Research. (2026). Claude Code lead generation: a 7-step workflow that finds published contacts, not guessed ones. BigIdeasDB. Retrieved from https://bigideasdb.com/claude-code-lead-generation