这是一个使用Google自定义搜索API和网页内容提取功能提供网络搜索能力的模型上下文协议服务器。
使用Google自定义搜索API执行网络搜索:
从任意网页中提取内容:
创建一个Google云项目:
启用自定义搜索API:
获取API密钥:
创建自定义搜索引擎:
要与Claude桌面版一起使用,请添加包含您的Google API凭证的服务器配置:
在MacOS上:~/Library/Application Support/Claude/claude_desktop_config.json
在Windows上:%APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"google-search": {
"command": "npx",
"args": ["-y", "@mcp-for-dev/mcp-google-search"],
"env": {
"GOOGLE_API_KEY": "your-api-key-here",
"GOOGLE_SEARCH_ENGINE_ID": "your-search-engine-id-here"
}
}
}
}