Google Search MCP 工具
基于 Playwright 的 Model Context Protocol 工具,绕过搜索引擎反爬机制,为 AI 助手提供实时搜索功能。
快速入门
- 使用 npx 全局运行服务器:
npx -y @mcp-server/google-search-mcp@latest
- 在 Cursor IDE 中配置:
- 打开设置 > MCP
- 添加新服务器,填写命令:
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
- 启动服务:
yarn start
- 安装依赖:
- 参数说明:支持 query(必填)、limit、timeout、language 和 region 等参数。