gsearch
Real Google Search for your AI agent. No API key. Self-hosted. Over MCP.
Your agent calls google_search and gets Google's actual results page as typed JSON: every link resolved to
its real URL, plus the AI Overview, People also ask and related searches. A real Firefox
(Camoufox) runs Google's page as it is, on your own IP or through any
proxy you already have.
Screenshots, measured results and the full documentation: https://github.com/RayenMlayeh/gsearch
Quick start
uv tool install gsearch-agent # or: pipx install gsearch-agent
gsearch setup # downloads the browser once (~1 GB), prints your MCP config
claude mcp add gsearch --scope user -- gsearch-mcp # or any MCP client
Without a proxy, gsearch uses your own IP, at most 20 searches an hour. For more, add a proxy in any format (rotating or static; HTTP, HTTPS or SOCKS5) with a hard data limit:
claude mcp add gsearch --scope user -e GSEARCH_PROXY="gate.example.com:7000:user-sid-{sid}:password" -e GSEARCH_DATA_LIMIT_MB=1000 -- gsearch-mcp
What your agent gets
| MCP tool | Returns |
|---|---|
google_search(query, page, lang, country, time_range, site) |
Organic results with real URLs, AI Overview, People also ask, related searches, ads, pagination. A block is an error with retry_after_s, never an empty list. |
google_search_status() |
Proxy data used against the limit, IPs used and blocked, the cache. Never contacts Google. |
Every string is flagged as untrusted third-party text (meta.untrusted_content), because search results can
carry prompt injection.
The same search is available as a CLI (gsearch search "query") and from Python (gsearch_core.client.SearchClient).
Legal
Automated access to Google Search may breach Google's Terms of Service. gsearch ships no CAPTCHA solver and never forges Google's tokens. Read the legal and responsible-use section before running live searches.
MIT licensed. Camoufox (MPL-2.0) is installed from PyPI as a dependency and is never vendored.
Metadata
Release files for gsearch-agent 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gsearch_agent-0.1.0.tar.gz | 47.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gsearch_agent-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 108.2 kB
Release files / gsearch_agent-0.1.0.tar.gz
| Download URL | gsearch_agent-0.1.0.tar.gz |
|---|---|
| Size | 47.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bed61f647bf7f716d70bed33aeda0c6d4203c29ab6af3fe1bbd854b3a2920e6d
|
|
BLAKE2b-256 checksum How to use checksums |
bd638045fbcfb171c7d4a495a49a30fe1c4b6fa5451b41332429c6a2abc368cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.
Transparency logRelease files / gsearch_agent-0.1.0-py3-none-any.whl
| Download URL | gsearch_agent-0.1.0-py3-none-any.whl |
|---|---|
| Size | 60.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c81a38b4ee93097ebe72b4fe6463c69c11aa0a27d6bab4157f637c6a611759b4
|
|
BLAKE2b-256 checksum How to use checksums |
43055963fcd9f7a74d8ca63b410cd56ddada38098e38e313457d05e2bb2a298e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.
Transparency log