by gosom
Open-source Google Maps scraper for business listings. Export phone numbers, websites, ratings, and reviews to CSV or JSONL. Run it locally with the CLI, web UI, or REST API, or connect your AI agent through the built-in MCP server.
# Add to your Claude Code skills
git clone https://github.com/gosom/google-maps-scraperGuides for using ai agents skills like google-maps-scraper.
google-maps-scraper is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by gosom. Open-source Google Maps scraper for business listings. Export phone numbers, websites, ratings, and reviews to CSV or JSONL. Run it locally with the CLI, web UI, or REST API, or connect your AI agent through the built-in MCP server. It has 8,550 GitHub stars.
google-maps-scraper's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/gosom/google-maps-scraper" and add it to your Claude Code skills directory (see the Installation section above).
google-maps-scraper is primarily written in Go. It is open-source under gosom on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh google-maps-scraper against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
Turn Google Maps searches into business data you can use.
Get names, phone numbers, websites, ratings, hours, and locations in CSV or JSON. Add website email extraction and reviews when you need more detail.
Run locally with the CLI, Web UI, REST API, or directly from an AI agent. Free and open source under the MIT license. No Google Maps API key required.
Agent-ready with a local MCP server and an agent skill. Ask Codex or Claude Code to find businesses by city, show a few listed contacts in chat, and save the full list as a CSV. The client starts the scraper itself, so you can leave the Web UI closed. Set up MCP · Get the skill
In Codex or Claude Code, connect Google Maps Scraper once with the setup prompt. Then paste this into chat.
Find up to 10 cafés within 2 km of central Athens, Greece. Show me three with their addresses and ratings, and give me the full CSV.
The agent shows up to three cafés in chat and links a local CSV with every result from the search. You can use MCP on its own. The optional agent skill also supports CLI and Docker. More prompts to copy · Install the skill
With Docker installed, paste these commands into a terminal on macOS, Linux, or Windows with WSL. Change cafes in Athens, Greece to your own search.
mkdir -p gmaps-output
printf '%s\n' 'cafes in Athens, Greece' > gmaps-queries.txt
docker run --rm \
-v gmaps-playwright-cache:/opt \
-v "$PWD/gmaps-queries.txt:/queries.txt:ro" \
-v "$PWD/gmaps-output:/out" \
gosom/google-maps-scraper \
-input /queries.txt \
-results /out/results.csv \
-depth 1 \
-exit-on-inactivity 3m
Open gmaps-output/results.csv in your spreadsheet app. The first run downloads the image and browser files. The command exits after three minutes without activity.
Add -email to collect emails from business websites. For JSON Lines output (one business per line), replace -results /out/results.csv with -json -results /out/results.jsonl. The file will be saved as gmaps-output/results.jsonl.
Email extraction checks the listed website page first. If it finds no usable email, it follows up to three same-site contact/about links from that page, prioritizing contact pages and stopping at the first page with usable emails. Each email page has a 10-second fetch timeout and a 2 MiB response limit. Failed pages do not discard the business result.
Email pages use HTTP fetching without executing website scripts or loading subresources. Requests are restricted to public IP addresses, and contact-page redirects must stay on the same site. Configured HTTP/HTTPS and SOCKS5 proxies are supported; HTTP/HTTPS proxies must allow CONNECT tunnels to website ports (usually 80 and 443). Sites that require JavaScript to expose their email may return no email.
No Docker? Download a release binary and follow the binary instructions. No Go installation is needed.
With Docker installed:
mkdir -p gmapsdata
docker run --rm \
-v gmaps-playwright-cache:/opt \
-v "$PWD/gmapsdata:/gmapsdata" \
-p 8080:8080 \
gosom/google-maps-scraper \
-data-folder /gmapsdata
Open http://localhost:8080, create a job, and download its results. Your jobs are saved in gmapsdata.
The server runs locally over stdio. City names resolve locally and the default search covers a grid around the city center. Results stay on your machine as CSV and JSONL. The agent can show three rows, share the whole file, or reconnect to a running job.
Paste this into Codex or Claude Code. If you are trying an unreleased branch, open the client in that checkout first. For manual setup, use the Codex CLI or Claude Code commands below.
Set up Google Maps Scraper for this client. Use the current checkout if available,
or clone https://github.com/gosom/google-maps-scraper.
Follow the manual setup steps in the README and install the skill from the same checkout.
Verify the connection. If I need a new session, tell me how to open it.
Give me the Athens café prompt to paste when setup is complete.
On macOS, Linux, or WSL, build from a checkout that contains this MCP section. Run these commands from the repository root with Go installed.
gmaps_bin="$HOME/.local/bin/google-maps-scraper-mcp"
mkdir -p "$(dirname "$gmaps_bin")"
go build -o "$gmaps_bin" .
"$gmaps_bin" -mcp -help
If you already have a release binary, set gmaps_bin to its absolute path and run the same help check. A compatible binary prints Usage of -mcp: and lists -data-folder. If your release predates MCP, build from the checkout.
For detailed mode, install the browser runtime once. Fast mode and website email lookup work without this step.
PLAYWRIGHT_INSTALL_ONLY=1 "$gmaps_bin"
Run the block for your client in the same terminal. Both clients launch the binary over stdio.
codex mcp add google-maps-scraper -- "$gmaps_bin" -mcp
codex mcp list
codex
claude mcp add --transport stdio --scope user google-maps-scraper -- "$gmaps_bin" -mcp
claude mcp list
claude
Claude Code's user scope makes the server available across your local projects. Codex MCP documentation · Claude Code MCP documentation
In the new session, enter /mcp and look for google-maps-scraper. Then paste this into chat.
Find up to 10 cafés within 2 km of central Athens, Greece. Show me three with their addresses and ratings, and give me the full CSV.
Look for a start_scrape call. The agent should report how many cafés it found and link the finished CSV. A search can return fewer than 10. If the job stops early, the agent should tell you and label any saved results as partial.
See more of the same results
Show me the next three cafés from that Athens search, with their addresses and ratings.
Get the file in a new chat
Find my most recent café search in Athens, Greece, and give me its CSV when it’s finished.
Start a search with website emails
Find up to 10 cafés in Athens, Greece. Check their websites for public email addresses and give me the CSV.
Start a search in the background
Start a background search for up to 30 cafés in Athens, Greece. Give me the job ID so I can check back later.
Stop the running search
Stop my running Athens café search and give me the results collected so far.
The default search uses fast mode, including for email lookups. Ask for review text to open individual listings in detailed mode.
For clients that accept an mcpServers JSON object, use the absolute path to the same binary.
{
"mcpServers": {
"google-maps-scraper": {
"command": "/path/to/google-maps-scraper",
"args": ["-mcp"]
}
}
}
The city grid covers an approximate area and spreads the result limit across its cells. Ask for a nearby search or specify a radius for a centered search.