MCP 服务器
通过 Serper 提供 Google 搜索的模型上下文协议 (MCP) 服务器。该服务器使 LLM 能够从 Google 获取搜索结果信息。
可用工具
google_search- 设置所有参数google_search_images- 设置所有参数google_search_videos- 设置所有参数google_search_places- 设置所有参数google_search_maps- 设置所有参数google_search_reviews- 设置所有参数google_search_news- 设置所有参数google_search_shopping- 设置所有参数google_search_lens- 设置所有参数google_search_scholar- 设置所有参数google_search_parents- 设置所有参数google_search_autocomplete- 设置所有参数webpage_scrape- 设置所有参数
Related MCP server: MCP Server for Google Search
用法
通过 Smithery 安装
要通过Smithery自动为 Claude Desktop 安装 Serper MCP 服务器:
npx -y @smithery/cli install @garylab/serper-mcp-server --client claude使用uv (推荐)
确保您已在操作系统上安装了
uv。在您的 MCP 客户端代码配置或Claude设置(文件
claude_desktop_config.json)中添加serpermcp 服务器:{ "mcpServers": { "serper": { "command": "uvx", "args": ["serper-mcp-server"], "env": { "SERPER_API_KEY": "<Your Serper API key>" } } } }uv将使用uvx从pypi.org自动下载 mcp 服务器并应用到您的 MCP 客户端。
使用pip进行项目
将
serper-mcp-server添加到您的 MCP 客户端代码requirements.txt文件中。serper-mcp-server安装依赖项。
pip install -r requirements.txt为您的客户端添加配置:
{ "mcpServers": { "serper": { "command": "python3", "args": ["-m", "serper_mcp_server"], "env": { "SERPER_API_KEY": "<Your Serper API key>" } } } }
使用pip进行全局使用
确保
pip或pip3在您的操作系统中。pip install serper-mcp-server # or pip3 install serper-mcp-serverMCP 客户端代码配置或者Claude设置,添加
serpermcp 服务器:{ "mcpServers": { "serper": { "command": "python3", "args": ["serper-mcp-server"], "env": { "SERPER_API_KEY": "<Your Serper API key>" } } } }
调试
您可以使用 MCP 检查器来调试服务器。对于uvx安装:
npx @modelcontextprotocol/inspector uvx serper-mcp-server或者,如果您已将软件包安装在特定目录中或正在其上进行开发:
cd path/to/servers/src/serper
npx @modelcontextprotocol/inspector uv run serper-mcp-server -e SERPER_API_KEY=<the key>执照
serper-mcp-server 采用 MIT 许可证。这意味着您可以自由使用、修改和分发该软件,但须遵守 MIT 许可证的条款和条件。更多详细信息,请参阅项目仓库中的 LICENSE 文件。
Resources
Looking for Admin?
Admins can modify the Dockerfile, update the server description, and track usage metrics. If you are the server author, to authenticate as an admin.