← All guides
· 8 min read

Google Maps Leads with Claude Code: Free Local Scraper Guide

Turn a business type and a city into a CSV of phones, emails and websites with a free, local Google Maps scraper and Claude Code. Setup takes about 5 minutes.

Free Google Maps leads with Claude Code

Finding clients by copying businesses out of Google Maps one at a time is slow. Google Maps Scraper Kit does it for you: you name a business type and a city, and you get back a CSV with each business’s name, phone, email, website, category, address, rating and review count.

No API key, no SaaS credits, MIT open source. From the reel.

The setup guide says it takes about 5 minutes, and most of that is Docker downloading the engine. You need a Mac, Windows or Linux computer with Docker Desktop. Claude Code is optional.

What you’re building

Google Maps Scraper Kit is a free, open-source lead-generation tool (MIT license, 1.5k+ GitHub stars). A “lead” here is a business you might sell to, with the contact details you need to reach it.

It runs entirely on your own computer. There’s no Google Maps API key, no per-result credits, and the README says no data leaves your machine. The scraping itself is done by an open-source engine, gosom/google-maps-scraper, which opens Google Maps in a headless browser (a browser with no window) inside Docker. The kit adds the lead layer on top: a one-command setup, a Python script, email and social-profile lookup, a clean CSV, and a Claude Code skill.

"dentists in Denver CO"  →  engine in Docker scrapes Google Maps  →  emails found on each website  →  CSV
What each row can contain. Social profiles need the --socials flag. From the reel.

By default you get 8 columns per business. --socials adds Instagram, Facebook and LinkedIn columns, and --full keeps all of the roughly 34 raw fields the engine captures, including opening hours, coordinates and price range.

Before you start: the honest catch

  • Scraping Google Maps is against Google’s Terms of Service, and the README says so plainly. Phones and emails are personal data, so follow GDPR, CCPA and CAN-SPAM when you contact anyone. Treat the output as leads to check, not a list to resell.
  • One search tops out around 120 listings, because Google Maps stops scrolling there. --grid gets around it (Step 6).
  • You only get an email when a business publishes one. The kit reads each business’s website, then checks its contact and about pages. No website, or no visible email, means an empty cell. The README says to expect emails on a fraction of rows.
  • Google can rate-limit you. Heavy use without proxies can get your IP blocked for minutes to hours. Your Google account isn’t affected. Run one job at a time.
  • On Apple Silicon Macs (M1/M2/M3) the engine runs under emulation, so it works but runs slower.

Step 1: Install Docker Desktop

Docker runs the scraping engine in an isolated container, so you don’t install a browser or scraper on your actual system.

  1. Download Docker Desktop and install it.
  2. Open it and wait until it says it’s running.
  3. Check in your terminal:
docker --version
docker ps

If the first prints a version and the second doesn’t error, Docker is ready.

Step 2: Download the kit

git clone https://github.com/Mahanaicoach/google-maps-scraper-kit.git
cd google-maps-scraper-kit

The kit works with its defaults, so you don’t need to edit any config.

Step 3: Start the engine

docker compose up -d

The first run downloads the engine image, a few hundred MB. Then check it:

curl http://localhost:8080/api/v1/jobs

If it prints [] (an empty list), the engine is live. It also has a web page at http://localhost:8080.

The engine has no password, so the kit binds it to 127.0.0.1, meaning only your own computer can reach it. Don’t change that.

Step 4: Run your first scrape

The Python script needs no extra packages. Give it a search and a city, and it looks up the city’s coordinates for you through OpenStreetMap:

python3 scripts/scrape.py "dentists in Denver CO" --city "Denver, CO" --depth 5

--depth controls how far the scraper scrolls. The kit’s advice is to start at 5 and raise it only when you need more.

The script creates the job, waits for it to finish, finds emails, keeps the 8 lead fields and prints a preview. The full list goes to a file named results-<id>.csv in the same folder. Use --out dentists.csv to pick the name.

On Windows, run it with py instead of python3.

The CSV shape, using the README’s illustrative example rows. From the reel.

How to check it worked: open the CSV in Excel, Numbers or Google Sheets. You should see one business per row, with the emails column filled for some of them.

Step 5: Let Claude Code run it for you

The kit ships a Claude Code skill, which is a set of instructions that teaches the agent the engine’s API, polling, CSV cleanup and the rate-limit rules. Two ways to use it:

Option A is to open the folder in Claude Code. The skill and four slash commands load on their own.

cd google-maps-scraper-kit
claude

Option B is to add the skill to an agent you already use. This works with Claude Code, Codex, Cursor and other Agent Skills tools.

npx skills add mahanaicoach/google-maps-scraper-kit
Installing the skill. From the reel.

Then ask in plain English:

Scrape gyms in Miami and give me phones, emails and websites.

City plus business type, in plain English. From the reel.

The agent checks the engine is running and starts it if not, builds the job, waits for it, downloads the CSV, and hands you a clean table plus the file.

In Claude Code you also get slash commands:

CommandWhat it does
/scrape <business> in <city, ST> [depth]Run one scrape, get a table and CSV
/scrape-batch <keywords-file> [--city "City, ST"]Run many searches as one job
/scrape-setupStart the engine and run a health check
/scrape-jobs [list | delete <id>]List or delete jobs

Step 6: Get more than 120 results

For a whole city, add --grid 3. It splits the city into a 3 x 3 grid of map tiles, runs 9 searches one after another, and removes duplicates:

python3 scripts/scrape.py "dentists in Denver CO" --city "Denver, CO" --grid 3

Tiles run one at a time, so a grid is slower and more likely to hit Google’s rate limit than a single search.

To add social profiles, put --socials on any command. It finds them with plain HTTP requests and pattern matching, so it uses no AI tokens.

Troubleshooting

curl: connection refused on port 8080

The engine isn’t running. Run docker compose up -d, then docker ps and look for gmaps-scraper.

port is already allocated

Something else is using port 8080. Copy .env.example to .env, set SCRAPER_PORT=8081, and run docker compose up -d again. Both scripts read the same file. If you use Claude, tell it the port you picked.

The job is stuck on “working”

Lower --depth, or Google may be throttling your IP. Wait a while, or add proxies for big runs.

The CSV is empty

The search was too narrow or the location was wrong. Try a broader business type or check the city name.

The container won’t start on an Apple Silicon Mac

Open docker-compose.yml, uncomment the platform: linux/amd64 line, and run docker compose up -d again.

What else you can do with it

  • Batch jobs: put one search per line in a text file and run python3 scripts/scrape.py --keywords-file examples/queries.example.txt --city "Denver, CO". One job, one CSV.
  • Proxies: the engine rotates socks5 and http proxies for large or repeated runs. The README shows the format.
  • Recipes: the repo’s guides folder has worked examples for dentists, roofing contractors and restaurants.

Stop the engine when you’re done with docker compose stop. Full setup notes: SETUP.md.

Quick recap

  1. Install Docker Desktop and start it.
  2. Clone the kit and cd into it.
  3. Start the engine with docker compose up -d.
  4. Run python3 scripts/scrape.py "dentists in Denver CO" --city "Denver, CO" --depth 5.
  5. Or open the folder in Claude Code and ask for leads in plain English.
  6. Add --grid 3 for a whole city and --socials for social profiles.
  7. Check every lead before you contact it, and follow the data laws where you sell.