这是一个提供 Google 搜索能力和网页内容分析工具的 MCP(模型上下文协议)服务器。该服务器使 AI 模型能够通过编程方式执行 Google 搜索并分析网页内容。
npm install
pip install flask google-api-python-client flask-cors
api-keys.json 文件:{
"api_key": "your-google-api-key",
"search_engine_id": "your-custom-search-engine-id"
}
%APPDATA%/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json):{
"mcpServers": {
"google-search": {
"command": "npm",
"args": ["run", "start:all"],
"cwd": "/path/to/google-search-server"
}
}
}
npm run build
启动 TypeScript 和 Python 服务器:
npm run start:all
或者分别运行它们:
npm startnpm run start:python执行 Google 搜索并检索结果。
{
"name": "search",
"arguments": {
"query": "your search query",
"num_results": 5 // 可选,默认值:5
}
}
从单个网页提取并分析内容。
{
"name": "analyze_webpage",
"arguments": {
"url": "https://example.com"
}
}
在单个请求中分析多个网页。
{
"name": "batch_analyze_webpages",
"arguments": {
"urls": [
"https://example1.com",
"https://example2.com"
]
}
}
api-keys.json 文件中服务器提供了详细的错误消息,包括:
服务器由两个主要组件组成:
MIT