Google Maps Scraper MCP Server | G Maps Crawl

G Maps Crawl

7 min read Original article ↗

Google Maps data / MCP server

Google Maps data, inside your AI workflow.

Find businesses, read public reviews, and explore place galleries with Claude Code, Cursor, VS Code, or Codex. Three remote tools. The same API key.

Works with your MCP client

Claude Code Cursor VS Code Codex

Remote Streamable HTTP · Private API key · Free and paid API plans

Three tools / One connection

From business discovery to place detail.

Each tool returns its result directly. Choose the operation your task needs and keep the requested pages explicit.

Find businesses

search_google_maps

Search a category and location. Receive up to 20 businesses with available listing, contact, rating, and review-count fields.

q · page · extra

Explore the Search API

Read public reviews

get_google_maps_reviews

Use a place’s feature ID to request up to 10 reviews. Choose relevance, newest, highest rating, or lowest rating.

fid · page · sort_by

Explore the Reviews API

Browse gallery media

get_google_maps_photos

Retrieve up to 20 photo and video metadata records for one place. Read the returned media URLs and pagination flag.

fid · page

Explore the Photos API

Reviews and photos accept the Maps feature ID from a search result’s place.dataId. Search uses pages 1–10; media tools return next so your agent can decide whether another page is needed.

MCP connection

One endpoint. Your API workspace.

Your client handles initialization and tool discovery, then sends your API key with each request.

Remote MCP connection

POST https://gmapscrawl.com/api/mcp
Authorization: Bearer <YOUR_API_KEY>
Content-Type: application/json
Accept: application/json, text/event-stream

Client setup

Choose the client you work in.

Create an API key, then copy the configuration for your client. Keep the key in its environment or protected input setting.

Add this server to .mcp.json. Make GMSCRAPER_API_KEY available in the environment that launches Claude Code.

{
  "mcpServers": {
    "google-maps-data": {
      "type": "http",
      "url": "https://gmapscrawl.com/api/mcp",
      "headers": {
        "Authorization": "Bearer ${GMSCRAPER_API_KEY}"
      }
    }
  }
}

After saving the configuration, reconnect and confirm the three tools appear. Follow the step-by-step setup guide.

Your first workflow

Connect. Test one page. Read the result.

Start with a test key and simulated data. Switch to a live key when you are ready to use your API allowance.

01

Prepare your workspace

Select the API product and create a test key with scrapes:write. Your API plan must permit MCP; Online and Extension have separate allowances.

Create a key
02

Discover and call one tool

Connect your client, inspect search_google_maps, and ask for one page. Generate a fresh request ID for new work and preserve it when retrying the same request.

View client setup
03

Use the returned businesses

Read structuredContent.businesses and total. Label test results as simulated, preserve missing values, and stop after the requested page.

Understand the fields

Call search_google_maps

Replace the request ID for each new search. This example does not execute a request from the page.

{
  "q": "coffee shops in Seattle",
  "page": 1,
  "hl": "en",
  "extra": false,
  "client_request_id": "replace-with-a-fresh-uuid"
}

What comes back

Structured records, in the same tool response.

businesses
Up to 20 returned businesses; fields may be missing.

params + total
The normalized query and the count on this page.

simulated + usage metadata
Test responses identify fixture data and use zero live request units.

isError
Inspect the error before reporting that a tool succeeded.

Results return directly; no job polling is needed. Keep source observation dates when turning the JSON into a table or report.

Example prompts

A useful question. A clear stopping point.

Use these prompts after connecting. Supply a real feature ID where needed, and ask your agent to label test results as simulated.

Build a focused business list

“Use search_google_maps once for coffee shops in Seattle, page 1, extra false. Return names, websites, phone numbers, ratings, and review counts from the returned businesses. Keep missing fields blank and show observation dates. Stop after this page.”

Expected result

A table of up to 20 returned businesses, with source timestamps and missing values preserved.

Summarize one review page

“For the business I selected, use its place.dataId as fid. Request page 1 of get_google_maps_reviews with sort_by 2. Summarize themes in these returned reviews only and cite their dates. Do not fetch additional pages.”

Expected result

A bounded summary of up to 10 reviews, without treating one page as every customer’s experience.

Inspect one gallery

“Use get_google_maps_photos for this supplied feature ID, page 1 only. List the returned photoUrl and optional videoUrl fields and report whether next is true. Do not download files or fetch the next page.”

Expected result

Up to 20 gallery records and the returned pagination state, ready for your own application to inspect.

REST + MCP

One API allowance across both interfaces.

MCP is available on free and paid API plans. Each successful live source page uses one API request unit, including an empty page.

01

Test without live usage

Test keys return simulated fixtures with zero request units. They verify your integration rather than producing real business leads.

Manage API keys
02

Keep requests bounded

Ask only for the pages and locations your task needs. Use a new request ID for new work; retry uncertain requests with the same input and ID.

Read usage guidance
03

Add reusable instructions

The Google Maps Data Agent Skill adds workflow guidance, operation references, and a REST fallback to the same tools.

Explore the Agent Skill

Explore the API hub → Online and Extension plans have their own allowances.

Connection help

Get to the next successful request.

Use the connection state and returned error to choose the next step.

The client connects but no tools appear
Confirm the endpoint is /api/mcp and your client supports remote Streamable HTTP with a private Authorization header. Reload the connection and check that its process can read the configured key.

401 or 403
Check key expiry, allowed IPs, active workspace access, the scrapes:write scope, and an API plan that permits MCP. Browser login cookies do not authenticate the endpoint.

invalid_request
Read the selected tool schema. Supply a unique 16–128 character client_request_id; reviews and photos also need the FID from place.dataId, rather than a business name or a different place identifier.

rate_limited or quota_exceeded
Honor retry_after for rate limits. Stop when the API allowance is exhausted and check your API usage; creating another key does not add allowance.

capability_unavailable or a source failure
Check service status and the returned error. Availability is determined by the server. Keep missing or unavailable data explicit in your result.

Timeout or isError: true
Inspect the tool error even when the HTTP connection succeeded. For retryable failures, keep the same input and request ID within your task deadline. Follow terminal-error guidance before starting a new attempt.

Service status Errors and retry guidance

Frequently asked questions

What can the Google Maps MCP server do?

It exposes search_google_maps, get_google_maps_reviews, and get_google_maps_photos. Search returns up to 20 businesses; reviews return up to 10 records and photos up to 20 gallery records per page. The tools return structured data directly.

Which clients can I connect?

Use a version of Claude Code, Cursor, VS Code, Codex, or another MCP client that supports remote Streamable HTTP and a private Authorization header. The four client configurations above use the same endpoint and API workspace key.

How do I authenticate?

Create an API key with scrapes:write in your API workspace and configure it privately as a Bearer header. Browser cookies do not authenticate MCP. Keep keys outside prompts, URLs, and committed source code.

How do reviews and photos find the right place?

Pass the Maps feature ID as fid. You can use place.dataId from a returned business. Reviews also accept sort_by: 1 for relevance, 2 for newest, 3 for highest rating, or 4 for lowest rating. Read next before considering another media page.

Does MCP have a separate allowance?

MCP shares the REST API allowance and is available on free and paid API plans. A successful live page uses one request unit, including an empty page. Test credentials return simulated data with zero units. Online and Extension allowances are separate.

Do I also need the Agent Skill?

The MCP server works on its own. The optional Google Maps Data Agent Skill adds reusable instructions, operation references, and a helper for REST fallback when your configured MCP connection is unavailable.

Take the next step

Bring Google Maps data into your next conversation.

Create an API key, connect your preferred client, and test one focused business search.

Get API key