HasData Google Maps

com.hasdata由 hasdata.com 发布官方发布者v1.0.7更新于 Oct 25, 2026

Google Maps places, reviews, contributor history, photos and posts as JSON. No Google Cloud.

发布方自己的服务:HasData Airbnb

已验证Streamable HTTP可网页运行位置与生活网页搜索与抓取

概览

AI 生成的概览

HasData 托管的 Google Maps 服务器,为助手提供六个只读工具,以 JSON 返回地点、评论、照片、帖子与评论者历史。

可以做什么
  • 按关键词搜索 Google Maps 地点,可指定地图中心、国家、语言与分页
  • 读取单个地点的完整信息:地址、坐标、电话、网站、营业时间、评分、价位与属性
  • 获取地点评论流,含 Google 的话题聚类、排序与翻页
  • 按分类获取地点照片流,以及商家自己发布的帖子
  • 按评论者 ID 查看该用户在各地点留下的评论历史
适用场景
适合需要本地商户信息、评论文本与主题、照片或帖子数据,或某位评论者历史的场景,且不想搭建 Google Cloud 项目。不适用于路线规划、地理编码、地址校验或距离矩阵。
运行要求
需要 HasData API 密钥:远程端点通过 x-api-key 请求头传入,npm 或 PyPI 的 stdio 启动器则通过环境变量 HASDATA_API_KEY 传入。客户端需支持带自定义请求头的 streamable HTTP,或使用 Node.js(npx)或 uvx 运行启动器。需能访问托管端点。
安装前请注意
每次工具调用都会消耗额度:每调用 10 点,评论或照片每翻一页也算一次,每月免费 1,000 点,超出需付费套餐。密钥不会过期,若泄露应在控制台轮换。密钥错误不会在连接时暴露,而是在首次工具调用时失败。数据抓取自公开的 Google Maps 页面,提供方声明与 Google 无关联,用户需自行确保符合 Google 条款。

安装

在 SourceWeft 中

  1. 打开 控制台中的 HasData Google Maps,将其添加到工作区。
  2. 连接 x-api-key 凭据。它们会被私密存储,绝不会在公开页面上展示。
  3. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/com.hasdata%2Fgoogle-maps/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "hasdata-google-maps": {
      "type": "http",
      "url": "https://mcp.hasdata.com/mcp?apis=google_maps",
      "headers": {
        "x-api-key": "<YOUR_API_KEY>"
      }
    }
  }
}

README

Google Maps MCP Server

A hosted Google Maps MCP server that gives Claude, Cursor, Windsurf and any other MCP client six read-only Google Maps tools. Search places, read a place in full, pull its reviews, photos and posts, and walk a single reviewer's history, all as structured JSON, with no Google Cloud project and no billing to enable.

1,000 free credits every month, no card required, which is 100 calls at the 10-credit rate.

https://mcp.hasdata.com/mcp?apis=google_maps

[Glama score] [tool contract] [MCP] [Tools]

Contents

What you need

An MCP client that speaks streamable HTTP with custom headers. A HasData API key from the dashboard, free to create with no card, and the free tier covers about 100 calls a month at the 10-credit rate. Nothing else. This is a remote server, so the simplest path is a URL and a header, with no container to run and no Google Cloud project or API key anywhere in the flow. A stdio-only client can use the @hasdata/google-maps-mcp (npm) or hasdata-google-maps-mcp (PyPI) launcher instead.

Quick start

URLhttps://mcp.hasdata.com/mcp?apis=google_maps
TransportHTTP, streamable
Auth headerx-api-key: HASDATA_API_KEY

The server URL is the same for every client. We run it hands-on in Claude Code and Claude Desktop. The other blocks follow each client's own documented format for a remote server.

Clients with OAuth support can add the same URL as a connector and sign in without putting a key in a config file.

Claude Code
bash
claude mcp add --transport http google-maps "https://mcp.hasdata.com/mcp?apis=google_maps" \  --header "x-api-key: HASDATA_API_KEY"
Claude Desktop

Claude Desktop loads only local (stdio) servers from its config file, so it reaches a remote server through a stdio launcher. The @hasdata/google-maps-mcp package is that launcher, and it reads the key from the environment.

claude_desktop_config.json:

json
{  "mcpServers": {    "google-maps": {      "command": "npx",      "args": ["-y", "@hasdata/google-maps-mcp"],      "env": { "HASDATA_API_KEY": "YOUR_KEY" }    }  }}

Python instead of Node? Swap the launcher for the PyPI package, which uvx runs without a manual install:

json
{  "mcpServers": {    "google-maps": {      "command": "uvx",      "args": ["hasdata-google-maps-mcp"],      "env": { "HASDATA_API_KEY": "YOUR_KEY" }    }  }}

A client with OAuth support can instead add the URL as a custom connector and skip the launcher.

Cursor

.cursor/mcp.json:

json
{  "mcpServers": {    "google-maps": {      "url": "https://mcp.hasdata.com/mcp?apis=google_maps",      "headers": { "x-api-key": "HASDATA_API_KEY" }    }  }}
Windsurf

~/.codeium/windsurf/mcp_config.json:

json
{  "mcpServers": {    "google-maps": {      "serverUrl": "https://mcp.hasdata.com/mcp?apis=google_maps",      "headers": { "x-api-key": "HASDATA_API_KEY" }    }  }}
Cline
json
{  "mcpServers": {    "google-maps": {      "url": "https://mcp.hasdata.com/mcp?apis=google_maps",      "type": "streamableHttp",      "headers": { "x-api-key": "HASDATA_API_KEY" },      "disabled": false    }  }}
VS Code

.vscode/mcp.json:

json
{  "servers": {    "google-maps": {      "type": "http",      "url": "https://mcp.hasdata.com/mcp?apis=google_maps",      "headers": { "x-api-key": "HASDATA_API_KEY" }    }  }}
Gemini CLI

~/.gemini/settings.json:

json
{  "mcpServers": {    "google-maps": {      "httpUrl": "https://mcp.hasdata.com/mcp?apis=google_maps",      "headers": { "x-api-key": "HASDATA_API_KEY" }    }  }}

Example prompts

Each of these is one tool call unless the count says otherwise.

Search Google Maps for coffee near downtown Seattle and give me the top ten with their rating, review count and website.

One call, 10 credits. Search returns the places with placeId and dataId already attached, and the follow-ups below need no lookup step.

Pull the full details for ChIJAb0KE0RrkFQRuI4X0By5Mcw: hours, service options, price level and the menu link.

One call, 10 credits.

Read the latest reviews for that place, sorted newest first, and tell me which topics come up most.

One call, 10 credits. The response carries Google's own topic clusters with a mention count each, and the ranking is in the data.

Take the author of the top review and list every other place they have reviewed, with the rating they left.

One call, 10 credits. A review carries its author's contributorId, which is exactly what the contributor tool takes.

Get the photo feed for that place and the business's recent posts.

Two calls. Photos and posts cost 10 credits each.

Two things make these chains cheap. Search hands back placeId and dataId on every result, and the detail, review, photo and post calls need no separate resolve step. And a review carries the author's contributorId, which turns "who left this review" into a one-call jump to that person's whole history.

Tools

ToolWhat it returns
hasdata_google_maps_contributor_reviews_getMapReviewsPer-review rating, text, date, place name, place address, placeId, photos, and owner responses. 10 credits a call
hasdata_google_maps_photos_getMapPhotosEach photo with image URL, thumbnail, upload date, uploader, and photoId. 10 credits a call
hasdata_google_maps_place_getPlaceDetailsName, address, coordinates, phone, website, categories, hours, rating, review count, price level, photos, popular times, attributes/amenities, plus_code, and map URL. 10 credits a call
hasdata_google_maps_posts_getMapPostsPer-post title, description, image, posted_at, link, and source/business name. 10 credits a call
hasdata_google_maps_reviews_getMapReviewsPer-review author name and profile link, star rating, text, published/relative date, likes count, owner response, attached photos, and local-guide flag. 10 credits a call
hasdata_google_maps_search_performMapSearchThe local pack list with placeId, name, address, coordinates, rating, review count, price level, categories, phone, website, hours, and thumbnail. 10 credits a call

Six tools, all read-only. Samples below are trimmed from real calls, and the numbers in them move as places gain reviews. Read them as shapes. Each tool name links to its endpoint reference.

The samples are the payload, not the whole response. A tools/call result carries one text block, and that text is itself JSON holding url, status, text and json, with the scraped data under json. From a raw JSON-RPC response the path is result.content[0].text, parsed, then .json. A chat client unwraps that for you and code talking to the endpoint directly does not.

Four of the tools accept a place by either placeId or dataId. Search returns both on every result. The usual flow is one search followed by detail, review, photo or post calls that reuse whichever id you kept.

Search Google Maps

hasdata_google_maps_search_performMapSearch

Places for a query, ranked as Google Maps ranks them.

ParameterTypeRequiredNotes
qstringyesFree-text query, for example coffee or plumber
llstringMap centre and zoom as @lat,lng,zoomz, for example @47.6062,-122.3321,14z. This is how you pin the search to a place
gl / hlstringTwo-letter country and language codes
domainstringGoogle domain to query, for example google.com
startnumberResult offset for paging, in steps of 20. Requires ll to be set as well

Each result carries position, title, placeId, dataId, address, gpsCoordinates, rating, reviews, type, types, price, website, thumbnail, openState, workingHours, serviceOptions and, where Google shows one, a menu link.

Location lives in ll, not in the query. Put the map centre and zoom there, because "coffee" alone returns wherever Google decides you are. The zoom digit widens or narrows the area the results are drawn from.

json
{  "localResults": [    {      "position": 1,      "title": "Howdy Y'all Coffee (Central Library)",      "placeId": "ChIJAb0KE0RrkFQRuI4X0By5Mcw",      "dataId": "0x54906b44130abd01:0xcc31b91cd0178eb8",      "address": "1000 4th Ave Fl 3, Seattle, WA 98104",      "rating": 4.9,      "reviews": 117,      "type": "Coffee shop",      "website": "https://howdyyallcoffee.com/",      "workingHours": {        "timezone": "America/Los_Angeles",        "days": [ { "day": "Friday", "time": "10 AM–4 PM" } ]      }    }  ]}

Get place details

hasdata_google_maps_place_getPlaceDetails

One place in full by placeId.

ParameterTypeRequiredNotes
placeIdstringyesThe placeId from a search result
hlstringLanguage code
domainstringGoogle domain

Returns a single placeResults object with the same fields a search result carries, plus an images array. It is the way to get one place's full record without running a search you do not need.

Get place reviews

hasdata_google_maps_reviews_getMapReviews

The review feed for a place, page by page.

ParameterTypeRequiredNotes
placeIdstringThe place. Either placeId or dataId has to be present
dataIdstringThe place as a dataId instead
sortBystringmostRelevant by default, plus newestFirst, ratingHigh and ratingLow
topicIdstringFilter to one topic, using an id from the topics array
hlstringLanguage code
nextPageTokenstringThe pagination.nextPageToken from the previous response

Returns placeInfo, a topics array, a reviews array and pagination. Each review carries reviewId, rating, snippet, date, isoDate, link, images, a user object and, where the owner replied, a response.

topics is Google's own clustering of what reviews mention, each with a keyword and a mentions count, and the themes come pre-counted rather than needing you to read every review. Feed a topic's id back as topicId to read only the reviews that mention it.

Each review's user carries a contributorId. That is the input the contributor tool takes, so "who wrote this" is one call away from "everything they wrote".

json
{  "placeInfo": { "title": "Howdy Y'all Coffee (Central Library)", "rating": 4.9, "reviews": 117 },  "topics": [    { "keyword": "earl grey matcha", "mentions": 26, "id": "bew1w_KAk5U" },    { "keyword": "friendly baristas", "mentions": 17, "id": "FOw-91tYieQ" }  ],  "reviews": [    {      "reviewId": "…",      "rating": 5,      "snippet": "…",      "isoDate": "2026-07-06T19:49:00.657Z",      "user": { "name": "Angela Li", "contributorId": "106033685843245983748" },      "response": { "isoDate": "2026-07-07T04:44:34.000Z", "snippet": "Thank you!! 🥺☺️" }    }  ],  "pagination": { "nextPageToken": "…" }}

Get a contributor's reviews

hasdata_google_maps_contributor_reviews_getMapReviews

Every review one person has written, across all the places they rated.

ParameterTypeRequiredNotes
contributorIdstringyesThe contributorId from a review's user object
numnumberHow many reviews to return
gl / hlstringCountry and language codes
nextPageTokenstringToken from the previous response

Returns a contributor object with name, level, points and a contributions breakdown, and a reviews array where every entry carries its own placeInfo, and you see which place each review is about without a second lookup. This is the tool behind reviewer-credibility and review-network work that the review feed alone cannot do. It reads one person's public review history, so use the results within Google's terms and the law that applies to you.

Get place photos

hasdata_google_maps_photos_getMapPhotos

The photo feed for a place.

ParameterTypeRequiredNotes
placeIdstringThe place. Either placeId or dataId has to be present
dataIdstringThe place as a dataId instead
categoryIdstringFilter to one category, using an id from the categories array
hlstringLanguage code
nextPageTokenstringToken from the previous response

Returns a categories array (All, Latest, Videos, Menu and place-specific ones), a photos array where each entry has image and thumbnail URLs, and pagination.

Get place posts

hasdata_google_maps_posts_getMapPosts

The business's own posts and updates on its Google listing.

ParameterTypeRequiredNotes
placeIdstringThe place. Either placeId or dataId has to be present
dataIdstringThe place as a dataId instead
hlstringLanguage code

Returns a posts array. This tool does not page. Reviews and photos take a nextPageToken, this one does not, and it returns what the listing shows.

Most places post nothing, so an empty posts array is the common case. Read the length before assuming a post is there.

Prompts and resources

The server ships 2 prompts, ready-made workflows a client can offer instead of making the user compose a tool call.

PromptWhat it does
google_maps_searchFind businesses and places on Google Maps.
google_maps_reviewsSummarize what reviewers say about a place.

Alongside them the server exposes 4 resources, one per parameter whose accepted values are a fixed list. Reading one is cheaper than learning the vocabulary from a rejected call, and it costs no credits. Each URI is hasdata://google_maps/<parameter>.

ParameterValuesWhat it selects
hl159The two-letter language code for the language you want to use for the search.
gl245The two-letter country code for the country you want to limit the search to.
domain195Google domain to use. Default is google.com.
sortBy4Parameter used for sorting and refining results.

Both lists are served without an API key, so a client can read them before a user has signed up.

Errors and failure paths

Your client almost never sees an HTTP error code from a tool call. The MCP layer answers 200 and puts the failure inside the result, with isError set to true and the reason as text. The agent reads a message where you might expect a status line.

A wrong key surfaces as tool output, not as a failed connection. Listing tools accepts any non-empty key, and the client completes its handshake and shows green. The first tool call then comes back with isError: true and the text HasData API error: 401 Unauthorized. Watch for that string, because nothing earlier in the flow reports the problem.

The one real HTTP error is a missing key. Authorization runs before any tool, and the connection itself fails with 401.

An argument that breaks the schema is rejected before it becomes a request. A search with no q comes back with isError: true and the text MCP error -32602: Input validation error, naming the field. Nothing is fetched and nothing is charged.

A review, photo or post call needs a place. Those three take placeId or dataId, and sending neither returns 422 naming both fields, because the requirement is conditional and the schema cannot express it as a plain required list. Pass one.

A place id that does not resolve is a clean error, not empty data. It returns isError: true with HasData API error: 400 Bad Request and requestMetadata.status set to error. Test the flag rather than the array length.

Empty posts is real data. Most listings carry no posts, so the call succeeds with status ok and an empty array. The place simply has nothing posted.

Results that carry data also carry a requestMetadata.id worth quoting in support, plus html and json links to the stored artifact of that exact call.

Pricing, free tier and limits

Search, place details, reviews, contributor reviews and photos cost 10 credits per successful call. Posts cost 10. Response size does not change the price. A full page of reviews costs the same as a page with one.

The free tier is 1,000 credits every month with no card, which is 100 calls at the 10-credit rate. It renews with the billing cycle, so a low-volume agent runs on the free tier indefinitely.

Paid plans start at $59 a month for 200,000 credits, which is 40,000 five-credit calls. The price per credit falls with volume, and current numbers live on the pricing page.

Your plan also sets concurrency. The free tier allows 5 requests at a time, Startup 5, Basic 15, and the Growth tiers run from 50 to 500. Concurrency is the only throttle. There is no separate requests-per-minute cap, and the free tier is not slowed or trimmed in any other way. Handle the overflow case defensively in anything unattended, because an agent that fans out across places will reach the ceiling before you do.

Paging costs a call each time. Reviews come about ten to a page, so a hundred reviews is roughly ten calls and 100 credits, while photos come twenty to a page. The free tier goes a long way before you feel it.

Tool selection

?apis=google_maps exposes exactly these six tools. The parameter takes a list, and ?apis=google_maps,google_serp adds Google search alongside the maps tools. Drop the parameter and you get every tool HasData exposes.

A narrow list is usually the better default. A model choosing among a few tools picks correctly more often than one choosing among the whole catalog, and the tool descriptions themselves cost context on every turn.

How it compares

Almost every other Google Maps MCP server wraps the official Google Maps Platform, and that is the real choice to weigh.

Those servers call the Places, Routes and Geocoding APIs with your own Google Cloud credentials. To run one you create a Google Cloud project, enable billing with a card, turn on each API, and manage a key and its quotas. That is the right tool when you want routing, geocoding and address validation, which this server does not do.

This server reads what Google Maps shows a visitor, and returns it parsed. There is no Google Cloud project, no billing to enable, and no per-API quota to manage. It also reaches data the Places API does not hand out: the full review feed rather than a small fixed sample, a single reviewer's whole history, the photo feed, and the business's posts.

Official Platform wrapperThis server
What you set upA Google Cloud project, billing, per-API keys and quotasOne API key, once
Routing, geocoding, address validationYesNot offered
ReviewsA small fixed sample per placeThe feed, paged, with topic clusters
A reviewer's historyNot availableYes, by contributorId
Photos and postsLimitedPhoto feed and the business's posts
OutputJSON per the Platform schemaJSON parsed from what a visitor sees
CostGoogle's per-call pricing on your bill10 credits a call, 10 for posts

The decision comes down to two rows. If you need directions or to turn an address into coordinates, this server cannot help you and the Platform can. If you need the reviews behind the first few, or who a reviewer is across every place they rated, the Platform cannot help you and this can.

What this server does not do. No routing, no geocoding, no address validation, no distance matrix, and nothing that writes. It reads the map.

FAQ

What is a Google Maps MCP server?

A server that exposes Google Maps data as tools an AI client can call. The client sends a tool call over the Model Context Protocol, the server fetches the data and returns structured JSON, and the model works with the result and never sees a page of HTML. This one exposes six read-only tools and runs remotely. The client connects to a URL and starts no local process.

Is there an official Google Maps MCP server?

Google publishes no general-purpose one. There is the Google Maps Platform, a set of paid APIs you call with your own Cloud project, and several community MCP servers wrap it. This server is a hosted alternative that needs no Cloud project.

Do I need a Google Cloud project or a Maps API key?

No. The only credential is your HasData key. There is no Google Cloud project to create, no billing to enable and no per-API quota to manage.

What is the difference between placeId and dataId?

They are two ids Google uses for the same place. Search returns both on every result, and the detail, review, photo and post tools accept either. Keep whichever you like from the search result and reuse it.

How do I get every review, not just the first page?

Read pagination.nextPageToken from each response and pass it back as nextPageToken until it stops coming. Each page is one call.

Do I need to host or run anything?

No. This is a remote MCP server on streamable HTTP. Nothing to install, no Python environment, no process to restart.

Is the data live or cached?

Live. Each call fetches at request time and carries its own requestMetadata.id. Two identical calls are two separate fetches and not a replay of a stored copy.

Can I use one server for several Google surfaces?

Yes. The apis parameter takes a list, and ?apis=google_maps,google_serp gives your agent the maps tools plus Google search at once.

Does the API key expire?

No. The key does not expire. Rotate it in the dashboard whenever you need to.

Is this affiliated with Google?

No. HasData is an independent service and is not affiliated with, endorsed by, or sponsored by Google. Google and Google Maps are trademarks of their respective owner. The tools work with publicly available data only, and you are responsible for using the results in line with Google's terms and the law that applies to you.

HasData links

Product pagesSearch, Reviews, Photos and Posts
Server documentationMCP server docs
Every HasData tool in one serverHasData/hasdata-mcp
Client walkthroughsMCP clients and integrations
The other surfaces we parse53 more scraper APIs
Plans and credit costsPlans and credit costs
Keys and usageHasData dashboard
Node launcher on npm@hasdata/google-maps-mcp
Python launcher on PyPIhasdata-google-maps-mcp

Development

This repository is configuration and documentation for a remote server. There is no build step and nothing to containerize.

It does carry a contract test. The README promises six tools with specific parameters, and the upstream tool list can change without a commit here, which would leave this file quietly lying to you. The test asserts the promise and runs weekly in CI as well as on every push.

bash
HASDATA_API_KEY=your_key_here npm test

On PowerShell:

powershell
$env:HASDATA_API_KEY = "your_key_here"; npm test

The last check makes a real call and costs 10 credits, which is the price of a canary that can fail for the right reason. Listing tools succeeds with any non-empty key, and a test that only lists tools stays green with a revoked one.

Contributing

Corrections to the tool tables and the response samples are the most useful contribution, because those are the parts that drift. Include the call you made and the response you got. Pull requests from forks run the suite without a key, and the live checks skip instead of going red.

License

MIT. See LICENSE.

来源:README.md,提交 73a2ecc

工具

0
SourceWeft 尚未读取此服务器的工具。

版本历史

3
  1. v1.0.7最新Sep 24, 2026
  2. v1.0.6Sep 22, 2026
  3. v1.0.5Sep 16, 2026

评分

已满足适用检查项的 85%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

其他 Hasdata 集成