Skip to main content

Google Search CLI and MCP server for AI agents

Project description

gsearch-mcp-cli

Google Search CLI and MCP server for AI agents. Search Google (regular + AI Mode), fetch web pages as Markdown, with time filtering. No Google account needed.

Install

pip install gsearch-mcp-cli

Or with uv / pipx:

uv pip install gsearch-mcp-cli    # uv
pipx install gsearch-mcp-cli      # pipx (isolated)

Run without installing:

uvx --from gsearch-mcp-cli gsearch "your query"

Requirements: A Chromium-based browser (Chrome, Brave, Edge, Chromium, Vivaldi, or Opera).

Quick Start

gsearch setup                              # one-time profile warmup (~8s)
gsearch "what is kubernetes"               # search Google
gsearch "AI news" --time day               # last 24 hours
gsearch "breaking news" --time 1h          # last hour
gsearch ai "explain docker architecture"   # AI Mode (g.ai)
gsearch fetch "https://example.com"        # page to Markdown

Time Filtering

Filter results by time period -- critical for news and recent events:

gsearch "query" --time hour      # last hour
gsearch "query" --time 12h       # last 12 hours
gsearch "query" --time day       # last 24 hours
gsearch "query" --time week      # last 7 days
gsearch "query" --time month     # last month
gsearch "query" --time year      # last year
gsearch "query" --after 2026-01-01 --before 2026-03-31  # custom range

Commands

Command Description
gsearch "query" Google Search (default) with AI Overview + organic results
gsearch ai "query" Google AI Mode -- synthesized answer with citations
gsearch fetch "url" Fetch URL and convert to clean Markdown
gsearch setup Browser profile warmup (one-time)
gsearch setup add <tool> Configure MCP server for an AI tool
gsearch config show Show configuration
gsearch doctor Run diagnostics
gsearch skill install <tool> Install skill for AI tools
gsearch --ai Print AI-optimized documentation

MCP Server

For AI agents via Model Context Protocol:

gsearch-mcp                       # start MCP server (stdio)
gsearch setup add cursor          # configure for Cursor
gsearch setup add claude-code     # configure for Claude Code

MCP Tools:

  • gsearch_search(query, time_filter="day", ...) -- Google Search
  • gsearch_ai(query, time_filter="week", ...) -- AI Mode
  • gsearch_fetch(url, format="md", ...) -- Fetch page as Markdown

How It Works

Uses headless Chrome via CDP (Chrome DevTools Protocol) with a persistent anonymous profile. Google's BotGuard requires a warmed-up browser session -- gsearch setup establishes this once. No Google account or login needed.

Supported AI Tools

MCP Setup (gsearch setup add): Claude Code, Gemini CLI, Cursor, Windsurf, Cline, Antigravity, Codex, OpenCode

Skill Install (gsearch skill install): Claude Code, Cursor, Codex, Gemini CLI, OpenCode, Antigravity, Cline, OpenClaw, CC-Claw

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gsearch_mcp_cli-0.0.1.tar.gz (66.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gsearch_mcp_cli-0.0.1-py3-none-any.whl (41.9 kB view details)

Uploaded Python 3

File details

Details for the file gsearch_mcp_cli-0.0.1.tar.gz.

File metadata

  • Download URL: gsearch_mcp_cli-0.0.1.tar.gz
  • Upload date:
  • Size: 66.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for gsearch_mcp_cli-0.0.1.tar.gz
Algorithm Hash digest
SHA256 9f0d43568b2877a4acf69934628a6f25bd31e43717fd96e90a482829a1bf575f
MD5 569a9dc8b5bbfaebe4aa4fbe75391f25
BLAKE2b-256 9321ba1e7037750345fa15d4c2df1bcb23eb153d7840e4c7aa6849727ba6c1fe

See more details on using hashes here.

Provenance

The following attestation bundles were made for gsearch_mcp_cli-0.0.1.tar.gz:

Publisher: release.yml on jacob-bd/gsearch-mcp-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gsearch_mcp_cli-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for gsearch_mcp_cli-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1a37c0cfc499de678039727e990bcc1a19903fa6a1d49b953fe2ed2242341f1e
MD5 1dbb5d8fc57869e78c11e4e29142dab2
BLAKE2b-256 e0748dc202af642d19f6777feddab1904ea9c3f5539bf3f36a8aca2b1626131b

See more details on using hashes here.

Provenance

The following attestation bundles were made for gsearch_mcp_cli-0.0.1-py3-none-any.whl:

Publisher: release.yml on jacob-bd/gsearch-mcp-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page