placegraph
Builds a Google Maps knowledge graph of businesses in an area from 'People also search for' panels, enabling competitor discovery, territory lead generation, site selection, review-response tracking, place filtering, alternatives lookup, entity matching, and graph export.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@placegraph Which coffee shops in Austin do customers compare, and how do they cluster?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
placegraph-mcp
An MCP server that turns Google Maps into a knowledge graph of the businesses in an area: who customers compare, which leads trail their competitors, how busy a trade area is, who answers their reviews, and how Maps places join to your own records.
The edges come from Google's own "People also search for" panel, the list of places Google shows next to a business because people look at them together. Keyword search and star ratings can't tell you that two businesses are substitutes. This list can.
One run gives you a map of who your real competitors are, according to Google itself.
Data comes from the Google Maps Full Suite actor on Apify. It runs on your Apify account and you pay per result (see Costs). The server itself is free and open source.
What you can ask
Use case | Ask your assistant | Tools |
Competitive knowledge graph | "Which coffee shops in Austin do customers actually compare, and how do they cluster?" |
|
Territory leads with competitor context | "Find every dentist within 10 km of downtown Austin and show me the ones that trail their competitors." |
|
Footfall-aware site selection | "Should our new gym go on South Lamar or West Anderson Lane?" |
|
Review response tracking | "Which of these 12 locations aren't replying to bad reviews?" |
|
Graph-backed recommendations | "Best dentist open after 7 pm near downtown, and what else people consider" |
|
Entity resolution | "Match these CRM accounts to their Google Maps listings" |
|
Worked examples: one per use case, run from a plain prompt in Claude Code, with the tools it picked, its answer and the Apify cost ($0 to $0.47 each).
Example: Austin coffee shops (December 2026)
30 coffee shops, up to 24 "people also search for" places each: 209 places, 491 edges, 8 communities (modularity 0.50).
Category anchors, the places listed in the most panels: Houndstooth Coffee (11), Palomino Coffee, Radio Coffee & Beer, CaPhe.in (10 each), Proud Mary, Flightpath, Epoch (9 each).
Communities: a specialty/third-wave cluster (Houndstooth, Epoch, Proud Mary, Radio), an "iconic South Congress" cluster (Mozart's, Jo's, Bouldin Creek), and neighbourhood groups. Google never labels them; the graph shows them.
7 of the 30 shops had no panel at all. Not every place has one.
Example: Austin dentists
A grid search (2 km cells, 10 km radius, 25 cells) found 411 unique places inside the circle (362 of them dental), where a single Google Maps search stops at about 120. Of the 190 dental practices with 50+ reviews, 13 are rated below 4.5. enrich_leads compares each of them with the places Google lists next to it. For example, a 4.5-star practice whose competitors have a median of 4.9 gets a high outreach score.
Related MCP server: Google Maps MCP Server
Install
You need an Apify API token. A free Apify account includes monthly credit.
Claude Code
claude mcp add placegraph -e APIFY_TOKEN=apify_api_... -- npx -y github:0xlearner/placegraph-mcpClaude Desktop, Cursor, VS Code (mcpServers config):
{
"mcpServers": {
"placegraph": {
"command": "npx",
"args": ["-y", "github:0xlearner/placegraph-mcp"],
"env": { "APIFY_TOKEN": "apify_api_..." }
}
}
}Tip: create a token in Apify that is limited to running this actor and reading its datasets.
Not on npm yet: npx builds it from GitHub on first use (Node 20+). Or clone it, npm install, and point the config at node /path/to/placegraph-mcp/dist/stdio.js.
Tools
Tool | What it does | Starts runs |
| Search a category in an area. The result is a graph of the places listed under "People also search for", with its anchors (in-degree) and communities (Louvain). | yes |
| Grid search past the ~120-per-search cap. Returns a summary, the lowest-rated leads and join-key coverage. | yes |
| Adds each lead's competitors from a territory job and scores the lead: rating gap, review share, outreach score. | yes |
| For each candidate address: nearby competitors, distance, rating, popular times (hourly busyness), a saturation index, and competitors shared between candidates. | yes |
| Walking, driving or cycling time from each candidate to its nearest competitors. | yes |
| Reply rate, reply rate on low ratings, response-time buckets, and unanswered low-rated reviews. | yes |
| A job's status. Once its runs finish, the job's analysis. | no |
| Filter a job's places: text, category, rating, reviews, website/phone, open at a time of day, distance. | no |
| A place's neighbours in the graph (1-2 hops): what customers consider instead. | no |
| Match your records to a job's places on place id, phone, website domain, street address and name. A shared phone or domain is reported as ambiguous instead of guessed. | no |
| Export the graph as | no |
Jobs. Collecting data takes minutes. A tool that starts runs waits up to wait_s seconds (default 45). If the runs aren't done by then, it returns a job_id, and job_status(job_id) returns the result once they finish. Job ids are self-contained: they work in a later conversation too, for as long as Apify keeps the run's data (your Apify plan's data retention).
Costs
Every tool that starts runs shows its estimate first and refuses to start above max_cost_usd (default $5). Each run is also capped at its estimate on Apify's side. Measured in December 2026 unless marked:
Task | Time | Cost |
Competitor graph: 30 places, up to 24 competitors each | ~10 min | ~$1.60 |
Competitor graph: 30 places, 10 competitors each (default) | — | up to ~$1.00 (estimate) |
Grid: 411 places in 10 km, 25 cells | ~11 min | ~$0.90 |
Grid: 56 places in 3 km around downtown, 8 cells | ~4 min | ~$0.16 |
Enrich 20 leads, 10 competitors each | ~5 min | ~$0.48 |
Site selection, per candidate (nearby + wider search, popular times) | ~3-5 min | ~$0.14-0.17 |
Walking time, per route | ~10 s | ~$0.006 |
Review responses: 5 locations x 100 reviews | ~1 min | ~$0.26 |
find_places, alternatives, match_entities and export_graph cost nothing: they reuse a finished job's data.
Load the graph into Neo4j
export_graph(job_id, format: "cypher")Paste the output into Neo4j Browser (AuraDB Free works), then:
MATCH (a:Place)-[r:PEOPLE_ALSO_SEARCH]->(b:Place) RETURN a, r, bColour the nodes by community and size them by listed_by.
Good to know
"People also search for" isn't shown for every place. Typically 20-30% have none on a given day, and Google varies the list from day to day. A graph is a snapshot.
Off-category places. Panels sometimes list places of other kinds, such as a bar next to a coffee shop or an office next to a dentist. These are left out of the analysis unless you pass
include_off_category.Popular times exist for roughly two in three established businesses, and not for new ones. Site selection reports the coverage for each candidate.
Response times are approximate. Google gives a review's date exactly, but the owner's reply only as "3 weeks ago". Latency is therefore reported in buckets (same day, within a week, within a month, later), and as
uncertainwhen it can't be pinned to one.Other cities' branches. A chain's panel can list its branches elsewhere. Entries more than 50 km from the place listing them are left out of the graph (
pas_far_droppedcounts them).Vacation rentals that show up in nearby searches (e.g. "Studio with gym and pool") are dropped from site selection.
The data is what Google Maps shows publicly. You're responsible for using it in line with applicable laws and Google's terms.
Development
npm install
npm test # offline: fixtures from real runs, reviewer data removed
npm run build
APIFY_TOKEN=... node scripts/live-smoke.mjs # live, small runs (~$0.30)License
Apache-2.0
Available Tools
11 toolsalternativesAlternatives to a place (graph neighbours)ARead-onlyIdempotent
Places connected to one place along 'People also search for' edges in a finished competitor_graph or enrich_leads job: the places customers consider instead. hops=2 widens the circle. Free.
Inputs: job_id (required), place_id (required), hops, limit.
competitor_graphCompetitor knowledge graphA
Search a category in an area and build the graph of places Google shows under 'People also search for' next to each result. Returns the category anchors (places most often listed: the ones customers compare) and communities (brand neighbourhoods). Slow (5-15 min) and the costliest tool: about $0.002 per place + $0.003 per competitor entry.
Inputs: query (required), location (required), wait_s, language, +4 more.
enrich_leadsEnrich leads with their competitorsA
For leads picked from a finished territory_leads job, read who Google lists under 'People also search for' and score each lead against those competitors (rating gap, review share). 'lowest_rated' (default) finds places trailing their competitors. About $0.03 per lead with 10 competitors.
Inputs: job_id (required), pick, top_n, wait_s, +5 more.
export_graphExport the PAS graphARead-onlyIdempotent
Export a finished competitor_graph or enrich_leads job's graph: json (nodes/edges), graphml (Gephi, yEd), cypher (paste into Neo4j Browser or cypher-shell), mermaid (small graphs). Nodes carry their community (same ids as competitor_graph). focus_place_id exports one place's neighbourhood only, e.g. a mermaid diagram of a shop and its competitors. Free.
Inputs: format (required), job_id (required), focus_hops, focus_place_id, +1 more.
find_placesFind places in a job's dataARead-onlyIdempotent
Filter the places a finished job collected: text, category, rating, reviews, website/phone, open at a time of day, distance from a point. Free (no new runs). Use it to answer questions like 'late-night dentists near downtown', then alternatives() for similar places.
Inputs: job_id (required), near, sort, text, +9 more.
job_statusJob status and resultsARead-onlyIdempotent
Status of a job; when its runs have finished, the job's analysis. Waits up to wait_s seconds for running jobs.
Inputs: job_id (required), wait_s.
match_entitiesMatch CRM rows to placesARead-onlyIdempotent
Join your own records (CRM, registry) to the places a finished job collected, on place id, phone, website domain, street address and name. Shared phones/domains (practices, chains) are flagged as ambiguous instead of guessed. Free.
Inputs: rows (required), job_id (required).
review_responsesReview response trackingA
Who answers their customers: for a list of places (Maps URLs, place ids or 'name + city'), or a search, read the newest reviews and report reply rate, reply rate on low ratings, response-time buckets, and the lowest-rated unanswered reviews to escalate. About $0.05 per location at 100 reviews.
Inputs: query, places, wait_s, language, +5 more.
site_selectionSite selection with busyness dataA
Compare candidate locations for a new business: for each candidate address, the nearby competitors of that kind, their distance, rating, and Google popular times (hourly busyness 0-100, typical visit length). Returns competitor counts by radius, a saturation index, busiest slots and competitors shared between candidates. About $0.17 per candidate, 3-5 min.
Inputs: category (required), candidates (required), wider, wait_s, +4 more.
territory_leadsTerritory leads (grid search)A
Every business of a kind in an area: the area is split into a grid so results go past Google's ~120-per-search cap, deduplicated by place id; only places inside the radius are kept and charged. max_places counts those, so it caps cost. Returns a summary (categories, ratings, contact coverage), the lowest-rated leads and join-key coverage. Then enrich_leads adds each lead's competitors. Takes 5-15 min for ~25 cells.
Inputs: query (required), location (required), wait_s, cell_km, +5 more.
walk_timesWalking times to nearest competitorsA
For a finished site_selection job: walking (or driving/cycling) times from each candidate to its nearest competitors, one route per pair. About $0.006 per route.
Inputs: job_id (required), wait_s, nearest, travel_mode, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 11 tools
Most tools are cleanly separated by resource and stage: build a graph (competitor_graph), enumerate an area (territory_leads), score leads (enrich_leads), compare sites (site_selection), and read finished results (find_places, alternatives, export_graph, match_entities). The main soft spot is the cluster of graph-related tools (competitor_graph vs territory_leads vs enrich_leads vs alternatives), where an agent must read carefully to know which produces which artifact, but the descriptions do resolve it.
Everything is snake_case and readable, but there is no predictable verb pattern: some names are verb_noun (export_graph, enrich_leads, find_places, match_entities), others are bare noun phrases naming the artifact or job type (competitor_graph, territory_leads, site_selection, walk_times, review_responses, job_status, alternatives). An agent cannot infer from a name alone whether a tool starts a job, reads results, or exports.
Eleven tools is well within the sweet spot and each one maps to a distinct stage of the pipeline (discover, enrich, compare, export, join, filter). No obvious filler or redundancy in the count itself.
The competitive-analysis lifecycle is largely covered: discovery, enrichment, site comparison, routing, review auditing, export, and CRM matching. The notable gap is job lifecycle management — job_status requires an id but there is no list_jobs or cancel/delete job tool, which is a dead end for agents that lose track of a job id or need to stop a costly 5-15 minute run.
Maintenance
Related MCP Connectors
Real-time Google Maps local business leads, reviews, places & emails MCP. OAuth or API key.
Find and enrich local businesses from Google Maps with owners, emails, phones, websites, and more.
Real-time Google Maps local business places, reviews, geocoding & contact emails MCP ($0.20/1K).
B2B lead generation from Google Maps: search, dedupe and email-enrich businesses. Needs API key.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to search and scrape Google Maps places data (name, rating, address, etc.) directly without an API key.1-
- AlicenseAqualityCmaintenanceProvides AI agents with structured search results, place details, ratings, and contact info from Google Maps without requiring any API keys.21MIT
- AlicenseAqualityDmaintenanceEnables AI assistants to search places, retrieve place details, reviews, photos, business posts, and contributor review histories from Google Maps through natural language, with no API keys or paid billing required.6MIT
- AlicenseNot gradedqualityCmaintenanceConnects a Google Business Profile to AI assistants like Claude, ChatGPT, Cursor, and Claude Code so users can query local search and Maps performance, track keywords, and monitor reviews through natural language. It also supports write actions for replying to reviews, publishing local posts, and managing photos and menus, with per-account read-only or read-and-write controls.5MIT