Skip to main content

Find local businesses with no website (or a weak one) and verify them — OpenStreetMap discovery plus anti-false-positive website verification, in one MCP server. No API keys needed.

Project description

local-leads-mcp

Find local businesses that need a website — and prove it — from your AI agent.

One MCP server that discovers local businesses via OpenStreetMap and then verifies them with the checks that separate a real lead list from a pile of false positives. Built for freelancers and agencies that use Claude, Cursor or any MCP client for prospecting.

No API keys required for the core workflow: discovery, website verification, email deliverability check and weak-site scoring all run on free, open infrastructure (Overpass, Nominatim, DNS-over-HTTPS, plain HTTP).

Why this and not a maps scraper?

The hard part of local prospecting isn't getting a list of businesses — it's not embarrassing yourself. Lead lists built from raw map data are full of traps this server checks for explicitly:

  • "No website" that isn't. OSM data can be stale; a missing website tag proves nothing. verify_website checks apex and www and redirects (an apex domain that doesn't resolve while the site lives happily on www. is a classic false "no website"), and confirm_no_website uses a web search as the final word.
  • A Facebook page is not a website. Social profiles, booking aggregators (Fresha, TheFork, Treatwell…), directory listings and free subdomains (*.wixsite.com, *.business.site…) are classified as not_own_site, not as "has a website".
  • Emails that bounce. check_mx predicts deliverability before you ever write to a lead (no MX = guaranteed bounce; PEC-only domains are flagged).
  • "The site is bad" needs evidence. score_website returns citable issues (no HTTPS, no mobile viewport, missing title/meta/H1, no sitemap…), not vibes — optionally with Lighthouse scores via the PageSpeed API.

Every verdict ships with the raw checks that produced it, so your agent can show its work.

Quickstart (60 seconds)

{
  "mcpServers": {
    "local-leads": {
      "command": "uvx",
      "args": ["local-leads-mcp"]
    }
  }
}

That's it — no credentials. Then ask your agent things like:

Find 20 restaurants in Turin with no website, verify each one, and give me a CSV of the confirmed ones with a phone number.

Optional environment variables

Variable Enables
BRAVE_API_KEY confirm_no_website via Brave Search API
GOOGLE_CSE_API_KEY + GOOGLE_CSE_CX confirm_no_website via Google Programmable Search
PAGESPEED_API_KEY Lighthouse scores inside score_website

Tools

Discovery (OpenStreetMap — no key)

  • find_businesses(area, category, website_filter, phone_prefix, require_phone, limit) — businesses in a city/district, filtered by website presence. ~35 friendly categories plus any raw OSM key=value tag.
  • list_categories() — the category → OSM tag map.

Verification (no key)

  • verify_website(domain_or_url) — verdicts: live_own_site, not_own_site, domain_exists_no_site, no_website_found; includes per-URL evidence.
  • check_mx(domain) — email deliverability pre-check via DNS-over-HTTPS.

Qualification (no key; PageSpeed optional)

  • score_website(url) — 0–100 weak-site score with named issues + CMS/tech detection (WordPress, Wix, Shopify, …).

Confirmation (needs a search key)

  • confirm_no_website(business_name, city) — the final word on "really no website?", classifying search results into own-site candidates vs listings/socials.

Export

  • export_leads(leads_json, format) — CSV, JSON or Markdown table.

Ethics & fair use

  • Data sources are public: OpenStreetMap (© OSM contributors, ODbL), public DNS, and the businesses' own public pages.
  • OSM requests are rate-limited locally (min 1 s between calls) and carry a descriptive User-Agent, per the Nominatim and Overpass usage policies. For heavy workloads, run your own Overpass instance.
  • This server discovers and verifies — it does not scrape personal emails and it does not send anything. How you contact a business is on you: follow your local rules (GDPR and friends).

License

MIT.


Built by Raffaele Nocera — web consulting for local businesses. If this tool helps you win a client, I'd love to hear about it.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

local_leads_mcp-0.1.0.tar.gz (16.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

local_leads_mcp-0.1.0-py3-none-any.whl (21.8 kB view details)

Uploaded Python 3

File details

Details for the file local_leads_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: local_leads_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 16.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for local_leads_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ecd870deb76516f6dab079b3b8ab3b37f9637e7279f7cd50009a0efb4074fa69
MD5 083deb7005e3010b6d0eb5e29a3a29de
BLAKE2b-256 2044ff02c6b02353a74903a239dff57f02e70912db69e636e9de2743f0be6dfc

See more details on using hashes here.

File details

Details for the file local_leads_mcp-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for local_leads_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1f2cc2eb0b4940bb230750bcd74a6ee0c4fb7b23843e122908cd42ab3695e59f
MD5 61a853979f57850934424b3ee87af184
BLAKE2b-256 e0e4cb24148056f7f370bdbca54d7c9f43718b6782d55f55d0f69dd5f912fdd5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page