google-maps-scraper-kit: Command for Claude Code

.claude/commands/scrape.md

scrape is a command for Claude Code from Mahanaicoach/google-maps-scraper-kit. It costs 26 tokens per session (898 once invoked), scanned A, original, MIT.

A command for searching Google Maps business listings using a query and a city. It uses the Google Maps scraper skill to perform the search.

In plain words
What is it for?
Use it to find businesses matching a term in a specific city.
Why use it?
It turns a business-search request into a repeatable scraping job instead of requiring manual collection.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

This is Mahanaicoach/google-maps-scraper-kit's own configuration. It tells Claude Code how to work on google-maps-scraper-kit itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything google-maps-scraper-kit configures →

About the project

Google Maps Scraper Kit is a local tool that collects business listings from Google Maps and saves selected contact and business details as CSV files. It is for lead generation and can be operated through Claude Code, with optional website email and social-profile collection.

Mahanaicoach/google-maps-scraper-kit · 1,942 stars · on GitHub · skills.sh

Reuse

Borrowing it

Nothing to install: this file belongs to Mahanaicoach/google-maps-scraper-kit. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Mahanaicoach/google-maps-scraper-kit/master/.claude/commands/scrape.md
Clone the repo
git clone --depth 1 https://github.com/Mahanaicoach/google-maps-scraper-kit

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for scrape

README.md
[![agentmods](https://agentmods.dev/badge/commands/mahanaicoach/google-maps-scraper-kit/scrape/github.svg)](https://agentmods.dev/commands/mahanaicoach/google-maps-scraper-kit/scrape)
Your own site
<a href="https://agentmods.dev/commands/mahanaicoach/google-maps-scraper-kit/scrape"><img src="https://agentmods.dev/badge/commands/mahanaicoach/google-maps-scraper-kit/scrape/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for scrape

Your own site · 80×15
<a href="https://agentmods.dev/commands/mahanaicoach/google-maps-scraper-kit/scrape"><img src="https://agentmods.dev/badge/commands/mahanaicoach/google-maps-scraper-kit/scrape.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 898 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00026 $0.00898
Opus 5.5 $0.00010 $0.00359
Sonnet 5.5 $0.00005 $0.00180
Haiku 4.5 $0.00003 $0.00090

Measured 13d ago against content hash 29146c6a0127, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

scrape scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 13d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

1. **Check the engine:** `curl -s http://localhost:8080/api/v1/jobs`. If it is down, run `docker compose up -d` from the kit root, wait ~10s, and retry.
.claude/commands/scrape.md · 26 lines

What it actually says

The user wants a Google Maps lead list. Query: $ARGUMENTS

Use the google-maps-scraper skill and follow these steps:

  1. Check the engine: curl -s http://localhost:8080/api/v1/jobs. If it is down, run docker compose up -d from the kit root, wait ~10s, and retry.
  2. Parse the business type and city from the query. Look up the city's latitude/longitude (as strings).
  3. Ask about social profiles before scraping, every time. Ask the user ONE short question: "Want me to also grab their social profiles (Instagram / Facebook / LinkedIn)? Emails are already included by default. (yes / no)" Wait for the answer. Skip the question only if the user already said yes or no to socials in the request. If yes, add --socials in step 4. If no, leave it off. Socials cost no LLM tokens and one extra HTTP fetch per site (see the skill).
  4. Create the job with email extraction on ("email": true in the body; emails are the most valuable lead field). Required fields: keywords (location baked into each term), lat/lon (strings), max_time (seconds, default 300), depth (the number in the query, else 5). Easiest path: python3 scripts/scrape.py "<keyword>" --city "<City, ST>" --depth <n> (emails are already on by default; append --socials if the user said yes in step 3).
  5. Poll to completion in the background. The Bash tool blocks foreground sleep, so use run_in_background: true and read the output file when notified. Then download the CSV.
  6. Save a CSV file. scripts/scrape.py writes results-<id>.csv by default. If you use the raw API, save the parsed lead fields to a .csv yourself. Then present only the 8 lead fields in a clean markdown table: name (title), phone, emails, website, category, address, review_rating, review_count, plus instagram, facebook, linkedin if socials were requested. Drop everything else, especially latitude/longitude, IDs, hours, images and review blobs. Never dump the full 34-column CSV into chat. Show a few sample rows and give the CSV path. Include dropped fields only if the user explicitly asks.

All, every or entire city: add --grid 3 (3 x 3 map tiles, one job at a time, deduped) to get past Google's ~120 results per search. Warn once that it is slower and more likely to trip rate limits, then proceed.

Emails: on by default. The engine visits each business website to find them, which is a little slower. Some businesses publish no email, so coverage is partial. For a deliberately fast run without emails, pass --no-email.

Socials: when the user says yes, scripts/scrape.py … --socials adds Instagram, Facebook and LinkedIn. Extraction costs 0 LLM tokens because it runs in code. It adds ~40–50 tokens per business only if you load the rows into chat. Never WebFetch each website yourself to find socials; that costs thousands of tokens.

Warn, don't block: if the request is high-volume (high depth, many keywords or repeated runs), print ONE short warning that heavy use can get the user's IP temporarily rate-limited by Google, and suggest proxies. Then proceed with the scrape. Do not gate or demand confirmation for a big job. Refuse outright only for clearly abusive use (surveilling individuals, spam, harassment). If the user will store or contact the data, remind them once that it is personal data and that scraping is against Google's Terms of Service.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 13d ago Changed · -2 lines · +3 tokens per session 29146c6a0127
  2. 1mo ago First seen · 28 lines · 23 tokens per session scan A a7e277423f70

Subscribe to this mod's changes

scrape is a command published in the GitHub repository Mahanaicoach/google-maps-scraper-kit (1,942 stars, last pushed 14d ago), licensed MIT. It adds 26 tokens to every session and 898 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.