
modelcontextprotocol-servers/google-search-mcp
Browser automationこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
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,...
概要
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. - : Uses browser fingerprint spoofing and real user behavior simulation to avoid detection - : Switches to headed mode when encountering CAPTCHAs, allowing users to complete verification - : Saves browser session state to reduce the need for repeated verification - : Uses multiple selector combinations to adapt to changes in Google search pages - : Implements the Model Context Protocol for easy integration with AI assistants - : Supports search results in different languages and regions 1. Go to Cursor Settings > MCP 2. Click + Add New MCP Server 3. Fill in the form: - Name: google-search (or any name you prefer) - Type: command - Command: npx -y @mcp-server/google-search-mcp@latest Add an .cursor/mcp.
README
以下は原文 README の抜粋です。原文を見る。
Google Search MCP
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.
Features
- Anti-Bot Bypass: Uses browser fingerprint spoofing and real user behavior simulation to avoid detection
- Automatic CAPTCHA Handling: Switches to headed mode when encountering CAPTCHAs, allowing users to complete verification
- State Persistence: Saves browser session state to reduce the need for repeated verification
- Adaptability: Uses multiple selector combinations to adapt to changes in Google search pages
- MCP Integration: Implements the Model Context Protocol for easy integration with AI assistants
- Multi-language Support: Supports search results in different languages and regions
Using with Cursor
Installation - Globally
Run the MCP server using npx:
npx -y @mcp-server/google-search-mcp@latest
In your Cursor IDE
- Go to
Cursor Settings>MCP - Click
+ Add New MCP Server - Fill in the form:
- Name:
google-search(or any name you prefer) - Type:
command - Command:
npx -y @mcp-server/google-search-mcp@latest
- Name:
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"
]
}
}
}
Development
yarn install
Build the project
yarn build
Usage
Running as an MCP Server
yarn start
Using with MCP Inspector
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
Parameters
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 cn
How It Works
- The tool uses Playwright to control a Chromium browser to perform Google searches
- It avoids bot detection through browser fingerprint spoofing and real user behavior simulation
- When encountering CAPTCHA verification, it automatically switches to headed mode for user completion
- It extracts search results and returns them in a structured format
- It saves browser state for reuse in subsequent searches
Advanced Configuration
Browser State File
インストール
npx -y @mcp-server/google-search-mcp@latest設定
{
"mcpServers": {
"google-search": {
"command": "npx",
"args": [
"-y",
"@mcp-server/google-search-mcp@latest"
]
}
}
}