Serper MCP Server

by garylab

Integrations

  • Provides Google Search functionality via Serper API, allowing access to search results with support for customizing location, language, time period, and number of results.

MCP 服务器

通过 Serper 提供 Google 搜索的模型上下文协议 (MCP) 服务器。该服务器使 LLM 能够从 Google 获取搜索结果信息。

可用工具

  • google_search - 获取搜索结果。
    • 必需参数:
      • q (字符串):要搜索的查询
    • 可选参数:
      • gl (字符串):要搜索的国家/地区,例如美国、英国、加拿大、澳大利亚等。
      • location (字符串):要搜索的位置,例如美国加利福尼亚州旧金山
      • hl (字符串):要搜索的语言,例如 en、es、fr、de 等。
      • tbs (字符串):要搜索的时间段,例如 d、w、m、y
      • num (整数):返回的结果数,最大值为 100(默认值:10)
      • page (整数):要返回的页码,第一页为 1(默认值:1)

用法

使用uv (推荐)

  1. 确保您已在操作系统上安装了uv
  2. 在您的 MCP 客户端代码配置或Claude设置(文件claude_desktop_config.json )中添加serper mcp 服务器:
    { "mcpServers": { "serper": { "command": "uvx", "args": ["serper-mcp-server"], "env": { "SERPER_API_KEY": "<Your Serper API key>" } } } }
    uv将使用uvxpypi.org自动下载 mcp 服务器并应用到您的 MCP 客户端。

使用pip进行项目

  1. serper-mcp-server添加到您的 MCP 客户端代码requirements.txt文件中。
    serper-mcp-server
  2. 安装依赖项。
    pip install -r requirements.txt
  3. 为您的客户端添加配置:
    { "mcpServers": { "serper": { "command": "python3", "args": ["-m", "serper_mcp_server"], "env": { "SERPER_API_KEY": "<Your Serper API key>" } } } }

使用pip进行全局使用

  1. 确保pippip3在您的操作系统中。
    pip install serper-mcp-server # or pip3 install serper-mcp-server
  2. MCP 客户端代码配置或者Claude设置,添加serper mcp 服务器:
    { "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

执照

serper-mcp-server 采用 MIT 许可证。这意味着您可以自由使用、修改和分发该软件,但须遵守 MIT 许可证的条款和条件。更多详细信息,请参阅项目仓库中的 LICENSE 文件。

-
security - not tested
F
license - not found
-
quality - not tested

模型上下文协议服务器使 LLM 能够通过 Serper API 执行 Google 搜索,从而允许模型从网络检索当前信息。

  1. Available Tools
    1. Usage
      1. Using uv (recommended)
      2. Using pip for project
      3. Using pip for globally usage
    2. Debugging
      1. License

        Related MCP Servers

        • A
          security
          A
          license
          A
          quality
          A Model Context Protocol server that enables LLMs to perform web searches using Google's Custom Search API through a standardized interface.
          Last updated -
          1
          7
          TypeScript
          MIT License
        • A
          security
          A
          license
          A
          quality
          A Model Context Protocol server that enables LLMs to interact with Salesforce data through SOQL queries, SOSL searches, and various API operations including record management.
          Last updated -
          10
          53
          Python
          MIT License
        • A
          security
          A
          license
          A
          quality
          A Model Context Protocol server that provides LLMs with access to Valyu's knowledge retrieval and feedback APIs for searching proprietary/web sources and submitting transaction feedback.
          Last updated -
          2
          TypeScript
          MIT License
          • Linux
          • Apple
        • -
          security
          A
          license
          -
          quality
          A Model Context Protocol server that allows LLMs to interact with web content through standardized tools, currently supporting web scraping functionality.
          Last updated -
          Python
          MIT License
          • Linux
          • Apple

        View all related MCP servers

        ID: kiolh4qib8