cleanleads
v0.1.3
Published
CleanLeads CLI and MCP server — B2B lead search, people search, email/phone validation and enrichment from the command line or any AI agent.
Maintainers
Readme
cleanleads
CleanLeads CLI and MCP server. Search businesses, find decision-makers, validate and enrich emails/phones, and manage your saved lists — from the terminal or from any AI agent (Claude, ChatGPT, Cursor, etc.) over Model Context Protocol.
Install
npm install -g cleanleadsOr run one-off with npx:
npx cleanleads --helpSetup
- Get an API key from your CleanLeads account (Account → API Key), or provision one:
cleanleads register --invite <invite-code> --email [email protected] --password <12+ chars>- Log in:
cleanleads loginThis prints an 8-character code and opens your browser. Enter the code on the authorization page and the CLI receives its own dedicated API key — existing keys and integrations are never touched. Revoke a device's key anytime from Settings → Security. Prefer to paste a key instead?
cleanleads login --key cl_your_key_hereConfig is stored in ~/.cleanleads/config.json. Environment variables
CLEANLEADS_API_KEY and CLEANLEADS_BASE_URL override it.
Examples
# Account + credits
cleanleads account
cleanleads credits 20
# Find MSPs in Austin, save as a list
cleanleads search-businesses "managed service providers" "Austin, TX" --limit 10
cleanleads search-businesses dentists "Austin, TX" --save "Austin Dentists"
# Decision makers by criteria (charged per person found)
cleanleads search-people --preset decision-makers --industry msp --location "Charlotte, NC" --limit 5
# People at a known company
cleanleads find-people acme.com --departments executive,sales --limit 5
# Emails
cleanleads domain-emails acme.com
cleanleads find-email Jane Doe acme.com
cleanleads linkedin-email https://www.linkedin.com/in/janedoe
# Enrichment
cleanleads enrich --first Jane --last Doe --company Acme --website acme.com
cleanleads enrich --premium --first Jane --last Doe --company Acme # adds phone lookup
# Validation
cleanleads validate email [email protected]
cleanleads validate phone "+1 512 555 0100"
# Saved data
cleanleads lists
cleanleads contacts --has-email --status ENRICHED --limit 20Use with AI agents (MCP)
Hosted remote MCP (recommended)
Point any MCP-compatible client at:
- URL:
https://www.cleanleadsai.com/api/mcp - Header:
X-API-Key: cl_your_key_here
Local stdio MCP via this CLI
Add to your client's MCP config (e.g. Claude Desktop claude_desktop_config.json):
{
"mcpServers": {
"cleanleads": {
"command": "npx",
"args": ["-y", "cleanleads", "mcp"],
"env": { "CLEANLEADS_API_KEY": "cl_your_key_here" }
}
}
}The stdio bridge exposes the same tools as the hosted server; every call is billed to the authenticated account's credits.
Billing notes
- Business/local search is free.
- Email finds, enrichment, and people search consume credits per record.
- Explore with small limits (
--limit 5) before scaling up.
Docs
Live tool catalogue: GET https://www.cleanleadsai.com/api/tools
