A
licenseB
qualityD
maintenanceA Model Context Protocol server that enables LLMs to perform web searches using Google's Custom Search API through a standardized interface.
1
47
MIT
提供 Google 自定义搜索功能的模型上下文协议 (MCP) 服务器。
要通过Smithery自动为 Claude Desktop 安装 google-search-mcp-server:
npx -y @smithery/cli install @gradusnikov/google-search-mcp-server --client claude克隆存储库:
git clone https://github.com/gradusnikov/google-search-mpc-server.git
cd google-search-mpc-server安装依赖项:
pip install fastmcp google-api-python-client python-dotenvRelated MCP server: Scrapeless MCP Server
在项目根目录中创建一个.env文件,其中包含以下变量:
GOOGLE_API_KEY=your_google_api_key
GOOGLE_CSE_ID=your_custom_search_engine_id要获取这些凭证:
创建 Google Cloud 项目并启用自定义搜索 API
从 Google Cloud Console 生成 API 密钥
在https://cse.google.com/cse/all创建自定义搜索引擎并获取其 ID
使用 MCP 启动服务器:
mcp run google_search_mcp_server.py或者将服务器添加到 Claude 桌面应用程序CLAUDE_DIRECTORY/claude_desktop_config.json 。例如,如果你使用的是 Windows Subsystem for Linux (WSL),它可能如下所示:
"google-search": {
"command": "wsl.exe",
"args": [
"bash",
"-c",
"source /home/[user]/anaconda3/etc/profile.d/conda.sh && conda activate mcp && /home/[user]/anaconda3/bin/mcp run /home/[user]/google-search-mpc-server/google_search_mcp_server.py"
]
},This server cannot be deployed
MCP server for Google search results via SERP API
Read-only Google Search Console MCP server for AI assistants.
1 Google Search endpoints. Pay per call in USDC via x402.
Hosted Google Ads MCP server for Claude, ChatGPT and Cursor, with each action switched per account.