Skip to main content
Glama
SERP MCP Server

SERP MCP Server

by LiranYoffe

SERP MCP Server

PyPI version Python versions CI

Google SERP scraper as a Model Context Protocol (MCP) server with fingerprint rotation.


Sponsored by

Related MCP server: Serper Search MCP Server

Features

  • Automatic fingerprint rotation per request

  • Request blocking (only www.google.com/search allowed)

  • Lite mode for 50% less traffic (organic results only, DEFAULT)

  • Full mode extracts: organic results, sitelinks, PAA, related searches, knowledge graph

  • Location encoding via protobuf (UULE format)

  • Validated country/language codes

Installation

Claude Code

claude mcp add serp-mcp -- uvx serp-mcp

opencode

Add to your ~/.config/opencode/opencode.jsonc:

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "serp-mcp": {
      "type": "local",
      "command": ["uvx", "serp-mcp"],
      "enabled": true
    }
  }
}

Manual Usage

# Run with uvx (automatically installs and runs the latest version)
uvx serp-mcp

Development

git clone https://github.com/LiranYoffe/serp-mcp
cd serp-mcp
uv sync
uv run serp-mcp

Tools

Search Google and extract SERP data.

Parameters:

  • query (required): Search query

  • country (default: "us"): Country code (us, uk, fr, de, etc.)

  • language (default: "en"): Language code (en, fr, de, es, etc.)

  • location (optional): Location for local results (e.g., "New York, NY")

  • time_range (optional): Time filter (hour, day, week, month, year)

  • autocorrect (default: true): Enable query autocorrection

  • page (default: 1): Page number

  • lite (default: true): Lite mode (organic results only, 50% less traffic)

Example Usage:

Search for "python tutorial" with default settings
Search for "python tutorial" in France with lite mode
Search for "restaurants" in New York with 7-day time filter

Country Codes

Valid ISO 3166-1 alpha-2 codes: us, uk, fr, de, es, it, jp, kr, cn, in, br, etc. (243 codes)

Language Codes

Valid Google language codes: en, fr, de, es, it, pt, ru, ja, ko, zh-cn, zh-tw, ar, hi, etc. (78 codes)

Time Ranges

  • hour: Past hour

  • day: Past 24 hours

  • week: Past week

  • month: Past month

  • year: Past year

Architecture

  • Fingerprint Rotation: Automatic browser fingerprint rotation for each request

  • MCP Protocol: Model Context Protocol server with stdio transport

  • Blocking: All non-Google requests blocked for efficiency

Development

Run Tests

uv run pytest

Regenerate Protobuf

uv run python -m grpc_tools.protoc \
  --python_out=serp_mcp \
  -Iserp_mcp \
  serp_mcp/uule.proto

License

MIT

Available Tools

1 tool

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 1 tool

    Disambiguation5/5

    There is only one tool, so there is no possibility of confusion or misselection between tools. Any agent request maps unambiguously to `search`.

    Naming Consistency4/5

    The single name `search` is a clear, conventional verb that matches the domain (SERP). With only one tool there is no pattern to compare against, so consistency cannot be fully demonstrated, but nothing is off-style.

    Tool Count3/5

    A one-tool surface is on the thin side; the server is essentially a single API call wrapper. It earns its place, but there is little scope for composing tools together, which limits usefulness as a set.

    Completeness3/5

    The tool covers the core 'run a search' operation, but obvious gaps remain: no pagination/result-count control, no option for news/image/vertical search, and no way to fetch or filter individual results. Agents can work around this but will hit dead ends on common follow-up needs.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      B
      quality
      B
      maintenance
      Enables integration of Google search functionality into MCP-enabled applications using the Serper API, providing rich search results, configurable parameters, and efficient response handling.
      1
      48
      -
    • A
      license
      A
      quality
      D
      maintenance
      Provides real-time Google search results (organic + knowledge graph) with country targeting, language, time filters, and pagination, at low cost.
      1
      9 npm
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables MCP clients to perform live Google searches and retrieve structured SERP data including organic results, AI Overviews, People Also Ask, AI Mode answers, news, shopping, and short-video results via eight read-only tools.
      10
      70 npm
      20 PyPI
      13
      MIT