Google Search MCP
Google 搜索 MCP
用于谷歌搜索的模型上下文协议服务器。一款基于 Playwright 的模型上下文协议 (MCP) 工具,可绕过搜索引擎反机器人机制,执行谷歌搜索并提取结果,为 Claude 和 Cursor 等人工智能助手提供实时搜索功能。
特征
反机器人绕过:使用浏览器指纹欺骗和真实用户行为模拟来避免检测
自动验证码处理:遇到验证码时切换到头模式,允许用户完成验证
状态持久性:保存浏览器会话状态,以减少重复验证的需要
适应性:使用多种选择器组合来适应 Google 搜索页面的变化
MCP 集成:实现模型上下文协议,以便轻松与 AI 助手集成
多语言支持:支持不同语言和地区的搜索结果
Related MCP server: Playread
与游标一起使用
安装 - 全球
使用 npx 运行 MCP 服务器:
npx -y @mcp-server/google-search-mcp@latest在你的 Cursor IDE 中
前往
Cursor Settings>MCP点击
+ Add New MCP Server填写表格:
名称:
google-search(或您喜欢的任何名称)类型:
command命令:
npx -y @mcp-server/google-search-mcp@latest
安装 - 特定于项目
将.cursor/mcp.json文件添加到您的项目:
{
"mcpServers": {
"google-search": {
"command": "npx",
"args": [
"-y",
"@mcp-server/google-search-mcp@latest"
]
}
}
}发展
yarn install构建项目
yarn build用法
作为 MCP 服务器运行
yarn start与 MCP Inspector 一起使用
要调试服务器,您可以使用MCP 检查器:
# First build the project
yarn build
# Start the MCP Inspector and server
npx @modelcontextprotocol/inspector node dist/index.js参数
搜索工具接受以下参数:
query(必需):搜索查询字符串limit(可选):返回的搜索结果数量,默认为 10timeout(可选):搜索操作超时(以毫秒为单位),默认值为 60000language(可选):搜索结果的语言,例如 zh-CN、en-US,默认为 zh-CNregion(可选):搜索结果的地区,例如 cn、com、co.jp,默认为 cn
工作原理
该工具使用 Playwright 控制 Chromium 浏览器执行 Google 搜索
它通过浏览器指纹欺骗和真实用户行为模拟来避免机器人检测
遇到CAPTCHA验证时,自动切换到头显模式供用户完成
它提取搜索结果并以结构化格式返回
它保存浏览器状态以便在后续搜索中重复使用
高级配置
浏览器状态文件
默认情况下,浏览器状态保存在用户主目录下的.google-search-browser-state.json文件中。您可以通过参数修改此路径。
语言和区域设置
您可以通过参数指定搜索结果的语言和地区:
// 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"笔记
首次使用时,如遇到CAPTCHA验证,系统将自动切换至头显模式,以便您完成验证
验证后系统会保存状态文件,使后续搜索更加顺畅
过于频繁的搜索请求可能会触发 Google 的速率限制机制
本工具仅供学习研究之用,请遵守Google的服务条款
执照
麻省理工学院
免责声明
本工具仅供学习研究之用。使用本工具访问谷歌或其他搜索引擎时,请遵守相关服务条款及相关法律法规。作者对因使用本工具而产生的任何问题概不负责。
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to perform real-time Google searches with anti-bot protection. Bypasses search engine restrictions using advanced browser automation to extract search results locally without requiring paid API services.7MIT
- AlicenseNot gradedqualityFmaintenanceEnables Google search automation and web content extraction using Playwright. Performs Google searches and fetches main content from web pages, returning structured results in JSON format.44MIT
- AlicenseBqualityDmaintenanceExposes Playwright-powered automation tools to AI assistants for navigating web pages, interacting with elements, and extracting structured data. It features specialized scrapers for Indeed and Google Search, along with stealth mode to bypass bot detection.30ISC
- AlicenseNot gradedqualityFmaintenanceProvides real-time Google search capabilities to AI assistants like Claude, bypassing anti-scraping mechanisms.28618MIT
Related MCP Connectors
The best web search for your AI Agent
Web research for agents: quality-scored Google search, webpage extraction, and deep research.
Web search for AI agents — one tool across 6 engines, routed to the cheapest + cached.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/modelcontextprotocol-servers/google-search-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server