MCPOpen source · Small service businesses

The AI front desk for small service shops.

An open-source MCP server that lets Claude, Cursor, or any MCP client run a shop’s front desk: capture leads, score them with a published rubric, log interactions, schedule follow-ups, and report on the pipeline.

Built for: Owners of small service businesses (plumbing, HVAC, roofing, landscaping, trades) and the AI-tooling teams who support them.

Recorded walkthrough of the live Cloudflare Workers playground (fictional Northglass Plumbing dataset).Try the interactive demo ↗
  • 11 · 3 · 2Tools, resources and prompts — stdio on local SQLite or Streamable HTTP on Cloudflare D1
  • 117 tests113 unit/integration + 4 E2E; 99.61% line and 96.88% branch coverage
  • 82.07%Stryker mutation score across the domain scoring and pipeline logic
  • $0 API costNo paid external APIs, no account lock-in, no network calls on the tool path
Problem & solution

Keep the call list out of loose sticky notes.

The problem

Leads scatter while you’re on the job.

When a shop owner is on a job site, leads arrive across voicemails, texts, and web forms. Follow-ups slip, stale quotes sit for weeks, and general-purpose AI chats hallucinate priorities or lose track of dollar amounts.

The fix

The model talks. LeadFlow keeps the books.

The host model handles conversation; LeadFlow owns the books. Every call is Zod-validated, money is stored in integer cents, and scores are computed deterministically from a published rubric—never guessed by an LLM.

Verified capabilities

What the code actually does.

Eleven MCP tools, three resources and two prompts.

Leads with safe writes

create_lead & update_lead with idempotency keys and optimistic locking (expectedUpdatedAt).

Search everything

get_lead & search_leads across name, service, city, email, phone, and notes.

Every touchpoint logged

log_interaction across call, email, SMS, visit, or note.

Follow-ups that surface

schedule_follow_up, set_follow_up_status, and list_due_follow_ups.

Deterministic 0–100 rubric

Source: referral (+22), website (+14), walk-in (+12), phone (+8), other (+3). Reachability: phone (+10), email (+8), unreachable (−12). High urgency (+20); job value up to +16 ($5,000+). Proposal (+16), active ≤2d (+16), quiet >21d (−18). Bands: hot (75+), warm (50+), cool (25+), cold.

Resources, prompts & safety

Resources leadflow://pipeline, leadflow://scoring-model, leadflow://lead/{id}; morning-brief and grounded follow-up prompts; bearer-token guard on /mcp; pipeline_summary and formula-safe export_leads_csv that escapes leading =, +, -, @.

How it works

From voicemail to a ranked call list.

  1. Connect your MCP client

    Run LeadFlow over stdio on local SQLite, or on Cloudflare Workers + D1 over Streamable HTTP behind a bearer token.

  2. Capture and log

    Ask Claude or Cursor to add leads and log calls, emails, SMS, and visits. Every input is Zod-validated.

  3. Score with the rubric

    Each lead gets a deterministic 0–100 score and a hot / warm / cool / cold band from the published model.

  4. Work the morning brief

    Due follow-ups, the pipeline summary, and grounded follow-up drafts — all from the same records.

Honest scope

Portfolio & pilot notes

  • Open-source MIT software (Node.js ≥22.13 with built-in node:sqlite, or Cloudflare Workers + D1).
  • The live demo at leadflow-mcp.kfairley9999.workers.dev uses fictional seed data (Northglass Plumbing). No production customers or live user traffic are claimed.
  • Public /api and /health return metadata only and zero lead records; /mcp requires a bearer token.
FAQ

Questions, answered plainly.

Does an LLM decide which leads are hot?

No. Scores come from a published, deterministic rubric. The model calls the tools; it does not invent the score.

What does it cost to run?

The code is MIT open source and free to self-host. It uses no paid external APIs on the tool path.

Where does my data live?

In local SQLite when you run it over stdio, or in your own Cloudflare D1 database when deployed to Workers.

Is the live demo real customer data?

No. It uses a fictional dataset, Northglass Plumbing, and the public endpoints return zero lead records.

What would a pilot include?

Kevin wires LeadFlow MCP into your shop’s Claude/Cursor desk or your Cloudflare Workers account. Scope is agreed by email first.

Book a pilot

Deploy LeadFlow for your shop or team.

Open-source MIT code is free to self-host. Want Kevin to wire LeadFlow MCP into your shop’s Claude/Cursor desk or Cloudflare Workers account? Send your details below.

  1. 1Send the form — about 30 seconds — or email if you prefer. Kevin reads every one.
  2. 2Kevin reads it and replies personally.
  3. 3We agree scope in writing before any work starts.

Kevin replies within 1 business day. Prefer email? kfairley9999@gmail.com

Book a pilot