About mapsdata
mapsdata is a local bridge for accessing Google Maps place and reviewer data through HasData. It provides read-only search and detail tools as an MCP server and CLI.
Key features
- 01Search places by keyword or coordinates
- 02Retrieve place details, hours, and ratings
- 03Browse reviews, photos, and posts
- 04List reviews by Local Guide
- 05Use tools through CLI or MCP
Use cases
- 01Find businesses near a location
- 02Check a venue’s ratings and opening hours
- 03Review customer feedback and place photos
- 04Examine a Local Guide’s review history
MCP support
Exposes six read-only Google Maps tools to MCP clients and forwards calls to the hosted HasData MCP server. It also supports CLI invocation.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
Tools
6Saved tool list · updated 2d ago
| Parameter | Type | Required | Description |
|---|---|---|---|
| gl | string | No | The two-letter country code for the country you want to limit the search to. Provide one exact documented value (245 allowed), e.g. `ac`, `af`. |
| hl | string | No | The two-letter language code for the language you want to use for the search. Provide one exact documented value (159 allowed), e.g. `af`, `ak`. |
| num | number | No | Number of results per page, ranging from 10 to 200. |
| contributorId | string | Yes | Google Maps Contributor ID. |
| nextPageToken | string | No | Defines the next page token. It is used for retrieving the next page results. |
Details
From the project READMEmapsdata
mapsdata is a small local bridge to the hosted HasData Google Maps MCP server, which returns Google Maps data as JSON. Search for places by keyword — optionally around GPS coordinates — and pull back the local pack with ratings, hours, phone and website; then follow a placeId into full place details, its reviews, its photo gallery, and its latest posts and offers. A sixth tool lists every review one Local Guide contributor has written, for reviewer-profile and trust checks.
The bridge keeps no place data of its own. It serves the upstream server's tool list locally, exactly as captured from the live endpoint, and forwards each tool call upstream, returning the result untouched. Everything in the surface is read-only over data Google Maps shows publicly for places and reviewers: there is no posting, messaging, or booking tool in it.
Tools
hasdata_google_maps_search_performMapSearch— run a Google Maps search. Required:q. Optional:domain,gl,hl,start(offset paging), andll(GPS coordinates as@lat,lng,zoomz; required whenstartis present). Returns the local pack list with placeId, name, address, coordinates, rating, review count, price level, categories, phone, website, hours, and thumbnail.hasdata_google_maps_place_getPlaceDetails— fetch one place in full. Required:placeId. Optional:domain,hl, andfetchWebResults(also returns the place panel's web results). Returns name, address, coordinates, phone, website, categories, hours, rating, review count, price level, photos, attributes, and plus code.hasdata_google_maps_reviews_getMapReviews— paginated reviews for one place, bydataIdorplaceId. Optional:hl,sortBy(mostRelevant,newestFirst,ratingHigh,ratingLow),topicIdfilter, andnextPageToken. Returns author, rating, text, dates, likes, owner responses, photos, and local-guide flags.hasdata_google_maps_photos_getMapPhotos— the photo gallery of one place, bydataIdorplaceId, paginated withnextPageTokenand filterable bycategoryId. Returns each photo's image URL and thumbnail.hasdata_google_maps_posts_getMapPosts— the latest Google Maps posts (offers, events, announcements) for one place, bydataIdorplaceId, withhllanguage targeting. Returns per-post title, description, image, posted date, link, and business name.hasdata_google_maps_contributor_reviews_getMapReviews— every review authored by one Local Guide. Required:contributorId. Optional:hl,gl,num(10–200 per page), andnextPageToken. Returns per-review rating, text, date, place name and address, photos, and owner responses.
Configuration
HASDATA_GOOGLE_MAPS_MCP_URL(optional) — override the upstream endpoint. Defaults tohttps://mcp.hasdata.com/mcp?apis=google_maps(the query string is part of the pinned URL). (The override hook is this rebuild's own labelled reconstruction.)HASDATA_API_KEY(optional) — when set, every upstream request carries anx-api-key: <key>header, for the caller's own HasData API key. When it is not set, no key header is sent. (The header name and the env name are pinned by the original's registry record; forwarding the key from this env var is a labelled reconstruction — the original surface was captured keyless.)
Forwarding mechanics
On the first tool call the client opens a streamable
HTTP session with the upstream: a JSON-RPC
initialize request (protocolVersion 2025-03-26,
clientInfo name mapsdata), then a
notifications/initialized notification, then the
tools/call request carrying the caller's arguments
unchanged. When the upstream answers initialize
with an Mcp-Session-Id header, that value rides on
every later request of the session, which is reused
for the life of the process. Replies may arrive as
plain JSON or as server-sent events; both are read.
Successful upstream results pass through verbatim,
including any isError flag the upstream sets.
Failures — a JSON-RPC error, a non-2xx status, an
unreadable response, or a request that cannot be
completed — come back as an isError result whose
text starts with mapsdata error: (this rendering
is this rebuild's own labelled reconstruction).
CLI
Each tool is also a subcommand taking one JSON argument string:
npx @reneturcios/mapsdata hasdata_google_maps_search_performMapSearch '{"q":"coffee near Union Square","hl":"en"}'
npx @reneturcios/mapsdata hasdata_google_maps_place_getPlaceDetails '{"placeId":"ChIJN1t_tDeuEmsRUsoyG83frY4"}'
npx @reneturcios/mapsdata --version
Exit codes: 0 on success, 1 on an isError
result, 2 on a usage error.
MCP server
npx -y @reneturcios/mapsdata mcp
MCP client config:
{
"mcpServers": {
"mapsdata": {
"command": "npx",
"args": ["-y", "@reneturcios/mapsdata", "mcp"]
}
}
}
Docker
docker run -i ghcr.io/cloudcorprecords/mapsdata
docker run --rm ghcr.io/cloudcorprecords/mapsdata --version
The container's default command is mcp, so the first
form is a stdio MCP server; any other arguments reach
the CLI normally.
Development
npm install
npm run build
npm test
npm run dev
The test suite runs entirely against a stubbed JSON-RPC upstream — no live network calls.
License
MIT — see LICENSE.
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.