Skip to main content
Glama
Serper MCP Server

Serper MCP Server

by garylab

Serper MCP Server

PyPI version PyPI Downloads Monthly Downloads Python Version

A Model Context Protocol server that provides Google Search via Serper. This server enables LLMs to get search result information from Google.

Available Tools

Related MCP server: Scrapeless MCP Server

Usage

Installing via Smithery

To install Serper MCP Server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @garylab/serper-mcp-server --client claude

Using uv (recommended)

  1. Make sure you had installed uv on your os system.

  2. In your MCP client code configuration or Claude settings (file claude_desktop_config.json) add serper mcp server:

    {
        "mcpServers": {
            "serper": {
                "command": "uvx",
                "args": ["serper-mcp-server"],
                "env": {
                    "SERPER_API_KEY": "<Your Serper API key>"
                }
            }
        }
    }

    uv will download mcp server automatically using uvx from pypi.org and apply to your MCP client.

Using pip for project

  1. Add serper-mcp-server to your MCP client code requirements.txt file.

    serper-mcp-server
  2. Install the dependencies.

    pip install -r requirements.txt
  3. Add the configuration for you client:

    {
        "mcpServers": {
            "serper": {
                "command": "python3",
                "args": ["-m", "serper_mcp_server"],
                "env": {
                    "SERPER_API_KEY": "<Your Serper API key>"
                }
            }
        }
    }

Using pip for globally usage

  1. Make sure the pip or pip3 is in your os system.

    pip install serper-mcp-server
    # or
    pip3 install serper-mcp-server
  2. MCP client code configuration or Claude settings, add serper mcp server:

    {
        "mcpServers": {
            "serper": {
                "command": "python3",
                "args": ["serper-mcp-server"],
                "env": {
                    "SERPER_API_KEY": "<Your Serper API key>"
                }
            }
        }
    }

Debugging

You can use the MCP inspector to debug the server. For uvx installations:

npx @modelcontextprotocol/inspector uvx serper-mcp-server

Or if you've installed the package in a specific directory or are developing on it:

git clone https://github.com/garylab/serper-mcp-server.git
cd serper-mcp-server
npx @modelcontextprotocol/inspector uv run serper-mcp-server -e SERPER_API_KEY=<the key>

License

serper-mcp-server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.

Available Tools

13 tools
google_search_autocompleteC

Search Google for results

Inputs: q (required), gl, location, hl, +2 more.

google_search_imagesD

Search Google for results

Inputs: q (required), gl, location, hl, +3 more.

google_search_lensC

Search Google for results

Inputs: url (required), gl, hl.

google_search_mapsC

Search Google for results

Inputs: q (required), ll, placeId, cid, +3 more.

google_search_newsD

Search Google for results

Inputs: q (required), gl, location, hl, +3 more.

google_search_patentsC

Search Google for results

Inputs: q (required), num, page.

google_search_placesD

Search Google for results

Inputs: q (required), gl, location, hl, +2 more.

google_search_reviewsD

Search Google for results

Inputs: fid (required), cid, placeId, sortBy, +4 more.

google_search_scholarC

Search Google for results

Inputs: q (required), gl, location, hl, +2 more.

google_search_shoppingD

Search Google for results

Inputs: q (required), gl, location, hl, +3 more.

google_search_videosC

Search Google for results

Inputs: q (required), gl, location, hl, +3 more.

webpage_scrapeC

Scrape webpage by url

Inputs: url (required), includeMarkdown.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    C2.6/5.0

    Scored across 13 tools

    Disambiguation5/5

    Each tool targets a distinct search vertical (web, images, news, etc.) as indicated by the tool name, making them clearly distinguishable. The identical descriptions are a minor issue but do not cause ambiguity because the names are self-explanatory.

    Naming Consistency4/5

    All search tools follow a consistent 'google_search_<type>' pattern, but 'webpage_scrape' breaks this pattern with a different verb and structure, causing a slight inconsistency.

    Tool Count5/5

    13 tools is well within the recommended 3-15 range and covers the major Google search verticals plus scraping, which fits the server's purpose without being excessive.

    Completeness4/5

    The tool set covers most common search types (web, images, news, maps, etc.) and includes scraping. Minor omissions like books or finance searches exist but do not significantly hinder typical usage.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      A Model Context Protocol server that enables LLMs to perform web searches using Google's Custom Search API through a standardized interface.
      1
      47
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      A Model Context Protocol server that enables AI assistants to perform web searches using Google Search API, returning up to 20 search results in JSON format.
      2
      Apache 2.0
    • F
      license
      C
      quality
      D
      maintenance
      A Model Context Protocol server that enables web search capabilities using the Tavily API, allowing AI models to retrieve current information from the internet through natural language commands.
      3
      -