Lessie — People Search & Enrichment
Setup
Lessie supports two modes: CLI (default, recommended) and MCP Server.
Mode A: CLI (default)
Install the Lessie CLI binary:
npm install -g @lessie/cli
Or use without installing:
npx @lessie/cli --version
First-time authorization:
lessie auth
This opens a browser for login/registration. Token is cached at ~/.lessie/oauth.json.
Verify connection:
lessie status
Mode B: MCP Server
Add to your MCP config (Claude Code ~/.claude.json, Cursor ~/.cursor/mcp.json, Codex ~/.codex/config.toml, etc.):
{
"mcpServers": {
"lessie": {
"command": "npx",
"args": ["-y", "@lessie/mcp-server"],
"env": {
"LESSIE_REMOTE_MCP_URL": "https://app.lessie.ai/mcp-server/mcp"
}
}
}
}
Uninstall
- CLI:
npm uninstall -g @lessie/cli && rm -rf ~/.lessie/ - MCP: Remove the
"lessie"entry from your.jsonandrm -rf ~/.lessie/
Version check
Run these checks once at the start of each session, before mode detection. Both checks are non-blocking — if any command fails (network error, timeout), skip silently and proceed.
Skill version
- Read current local version from this file's metadata
versionfield above. - Fetch remote version:
curl -sf --max-time 5 https://raw.githubusercontent.com/LessieAI/lessie-skill/main/people-search/SKILL.md | head -5 | grep 'version:' | head -1 | awk '{print $2}' - If the remote version is newer than the local version → tell the user:
⬆️ A newer version of people-search skill is available ({local} → {remote}). Run this command to update:
npx skills add LessieAI/lessie-skill -y -g - If versions match or check fails → skip, say nothing.
CLI version
- Get local CLI version:
lessie --version 2>/dev/null || npx @lessie/cli --version 2>/dev/null - Get latest published version:
npm view @lessie/cli version 2>/dev/null - If the remote version is newer → tell the user:
⬆️ A newer version of Lessie CLI is available ({local} → {remote}). Run this command to update:
npm install -g @lessie/cli - If versions match or either command fails → skip, say nothing.
Quick start
After setup, try saying to Claude:
- "Find Engineering Managers at Stripe in San Francisco"
- "Look up Sam Altman's contact info"
- "Research OpenAI — recent news and open job postings"
Mode detection
Determine which mode to use at the start of each session:
- Check if
lessieCLI is available: runlessie status - If the command succeeds → use CLI mode (call tools via Bash)
- If the command fails (not found) → attempt auto-install:
npm install -g @lessie/cli - After install, run
lessie statusagain to verify - If install succeeds → use CLI mode
- If install fails (no npm, permission denied, network error, etc.) → check if MCP tools are available (
authorize,use_lessie) - If MCP tools are available → use MCP mode
- If neither → inform the user that installation failed and suggest manual install or MCP setup
Credits & Pricing
Lessie is a credit-based service.
New accounts receive free trial credits. View your balance and purchase more at https://lessie.ai/pricing.
The agent will disambiguate company names before searching to avoid wasting credits on wrong results.
Data & Privacy
- Data sources: Contact and company information is aggregated from publicly available sources (business directories, social profiles, corporate websites).
- Query logging: Search queries are logged for service improvement and abuse prevention. No query data is shared with third parties.
- Data compliance: Lessie follows applicable data protection regulations. Users are responsible for using retrieved contact data in compliance with local laws (GDPR, CAN-SPAM, etc.).
- Privacy policy: https://lessie.ai/privacy
- Terms of service: https://lessie.ai/terms-of-service
Authorization
CLI mode
- Run
lessie statusto check token validity. - If
authorized: false→ runlessie authto open browser for login. - After the user completes login, run
lessie statusagain to confirm.
MCP mode
- Call
authorizeto check connection status. - If already authorized → proceed to use tools directly.
- If not authorized →
authorizereturns an authorization URL. Tell the user you need to open a browser for Lessie login/registration, and open it using the appropriate system command:- macOS:
open "<url>" - Linux:
xdg-open "<url>" - Windows:
start "<url>"
- macOS:
- Tell the user the browser has been opened and they need to complete login/registration.
- After the user confirms, call
authorizeagain to verify the connection. - If authorization fails (timeout, denied, port conflict), follow the diagnostic hints returned by
authorizeand retry.
Always inform the user before opening the browser — never silently redirect.
Agent behavior rules
CRITICAL: Confirm before every credit-consuming action
Every Lessie tool call costs credits. Credit costs per tool:
| Tool | Cost |
|---|---|
find-people | 20 credits per search |
enrich-people | 1 credit × number of people (only charged for successful matches) |
review-people | 1 credit × number of people |
enrich-org | 1 credit |
find-orgs | 1 credit |
job-postings | 1 credit |
company-news | 1 credit |
web-search | 1 credit |
web-fetch | 1 credit |
unlock_emails | 3 credits per newly unlocked person (current rate; check price_per_unlock in the response for the live value). Already-unlocked persons (across any of your prior searches) are free. Failed lookups not charged |
unlock_email_by_handle | 3 credits per successful unlock (current rate; check price_per_unlock in the response for the live value). not_found and failed are free. Not idempotent — re-running on the same handle re-charges |
Before executing any command, you MUST:
- Tell the user what you are about to do and the estimated cost (e.g., "I'll enrich 3 people — this costs ~3 credits").
- Wait for explicit confirmation before executing.
- Never batch multiple credit-consuming calls without confirming the full plan first.
Exception — skip confirmation if the user has explicitly said they don't want to be prompted (e.g., "don't ask me every time", "just do it", "skip confirmations"). In that case, proceed directly but still log what you executed and the credits spent after each call.
CRITICAL: Report credit usage after every call
After each conversation turn that involved one or more Lessie tool calls, append a one-line summary of credits consumed. Format:
Used
<tool-name>, cost <N> credit(s).
If multiple tools were called in the same turn, combine them:
Used
web-search+enrich-org, cost 2 credits total.
CRITICAL: Read references before first CLI call
Before executing any lessie CLI command for the first time in a session, you MUST read references/cli-reference.md to learn the exact parameter syntax. Each tool has its own flag set — find-people takes --query (NL), enrich-people takes --people (JSON), unlock-emails takes --search-id + --person-ids, etc. Don't guess — read the section for the tool you're about to call.
Search mode disambiguation (B2B vs KOL)
Lessie supports two search modes with different data sources and result types:
- B2B mode: Searches professional databases (LinkedIn-based). Best for finding people by job title, company, seniority, or industry. Returns work email, phone, employment history.
- KOL mode: Searches social media platforms (Instagram, YouTube, TikTok, Twitter/X). Best for finding influencers, content creators, or public figures by audience, follower count, or content topi