Build a researched prospect list with Claude Code instead of a paid lead database

Use Claude Code with Exa search and Firecrawl page reading to build a spreadsheet of companies that fit your ideal customer, with a fit score, a reason and a research note for each one, using only public business information.

  • Level Intermediate
  • Time 1-2 hours for the first list, then about 20 minutes per refresh
  • Works with
    • Claude.ai
    • Claude Desktop
    • Claude Code
On this page8 sections

By the end of this guide you’ll have a spreadsheet of 20 to 50 companies that match your ideal customer. Each row has a fit score, the reason it fits (or doesn’t), the job title you’d want to talk to, and a short research note with links. Claude Code does the searching and reading. You make the final call.

This is a research tool, not a spam machine. The setup below never guesses email addresses, never contacts anyone and never scrapes personal profiles. That keeps you inside website terms and privacy law, and it also gives you a better list.

What you’ll have at the end

  • A project folder with your ideal customer written down (icp.md) and the rules Claude must follow (CLAUDE.md).
  • prospects.csv (and optionally prospects.xlsx) with one row per company: name, website, country, size signal, fit score from 0 to 5, fit reason, miss reason, target role, research note and source links.
  • A repeatable prompt you can run again next month.

What you need, and what it costs

ItemPlan or costNotes
Claude CodePro, Max, Team or Enterprise, or a Claude Console (API) accountThe free claude.ai plan doesn’t include Claude Code. On Pro and Max, usage counts toward the same limits as your chats.
Exa MCP serverStarts without an accountRate-limited without a key. Signing in or adding an Exa API key gives higher limits. Check Exa’s site for current prices.
Firecrawl MCP serverKeyless tier for scrape, search and parseCrawl, map and agent tools need a sign-in or API key and use Firecrawl credits. Its firecrawl_credit_usage tool shows what you have left.
Excel output (optional)Any plan with Claude CodeClaude Code can write the .xlsx file for you.

An MCP server is a plug-in that gives Claude a new ability, here web search (Exa) and clean page reading (Firecrawl). If you use an Anthropic API key instead of a subscription, every run is billed by tokens. The /usage command shows an estimated session cost.

The rules first: terms, privacy and anti-spam

Read this before you build anything. It shapes the guardrails in step 3.

  • Company facts only. Collect what a business publishes about itself: what it sells, where it operates, roughly how big it is, recent news, open job posts. Don’t collect personal phone numbers, home addresses or personal social profiles.
  • Roles, not people. The list names the role to approach (“Head of Operations”), not a person. In the UK, the ICO says a named person’s business contact details are still personal data under UK GDPR, “even if they are acting in their business capacity”. The EU GDPR has the same idea. Once you collect a named person’s data from a source other than them, Article 14 says you must give them privacy information “within a reasonable period”, and at the latest within one month.
  • Respect each site’s terms. Many sites, including most professional networks, forbid automated scraping in their terms of use. Have Claude read only public company websites and search results. Skip any site whose terms forbid automated access, and anything behind a login.
  • Anti-spam law still applies to business email. The US FTC says CAN-SPAM “makes no exception for business-to-business email”. Every marketing email needs accurate headers, an honest subject line, your physical postal address and a working way to opt out. You must honor opt-outs within 10 business days. The FTC lists penalties of more than $50,000 per email that breaks the rules (the figure is adjusted for inflation each year).
  • UK nuance. Under PECR (the UK’s email marketing rules), you can email a company address such as a limited company without prior consent, but you must say who you are and give an opt-out. Sole traders and some partnerships count as individuals and need consent.

Other countries have their own rules. This guide isn’t legal advice; check what applies where you and your prospects are.

Step-by-step

1. Make a project folder and open Claude Code in it

  • Terminal: install Claude Code (macOS, Linux, WSL: curl -fsSL https://claude.ai/install.sh | bash; Windows PowerShell: irm https://claude.ai/install.ps1 | iex). Then run mkdir prospects && cd prospects && claude.
  • Claude Desktop: open the app, click the Code tab, select Local, click Select folder and pick an empty prospects folder.

2. Add Exa and Firecrawl

In the terminal (outside Claude Code), run:

claude mcp add --transport http exa https://mcp.exa.ai/mcp
claude mcp add --transport http firecrawl https://mcp.firecrawl.dev/v2/mcp-oauth

Start Claude Code again, type /mcp, and finish the Firecrawl sign-in when it asks. Both servers should show as connected. Exa gives you web_search_exa and web_fetch_exa. Firecrawl gives you tools such as firecrawl_search and firecrawl_scrape.

No-code option (claude.ai or Desktop chat): in a new chat, select + > Add connector, search for Exa, select Connect to Claude and authorize. Firecrawl has a native connector at claude.ai/directory/connectors/firecrawl. You can run the prompts below in a chat, but you’ll copy the results out by hand, and it works best for 10 to 15 companies at a time.

3. Write down your ideal customer and the rules

Ask Claude to create these two files, or paste them in yourself. Edit the brackets.

icp.md:

# Ideal customer profile
We sell: [one sentence, e.g. "a scheduling tool for physiotherapy clinics"]
Good fit:
- Industry: [e.g. private physiotherapy and sports-rehab clinics]
- Location: [e.g. UK and Ireland]
- Size: [e.g. 3-20 practitioners, 1-5 locations]
- Signals: [e.g. online booking on their site, hiring front-desk staff, opening a new location]
Not a fit:
- [e.g. hospital departments, franchises with central IT, solo practitioners]
Role we want to reach: [e.g. clinic owner or practice manager]

CLAUDE.md (Claude Code reads this file at the start of every session):

# Prospect research rules
- Use only public business information: company websites, public news, public job posts, company registries.
- Never visit pages behind a login. Skip any site whose terms forbid automated access or scraping.
- Do not scrape LinkedIn or other social networks.
- Do not collect or guess email addresses, phone numbers or names of individuals. Record the target ROLE only.
- Do not contact anyone, submit forms or sign up for anything.
- Every fact in the research note needs a source URL in the sources column.
- If a fact isn't on the page, write "unknown". Never fill gaps with guesses.
- Before any batch over 20 pages, tell me how many pages you plan to read and wait for my OK.
- Stop and ask if a tool reports low credits or a rate limit.

One honest limit: CLAUDE.md is an instruction file, not a lock. Claude follows it closely, but you still approve tool calls when Claude Code asks, and you review the output.

4. Search pass: build a long list

Read icp.md and CLAUDE.md. Use Exa search to find up to 40 companies that may match the profile. Try at least 5 different searches (by service, by city or region, by signal like "now hiring" or "new location"). Save candidates.csv with: company, website, country, how you found it (the search query), and the result URL. Remove duplicates and anything that is clearly a directory, marketplace or news site rather than a company. Don't visit the websites yet. Show me the count and 5 sample rows.

Look at the sample. If it’s off target, change icp.md and run the prompt again. Changing the searches is cheaper than reading 40 wrong websites.

5. Enrich pass: read each company’s own site

For each company in candidates.csv, use Firecrawl to read the homepage plus at most 2 more pages on the same site (about, services, team, careers or pricing). Follow CLAUDE.md. Then write prospects.csv with these columns:
company, website, country, size_signal, fit_score (0-5), fit_reason, miss_reason, target_role, research_note (2 sentences max), sources (URLs you actually read).
Score against icp.md. fit_reason and miss_reason must quote or point to something on the page. If a site won't load or blocks automated access, set fit_score to blank and miss_reason to "could not check".
Work in batches of 10 and give me a one-line progress update after each batch.

The fit score is Claude’s judgment against your profile: 5 means every “good fit” line matched, 0 means a clear “not a fit”.

6. Sort, split and export

Sort prospects.csv by fit_score, highest first. Then create prospects.xlsx with three sheets: "Strong fit" (4-5), "Maybe" (2-3) and "Not a fit" (0-1 or could not check). Freeze the header row, make the website and sources columns clickable links, and add a "My decision" column that's empty. Then list the 5 most common miss reasons so I can sharpen icp.md.

Keep the “Not a fit” sheet. The miss reasons tell you which searches waste time, and they stop you contacting the same wrong companies next quarter.

7. Check it by hand

Open 10 rows at random and click through to the sources. Ask yourself three things:

  1. Does the page really say what the research note claims?
  2. Is the score fair?
  3. Is the company still trading?

If more than 2 of the 10 are wrong, tighten icp.md or the scoring instructions and rerun step 5 on just the “Strong fit” rows.

Find the right person yourself, through the company’s own contact page or a proper introduction. Then write to them like a human, follow the anti-spam rules above, and keep a record of anyone who opts out.

Optional: the Lead Research Assistant skill

The community Lead Research Assistant skill in Composio’s awesome-claude-skills collection packages a similar workflow. It works out your product and ideal customer, finds target companies, ranks them by fit, and suggests outreach angles. You copy its folder into ~/.claude/skills/. If you install it, keep your CLAUDE.md rules in place. The skill’s own instructions mention gathering information about decision-makers, and your rules should win.

What can go wrong

  • Directories and listicles fill the list. Search results include “top 10 clinics in Leeds” pages. The search prompt asks Claude to drop them; check anyway.
  • Hallucinated details. A language model can state a plausible fact that isn’t on the page. The “sources” column and your 10-row spot check exist for this. Delete any claim you can’t find.
  • Rate limits or credit warnings. Without an Exa key or Firecrawl sign-in you’ll hit limits sooner. The rules make Claude stop and ask, so you can wait, add a key, or shrink the batch.
  • Sites that block automated reading. Firecrawl may fail on some sites, and some sites forbid it in their terms. Mark them “could not check” and look at them yourself if they matter.
  • Stale information. Websites go out of date. Treat “size_signal” as a hint, not a fact.
  • Bigger bill than expected. Each page read uses tokens and, on Firecrawl, credits. Start with 10 companies, check /usage and your Firecrawl usage, then scale up.

Make it yours

  • Local services: set the profile to one city and add “has a Google Business listing” as a signal for a local-service prospect list.
  • Partner scouting: swap “customer” for “partner” in icp.md (for example, distributors or agencies serving your niche) and score on overlap instead of need.
  • Event prep: feed Claude the public exhibitor list from a trade show and run steps 5 to 7 on just those companies.
  • Monthly refresh: keep the folder, rename last month’s file, and ask Claude to “rerun steps 4-6 and list only companies that are new or whose score changed”.
  • Into your CRM: ask Claude to match your CRM’s import columns in the export, then import the file yourself after your review.

Next steps

Sources

Facts checked against these sources on . Page updated . How we check facts

  1. code.claude.com/docs/en/setup (opens in a new tab)
  2. code.claude.com/docs/en/mcp (opens in a new tab)
  3. code.claude.com/docs/en/desktop-quickstart (opens in a new tab)
  4. code.claude.com/docs/en/costs (opens in a new tab)
  5. support.claude.com/en/articles/11145838-use-claude-code-with-your-pro-or-max-plan (opens in a new tab)
  6. docs.exa.ai/reference/exa-mcp (opens in a new tab)
  7. raw.githubusercontent.com/exa-labs/exa-mcp-server/main/README.md (opens in a new tab)
  8. docs.firecrawl.dev/mcp-server (opens in a new tab)
  9. raw.githubusercontent.com/firecrawl/firecrawl-mcp-server/main/README.md (opens in a new tab)
  10. raw.githubusercontent.com/ComposioHQ/awesome-claude-skills/master/lead-research-assistant/SKILL.md (opens in a new tab)
  11. ftc.gov/business-guidance/resources/can-spam-act-compliance-guide-business (opens in a new tab)
  12. ico.org.uk/for-organisations/direct-marketing-and-privacy-and-electronic-communications/business-to-business-marketing/ (opens in a new tab)
  13. eur-lex.europa.eu/legal-content/EN/TXT/HTML/?uri=CELEX:32016R0679 (opens in a new tab)

Related guides

All guides