Google Search
STDIOPlaywright-based MCP tool that performs Google searches and bypasses anti-bot mechanisms.
Playwright-based MCP tool that performs Google searches and bypasses anti-bot mechanisms.
Model Context Protocol server for google search. A Playwright-based Model Context Protocol (MCP) tool that bypasses search engine anti-bot mechanisms, performs Google searches, and extracts results, providing real-time search capabilities for AI assistants like Claude and Cursor.
Installation - Globally
Run the MCP server using npx:
npx -y @mcp-server/google-search-mcp@latest
In your Cursor IDE
Cursor Settings
> MCP
+ Add New MCP Server
google-search
(or any name you prefer)command
npx -y @mcp-server/google-search-mcp@latest
Installation - Project-specific
Add an .cursor/mcp.json
file to your project:
{ "mcpServers": { "google-search": { "command": "npx", "args": [ "-y", "@mcp-server/google-search-mcp@latest" ] } } }
yarn install
yarn build
yarn start
To debug the server, you can use the MCP Inspector:
# First build the project yarn build # Start the MCP Inspector and server npx @modelcontextprotocol/inspector node dist/index.js
The search tool accepts the following parameters:
query
(required): Search query stringlimit
(optional): Number of search results to return, default is 10timeout
(optional): Search operation timeout in milliseconds, default is 60000language
(optional): Language for search results, e.g., zh-CN, en-US, default is zh-CNregion
(optional): Region for search results, e.g., cn, com, co.jp, default is cnBy default, the browser state is saved in the .google-search-browser-state.json
file in the user's home directory. You can modify this path through parameters.
You can specify the language and region for search results through parameters:
// English (US) search results
"language": "en-US", "region": "com"
// Japanese search results
"language": "ja-JP", "region": "co.jp"
// Chinese (Simplified) search results
"language": "zh-CN", "region": "cn"
MIT
This tool is for learning and research purposes only. When using this tool to access Google or other search engines, please comply with relevant terms of service and legal regulations. The author is not responsible for any issues resulting from the use of this tool.