Practical overview
When it fits
Use it when you want locally operated, browser-based Google search from a CLI or as an MCP tool, rather than relying on a hosted SERP API.
Who it is for
- Developers building command-line research utilities or search-result workflows.
- AI assistant builders who want to expose Google search through an MCP server.
- Researchers who need structured search results or page HTML for analysis.
Documented uses
- Submit a search query and retrieve result titles, links and snippets as JSON.
- Set a result limit or timeout and optionally display the browser during debugging.
- Retrieve and save cleaned search-page HTML, with a screenshot captured when saving.
- Provide search capabilities to an AI assistant through MCP.
Requirements & limits
- The implementation stack is TypeScript, Node.js and Playwright.
- The documented source setup uses a package manager, a TypeScript build step and global linking for MCP functionality.
- The CLI supports headless and headed operation, result limits, timeouts and browser-state file options.
- The README documents Windows-specific command-line and file-path handling.
- No repository license is supplied in the available repository evidence, despite the README describing the project as open source.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Set up Google Search Tool from source
Install, compile and globally link the project for command-line or MCP use.
Before you start
- Node.js project environment with npm, yarn or pnpm
- Git
Steps
Clone https://github.com/web-agent-master/google-search.git and change into the repository directory.
Install dependencies with npm install, yarn, or pnpm install.
Compile the TypeScript project with npm run build, yarn build, or pnpm build.
For MCP functionality, link the package globally with npm link or yarn link; pnpm link is also listed in the setup instructions.
Expected outcome
The project is installed and compiled, with global linking documented as the next setup step for MCP functionality.
Guide limitations
- These steps cover installation and compilation, not configuration or verification of a particular AI assistant.
- No operating-system or deployment compatibility guarantee is implied.
Run a search from the command line
Submit a query and receive extracted Google search results.
Before you start
- The project installed and available through its command-line tool
Steps
Run google-search followed by a quoted search query.
Optionally set the result limit or timeout with --limit and --timeout, or use --no-headless to show the browser.
For page inspection instead of parsed results, add --get-html; add --save-html to save the HTML and screenshot.
Expected outcome
The command-line tool returns search results with titles, links and snippets, or provides raw search-page HTML in HTML retrieval mode.
Guide limitations
- Google page structure may change; the project documents raw HTML retrieval as an aid for analysis and debugging.
- Search execution depends on browser automation and may encounter verification behavior.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 8 November 2026
- Original website title
- web-agent-master/google-search · Official homepage title · retained in its source language

