Gsearch lets AI agents run real Google searches through a real browser
An early open-source tool hands AI agents Google's actual results page as structured data, but it carries legal risk and almost no track record.
The short version
- Agents call google_search and get Google's results page as typed JSON, including the AI Overview
- It runs a real Firefox build (Camoufox) on your own IP or through a proxy
- Without a proxy it is capped at 20 searches an hour; a warm session takes ~1.2 s per search
- Google's official Custom Search API closes on 1 January 2027, per the README
- The README warns that automated access may breach Google's Terms of Service
Why it matters
Agents that cannot search the live web often answer from stale memory, so a search tool is one of the most useful add-ons. Gsearch shows how builders are working around the shrinking options for Google data. But it also shows the trade: legal exposure, and search results that can carry hidden instructions aimed at your agent.
What Gsearch does
As github.com reported in a Show HN post, Gsearch is an open-source server that gives AI agents access to Google Search. It speaks MCP, the Model Context Protocol, a standard way of plugging outside tools into an AI assistant. An agent calls a tool named google_search and gets back Google's results page as structured, labeled data (JSON) rather than a wall of messy web code.
The output is more than a list of links. It includes the AI Overview, the "People also ask" questions and related searches. The project says it exposes two tools in total.
How it gets past Google's defenses
The project's pitch is that simple approaches fail. According to the README, a plain web request hits a JavaScript wall, and an automated Chrome browser was sent to a CAPTCHA (a test meant to stop bots) 2 out of 2 times in the authors' test.
Gsearch instead runs Camoufox, a hardened version of Firefox, and lets it load Google's page as it is. It uses a visible window, since the authors say headless sessions (browsers with no window) were challenged more often on proxy IPs. The query is typed into the address bar.
Google hides result links behind redirects. Gsearch follows each one to find the real destination address without loading the page itself. The README says it does not solve CAPTCHAs and does not forge Google's tokens. When it is blocked, it returns a clear error with a wait time instead of an empty list.
Setup, proxies and limits
Installation is a few commands, and a one-time setup step downloads the browser, about 1 GB. Then you register the tool with an MCP client such as Claude Code, Claude Desktop or Cursor, and ask in plain language, for example for the top three links on a topic.
Without a proxy, which is a middleman server that changes the IP address Google sees, Gsearch uses your own connection. It is capped at 20 searches an hour and 150 a day to protect your IP. The README reports about 1.2 seconds per search on a warm session with no CAPTCHAs in its testing.
For more volume you can add a proxy in many formats. Rotating residential proxies give a new IP per search, while static ones each get their own budget. A setting called GSEARCH_DATA_LIMIT_MB sets a hard cap on proxy data. A clean proxy IP costs about 0.6 MB and 14 s per search, but many IPs are already flagged by Google and cost more time. The README says static proxies have not been benchmarked yet.
The legal and safety caveats
The README is unusually blunt. It says automated access to Google Search may breach Google's Terms of Service, whatever the project's open-source license says. It points to a lawsuit, Google v. SerpApi, filed 2025-12-19, in which Google argues that getting past its SearchGuard challenge by automated means counts as circumvention under US copyright law. The authors say they run the challenge in a real browser and forge nothing, but note that the complaint also targets automated browsers.
It also advises checking your proxy provider's acceptable-use policy, since many forbid use on sites that ban automated access.
A separate risk is prompt injection: any web page in the results can contain text meant to steer your agent. Gsearch marks every result as untrusted content, but that only helps if your agent treats it that way.
How much to trust it
Our newsletter flagged this as a very new project, with 1 point and 0 comments on Show HN when listed. Most numbers in the README are the authors' own measurements, and we have not verified them. Cautious teams should wait for more evidence. Hobbyists and builders testing research agents are the natural audience.
What to watch
- Whether Google takes action against automated-browser tools, as the SerpApi case plays out
- How the tool holds up as the official Custom Search API closes on 1 January 2027
- Whether independent users confirm the speed and CAPTCHA results, especially with static proxies
Try it
If you build agents, read the README's Legal and responsible use section first. If you try it, keep the agent away from tools that send email or change files without your approval.
Sources and links
- Reportinggithub.com: the article we sourced
Liked it? Say why
Add a line for other readers.
No account needed. We never show your email. Comments with links, ads or abuse are held and not shown. Your comment shows after a quick check.
Listen to the AI Wire headlines
Listen to the AI WireListen to our daily AI shows every morning: on your commute, in the shower, wherever you are
Listen to the daily showsFirst reported by github.com · Read the original. Written by the SI Agent News Desk from the reporting above.Written with AI from the source above. Every number is checked against the source. Spot a mistake? Corrections.
