
HasData Google Search (SERP)
com.hasdata由 hasdata.com 发布官方发布者v1.0.7更新于 Oct 24, 2026
Google SERP as JSON: organic, AI Overview, People Also Ask, AI Mode, news, shopping. No Cloud setup.
发布方自己的服务:HasData Airbnb
概览
托管式 Google 搜索(SERP)服务器,为助手提供只读工具,以 JSON 获取实时 Google 结果、AI 摘要、AI 模式回答、新闻、购物和短视频。
- 可以做什么
- 搜索 Google,获取自然结果、广告、知识图谱、相关问题及内嵌 AI 摘要
- 展开 AI 摘要令牌,并向 Google AI 模式提问并取得引用来源
- 读取 Google 新闻结果,并深入主题、栏目、报道和出版物
- 搜索 Google 购物,并将商品展开为多店铺报价、款式和评价
- 获取查询的短视频结果和活动信息
- 使用内置提示词进行搜索、新闻、购物、短视频和 AI 模式查询,并读取参数取值资源
- 适用场景
- 适合助手需要获取当前 Google 搜索结果、Google AI 摘要或 AI 模式回答、新闻报道,或进行购物与商品比价,又不想搭建 Google Cloud 项目或可编程搜索引擎的场景。适合低频的研究、市场或商品查询。
- 运行要求
- 需要在服务商后台创建 HasData API 密钥:远程端点通过 x-api-key 请求头发送,npm 或 PyPI 的 stdio 启动器则通过 HASDATA_API_KEY 环境变量读取。需要支持带自定义请求头的 streamable HTTP 的 MCP 客户端,或 Node.js、uv 运行启动器。需要能访问托管端点;每次调用消耗积分。
安装
在 SourceWeft 中
- 打开 控制台中的 HasData Google Search (SERP),将其添加到工作区。
- 连接 x-api-key 凭据。它们会被私密存储,绝不会在公开页面上展示。
- 为需要使用其工具的对话启用该服务。
Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。
交给智能体安装
把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。
阅读 https://sourceweft.com/mcp/com.hasdata%2Fgoogle-search/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。其他 MCP 客户端
把它添加到你客户端的 mcpServers 配置中。
{
"mcpServers": {
"hasdata-google-search-serp": {
"type": "http",
"url": "https://mcp.hasdata.com/mcp?apis=google_serp",
"headers": {
"x-api-key": "<YOUR_API_KEY>"
}
}
}
}README
Google Search MCP Server (SERP)
A hosted Google Search MCP server that gives Claude, Cursor, Windsurf and any other MCP client read-only Google Search tools. Pull the live SERP with its AI Overview and People Also Ask, run a Google AI Mode query, and read news, shopping, product detail and short-video results, all as structured JSON, with no Google Cloud project and no search-engine setup.
1,000 free credits every month, no card required, which is 100 full-SERP calls or 200 SERP Light calls.
[Glama score] [tool contract] [MCP] [Tools]
"SERP" and "Google Search" are the same product here. This server returns Google search-engine results pages, parsed.
Contents
- What you need
- Quick start
- Example prompts
- Tools
- Errors and failure paths
- Pricing, free tier and limits
- Tool selection
- How it compares
- FAQ
- HasData links
- Development
- Contributing
- License
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 to 200 calls a month depending on the tool. Nothing else. This is a remote server, so the simplest path is a URL and a header, with no Google Cloud project or Programmable Search Engine to set up. A stdio-only client can use the @hasdata/google-search-mcp (npm) or hasdata-google-search-mcp (PyPI) launcher instead.
Quick start
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
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-search-mcp package is that launcher, and it reads the key from the environment.
claude_desktop_config.json:
Python instead of Node? Swap the launcher for the PyPI package, which uvx runs without a manual install:
A client with OAuth support can instead add the URL as a custom connector and skip the launcher.
Cursor
.cursor/mcp.json:
Windsurf
~/.codeium/windsurf/mcp_config.json:
Cline
VS Code
.vscode/mcp.json:
Gemini CLI
~/.gemini/settings.json:
Example prompts
Search Google for
best running shoesand give me the organic top ten plus the AI Overview.
One call, 10 credits. The SERP response carries the AI Overview inline alongside the organic results.
For the same query, take each People Also Ask question and pull its AI Overview answer with sources.
One call per question, 10 credits each. Each relatedQuestions entry holds an aiOverview.pageToken, and the AI Overview tool turns that token into the answer blocks and their references.
Ask Google AI Mode
what is the Model Context Protocoland give me the answer with its citations.
One call, 10 credits. AI Mode returns the generated answer as text blocks with a reference list.
Search Google Shopping for
nike air max, then pull the full product card for the top result: every store selling it, the price range and the review breakdown.
Two calls. Shopping is 10 credits and returns a token per product, and the immersive product tool spends 5 to expand that token into stores, variants and reviews.
Get the latest Google News for
artificial intelligence, and separately the short-video results forcooking pasta.
Two calls, 10 credits each.
The workflow leans on two chains. A SERP response hands back an aiOverview inline and a pageToken on every People Also Ask question, so extracting Google's generative answers is either free with the search or one 10-credit follow-up per question. A shopping result likewise hands back a token per product, so the jump from a listing to its full multi-store card is a single call.
Tools
Ten tools, all read-only. Samples below are trimmed from real calls, and the results in them change as Google changes, so 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.
Google SERP
hasdata_google_serp_serp_getSearchResults
The full results page for a query.
Returns searchInformation, organicResults, aiOverview, relatedQuestions, relatedSearches, perspectives, immersiveProducts and pagination, with whichever blocks Google shows for the query. Organic entries carry position, title, link, displayedLink, source, snippet, snippetHighlitedWords, date and images.
The AI Overview arrives two ways. Usually
aiOverviewis inline, withtextBlocksandreferencesyou can read straight away. Sometimes Google gates it behind a token, and thenaiOverviewcarries apageTokenand ahasdataLinkinstead of the blocks. EveryrelatedQuestionsentry is that second case too. It holds aquestionand anaiOverviewwith the samepageTokenandhasdataLink, which the AI Overview tool below expands. So the People Also Ask answers are AI Overviews you fetch one token at a time. The top-levelaiOverviewis inline on most queries and a token on a few, so read it both ways.
Google AI Overview
hasdata_google_serp_ai_overview_getAiOverviewResponse
Expands an AI Overview token into its answer.
Returns aiOverview with textBlocks and references. This is how you read the AI Overview when the SERP handed you a token rather than the blocks, and how you turn each People Also Ask question into a cited answer.
Tokens are valid for about 4 minutes. A stale one does not come back empty, it fails as a tool error,
isError: truewith the textHasData API error: 400 Bad Request. Catch it the way you catch a wrong key, and re-run the SERP for a fresh token.
Google AI Mode
hasdata_google_serp_ai_mode_getAiModeResponse
Google's AI Mode answer for a query, the conversational search result.
Returns textBlocks and references, the generated answer and the sources it cites.
Google SERP Light
hasdata_google_serp_serp_light_getSearchResults
A cheaper search that returns the core of the page.
Returns organicResults, aiOverview, relatedSearches, filters, appliedLocation, searchInformation and pagination. It is half the credits of the full SERP, for when you want organic results and the AI Overview without the extra blocks.
Google News
hasdata_google_serp_news_getGoogleNews
The Google News results for a query or a news section.
Returns newsResults, menuLinks, relatedTopics and relatedPublications. Each news entry carries position, title, link, source with a name and icon, thumbnail and date.
Google Shopping
hasdata_google_serp_shopping_getSearchResults
Shopping results for a query.
Returns shoppingResults, filters, refineSearchFilters, searchInformation and pagination. Each result carries position, title, productId, price, extractedPrice, rating, reviews, source, category, thumbnail and an immersiveProductPageToken.
immersiveProductPageTokenis the input to the immersive product tool below. It is a temporary token, so expand it while it is fresh if you want the product data, and re-run the shopping call for a new one if an old token fails.
Immersive product
hasdata_google_serp_immersive_product_getImmersive_e29f691177
The full product card behind a shopping result.
Returns a productResults object with title, brand, rating, reviews, priceRange, a stores array of every seller with its price and link, plus variants, reviewsImages, userReviews, topInsights, aboutTheProduct and discussionsAndForums. This is the one call that turns a single listing into the whole cross-store picture.
Feed storesNextPageToken back in as the nextPageToken parameter to page through the stores.
Google short videos
hasdata_google_serp_short_videos_getShortVideosSearchResults
The short-video results Google shows for a query.
Returns shortVideos, each with position, title, link, source, sourceLogo, profileName, duration, clip and thumbnail.
Prompts and resources
The server ships 5 prompts, ready-made workflows a client can offer instead of making the user compose a tool call.
Alongside them the server exposes 10 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_serp/<parameter>.
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 search. 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 stale AI Overview token fails as an error. A SERP response token is valid for about 4 minutes. Expanding one you stored earlier comes back with isError: true and the text HasData API error: 400 Bad Request, the same shape as a wrong key. Catch it and re-run the SERP to get a fresh token.
A block Google did not show is absent, not empty. A query with no AI Overview, no shopping pane or no People Also Ask returns a response without those keys rather than with empty ones. Test for the key before reading it.
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
Credits are per tool. The full SERP, AI Mode, News, Shopping, short videos, immersive product and the AI Overview tool cost 10 credits a call. SERP Light is 5. The AI Overview that comes inline with a SERP response is free, part of that 10-credit call, but expanding a token with the AI Overview tool, including every People Also Ask token, is a separate 10-credit call. Response size does not change the price.
The free tier is 1,000 credits every month with no card, which is 100 full-SERP calls or 200 SERP Light calls. 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. 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. Handle the overflow case defensively in anything unattended, because an agent that fans out across queries will reach the ceiling before you do.
Tool selection
?apis=google_serp exposes these tools. The parameter takes a list, and ?apis=google_serp,google_maps adds the Google Maps tools alongside search. 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
Google no longer offers a general search API. The official route is the Custom Search JSON API, and it answers a different question from this one.
The Custom Search JSON API searches a Programmable Search Engine you configure, over the sites you list or the whole-web index if you switch it on. It is capped at 100 free queries a day and then charges per thousand up to a daily ceiling, and it returns a stripped result set. It does not return the AI Overview, People Also Ask, the local pack, shopping, news or short videos, because those are features of the live results page rather than of the API. It is the right tool when you want to search your own site or a fixed set of sites and stay inside Google's official terms for that.
This server returns the live Google results page as a visitor sees it, parsed. There is nothing to configure, the query runs against all of Google rather than a curated engine, and the AI Overview, People Also Ask, shopping and the rest come back as structured blocks.
Two rows decide it. If you only need to search your own sites and want Google's official API for that, the Custom Search JSON API is the fit. If you need the real SERP, its AI Overview, or any of the panes Google shows a searcher, the official API does not return them and this does.
What this server does not do. No crawling of the pages behind the results, no ranking history, and nothing that writes. It returns the parsed results page.
FAQ
What is a Google Search MCP server?
A server that exposes Google search results as tools an AI client can call. The client sends a tool call over the Model Context Protocol, the server fetches the results page and returns structured JSON, and the model works with the result and never sees a page of HTML. This one exposes eight read-only tools and runs remotely, so the client connects to a URL and starts no local process.
Is SERP the same as Google Search here?
Yes. A SERP is a search-engine results page. These tools return Google's results pages, so "SERP API" and "Google Search API" mean the same thing in this repo.
Is there an official Google Search MCP server?
Google publishes no MCP server and no general search API. The closest official product is the Custom Search JSON API, which searches a Programmable Search Engine you configure. Several community MCP servers, this one among them, return the live results page instead.
How do I get the AI Overview?
Run a SERP call. The aiOverview is usually inline with its textBlocks and references. When it comes back as a pageToken instead, and on every People Also Ask question, pass that token to the AI Overview tool to get the answer. Tokens expire quickly, so expand them from a fresh call.
Do I need a Google Cloud project or a Programmable Search Engine?
No. The only credential is your HasData key. Nothing to create in Google Cloud, and no per-API quota to manage.
Does the API key expire?
No. The key does not expire. Rotate it in the dashboard whenever you need to.
Is the data live or cached?
Live. Each call fetches the results page at request time and carries its own requestMetadata.id. Two identical calls are two separate fetches and not a replay of a stored copy.
Is this affiliated with Google?
No. HasData is an independent service and is not affiliated with, endorsed by, or sponsored by Google. Google is a trademark of its 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
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 documents its 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 documented tools exist with the parameters claimed, and runs weekly in CI as well as on every push.
On PowerShell:
The last check makes a real search 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, so 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,提交 69f16e3
工具
0版本历史
3- v1.0.7最新Sep 24, 2026
- v1.0.6Sep 22, 2026
- v1.0.5Sep 16, 2026
评分
已满足适用检查项的 85%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通必需25 分
- 已声明认证方式必需10 分
- 已列出工具必需15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
其他 Hasdata 集成

HasData Airbnb
com.hasdata官方发布者
HasData 托管的 Airbnb MCP 服务器,提供两个只读工具,让助手按地点或地图区域搜索房源,并以 JSON 读取房源详情。

HasData Google Flights Deals
com.hasdata官方发布者
HasData 托管服务器,提供一个 Google Flights Deals 工具,把自然语言描述的旅行想法变成带日期的票价、航司、经停和预订链接。

HasData ChatGPT
com.hasdata官方发布者
HasData 托管服务器,让助手匿名向 ChatGPT 提问,并返回 Markdown 答案及其参考的网页来源。

HasData Google Hotels
com.hasdata官方发布者
HasData 托管服务器,提供一个 Google Hotels 工具,让助手搜索酒店和度假短租,并查看某房源在各预订网站的价格。

HasData Zillow
com.hasdata官方发布者
HasData 提供的托管服务,让助手以结构化 JSON 搜索 Zillow 在售、出租和已售房源,并读取完整房产详情。