Skip to main content
Glama

SerpMCP

PyPI version PyPI downloads Python 3.10+ License: MIT MCP

Ein Model Context Protocol (MCP)-Server für die Google-Suche unter Verwendung der SERP API über die AceDataCloud API.

Führen Sie Google-Suchen durch und erhalten Sie strukturierte Ergebnisse direkt von Claude, VS Code oder einem beliebigen MCP-kompatiblen Client.

Funktionen

  • Websuche - Reguläre Google-Websuche mit strukturierten Ergebnissen

  • Bildersuche - Suche nach Bildern mit URLs und Vorschaubildern

  • Nachrichtensuche - Erhalten Sie aktuelle Nachrichtenartikel zu jedem Thema

  • Videosuche - Finden Sie Videos von YouTube und anderen Quellen

  • Ortssuche - Suche nach lokalen Unternehmen und Orten

  • Kartensuche - Finden Sie Standorte und geografische Informationen

  • Knowledge Graph - Erhalten Sie strukturierte Entitätsinformationen

  • Lokalisierung - Unterstützung für mehrere Länder und Sprachen

  • Zeitfilterung - Filtern Sie Ergebnisse nach Zeiträumen

Related MCP server: SerpApi MCP Server

Tool-Referenz

Tool

Beschreibung

serp_google_search

Durchsuchen Sie Google und erhalten Sie strukturierte Ergebnisse über die SERP-API.

serp_google_images

Durchsuchen Sie Google Bilder und erhalten Sie Bild-Ergebnisse.

serp_google_news

Durchsuchen Sie Google News und erhalten Sie Nachrichtenartikel-Ergebnisse.

serp_google_videos

Durchsuchen Sie Google Videos und erhalten Sie Video-Ergebnisse.

serp_google_places

Durchsuchen Sie Google nach lokalen Orten und Unternehmen.

serp_google_maps

Durchsuchen Sie Google Maps nach Standorten.

serp_list_search_types

Listen Sie alle verfügbaren Google-Suchtypen auf.

serp_list_countries

Listen Sie häufig verwendete Ländercodes für die Google-Suche auf.

serp_list_languages

Listen Sie häufig verwendete Sprachcodes für die Google-Suche auf.

serp_list_time_ranges

Listen Sie verfügbare Zeitbereichsfilter für die Google-Suche auf.

serp_get_usage_guide

Erhalten Sie eine umfassende Anleitung zur Verwendung der Google SERP-Tools.

Schnellstart

1. Holen Sie sich Ihren API-Token

  1. Registrieren Sie sich auf der AceDataCloud-Plattform

  2. Gehen Sie zur API-Dokumentationsseite

  3. Klicken Sie auf "Acquire", um Ihren API-Token zu erhalten

  4. Kopieren Sie den Token für die untenstehende Verwendung

2. Verwenden Sie den gehosteten Server (Empfohlen)

AceDataCloud hostet einen verwalteten MCP-Server — keine lokale Installation erforderlich.

Endpunkt: https://serp.mcp.acedata.cloud/mcp

Alle Anfragen erfordern einen Bearer-Token. Verwenden Sie den API-Token aus Schritt 1.

Claude.ai

Verbinden Sie sich direkt auf Claude.ai mit OAuth — kein API-Token erforderlich:

  1. Gehen Sie zu Claude.ai Einstellungen → Integrationen → Mehr hinzufügen

  2. Geben Sie die Server-URL ein: https://serp.mcp.acedata.cloud/mcp

  3. Schließen Sie den OAuth-Anmeldevorgang ab

  4. Beginnen Sie mit der Verwendung der Tools in Ihrer Konversation

Claude Desktop

Fügen Sie dies zu Ihrer Konfiguration hinzu (~/Library/Application Support/Claude/claude_desktop_config.json unter macOS):

{
  "mcpServers": {
    "serp": {
      "type": "streamable-http",
      "url": "https://serp.mcp.acedata.cloud/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_TOKEN"
      }
    }
  }
}

Cursor / Windsurf

Fügen Sie dies zu Ihrer MCP-Konfiguration hinzu (.cursor/mcp.json oder .windsurf/mcp.json):

{
  "mcpServers": {
    "serp": {
      "type": "streamable-http",
      "url": "https://serp.mcp.acedata.cloud/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_TOKEN"
      }
    }
  }
}

VS Code (Copilot)

Fügen Sie dies zu Ihrer VS Code MCP-Konfiguration hinzu (.vscode/mcp.json):

{
  "servers": {
    "serp": {
      "type": "streamable-http",
      "url": "https://serp.mcp.acedata.cloud/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_TOKEN"
      }
    }
  }
}

Oder installieren Sie die Ace Data Cloud MCP-Erweiterung für VS Code, die alle 15 MCP-Server mit einer Ein-Klick-Einrichtung bündelt.

JetBrains IDEs

  1. Gehen Sie zu Einstellungen → Tools → AI Assistant → Model Context Protocol (MCP)

  2. Klicken Sie auf Hinzufügen → HTTP

  3. Einfügen:

{
  "mcpServers": {
    "serp": {
      "url": "https://serp.mcp.acedata.cloud/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_TOKEN"
      }
    }
  }
}

Claude Code

Claude Code unterstützt MCP-Server nativ:

claude mcp add serp --transport http https://serp.mcp.acedata.cloud/mcp \
  -h "Authorization: Bearer YOUR_API_TOKEN"

Oder fügen Sie es zu Ihrem Projekt .mcp.json hinzu:

{
  "mcpServers": {
    "serp": {
      "type": "streamable-http",
      "url": "https://serp.mcp.acedata.cloud/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_TOKEN"
      }
    }
  }
}

Cline

Fügen Sie dies zu den MCP-Einstellungen von Cline hinzu (.cline/mcp_settings.json):

{
  "mcpServers": {
    "serp": {
      "type": "streamable-http",
      "url": "https://serp.mcp.acedata.cloud/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_TOKEN"
      }
    }
  }
}

Amazon Q Developer

Fügen Sie dies zu Ihrer MCP-Konfiguration hinzu:

{
  "mcpServers": {
    "serp": {
      "type": "streamable-http",
      "url": "https://serp.mcp.acedata.cloud/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_TOKEN"
      }
    }
  }
}

Roo Code

Fügen Sie dies zu den Roo Code MCP-Einstellungen hinzu:

{
  "mcpServers": {
    "serp": {
      "type": "streamable-http",
      "url": "https://serp.mcp.acedata.cloud/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_TOKEN"
      }
    }
  }
}

Continue.dev

Fügen Sie dies zu .continue/config.yaml hinzu:

mcpServers:
  - name: serp
    type: streamable-http
    url: https://serp.mcp.acedata.cloud/mcp
    headers:
      Authorization: "Bearer YOUR_API_TOKEN"

Zed

Fügen Sie dies zu den Einstellungen von Zed hinzu (~/.config/zed/settings.json):

{
  "language_models": {
    "mcp_servers": {
      "serp": {
        "url": "https://serp.mcp.acedata.cloud/mcp",
        "headers": {
          "Authorization": "Bearer YOUR_API_TOKEN"
        }
      }
    }
  }
}

cURL-Test

# Health check (no auth required)
curl https://serp.mcp.acedata.cloud/health

# MCP initialize
curl -X POST https://serp.mcp.acedata.cloud/mcp \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-03-26","capabilities":{},"clientInfo":{"name":"test","version":"1.0"}}}'

3. Oder lokal ausführen (Alternative)

Wenn Sie den Server lieber auf Ihrem eigenen Rechner ausführen möchten:

# Install from PyPI
pip install mcp-serp
# or
uvx mcp-serp

# Set your API token
export ACEDATACLOUD_API_TOKEN="your_token_here"

# Run (stdio mode for Claude Desktop / local clients)
mcp-serp

# Run (HTTP mode for remote access)
mcp-serp --transport http --port 8000

Claude Desktop (Lokal)

{
  "mcpServers": {
    "serp": {
      "command": "uvx",
      "args": ["mcp-serp"],
      "env": {
        "ACEDATACLOUD_API_TOKEN": "your_token_here"
      }
    }
  }
}

Docker (Selbst-Hosting)

docker pull ghcr.io/acedatacloud/mcp-serp:latest
docker run -p 8000:8000 ghcr.io/acedatacloud/mcp-serp:latest

Clients verbinden sich mit ihrem eigenen Bearer-Token — der Server extrahiert den Token aus dem Authorization-Header jeder Anfrage.

Verfügbare Tools

Such-Tools

Tool

Beschreibung

serp_google_search

Flexible Google-Suche mit allen Optionen

serp_google_images

Suche nach Bildern

serp_google_news

Suche nach Nachrichtenartikeln

serp_google_videos

Suche nach Videos

serp_google_places

Suche nach lokalen Orten/Unternehmen

serp_google_maps

Suche nach Kartenstandorten

Informations-Tools

Tool

Beschreibung

serp_list_search_types

Verfügbare Suchtypen auflisten

serp_list_countries

Ländercodes für die Lokalisierung auflisten

serp_list_languages

Sprachcodes für die Lokalisierung auflisten

serp_list_time_ranges

Zeitbereichsfilter-Optionen auflisten

serp_get_usage_guide

Umfassende Nutzungsanleitung abrufen

Nutzungsbeispiele

Einfache Websuche

User: Search for information about artificial intelligence

Claude: I'll search for information about AI.
[Calls serp_google_search with query="artificial intelligence"]

Nachrichtensuche mit Zeitfilter

User: What's the latest news about technology?

Claude: I'll search for recent tech news.
[Calls serp_google_news with query="technology", time_range="qdr:d"]

Lokalisierte Suche

User: Find popular restaurants in Tokyo

Claude: I'll search for restaurants in Tokyo.
[Calls serp_google_places with query="popular restaurants Tokyo", country="jp"]

Bildersuche

User: Find images of the Northern Lights

Claude: I'll search for aurora borealis images.
[Calls serp_google_images with query="Northern Lights aurora borealis"]

Suchparameter

Suchtypen

Typ

Beschreibung

search

Reguläre Websuche (Standard)

images

Bildersuche

news

Nachrichtenartikel

maps

Kartenergebnisse

places

Lokale Unternehmen

videos

Videoergebnisse

Zeitbereichsfilter

Code

Zeitraum

qdr:h

Letzte Stunde

qdr:d

Letzter Tag

qdr:w

Letzte Woche

qdr:m

Letzter Monat

Häufige Ländercodes

Code

Land

us

Vereinigte Staaten

uk

Vereinigtes Königreich

cn

China

jp

Japan

de

Deutschland

fr

Frankreich

Häufige Sprachcodes

Code

Sprache

en

Englisch

zh-cn

Chinesisch (Vereinfacht)

ja

Japanisch

es

Spanisch

fr

Französisch

de

Deutsch

Antwortstruktur

Reguläre Suchergebnisse

  • knowledge_graph: Entitätsinformationen (Unternehmen, Person, etc.)

  • answer_box: Direkte Antworten

  • organic: Reguläre Suchergebnisse mit Titel, Link, Snippet

  • people_also_ask: Verwandte Fragen

  • related_searches: Verwandte Suchanfragen

Bildsuchergebnisse

  • images: Bildergebnisse mit URLs und Vorschaubildern

Nachrichtensuchergebnisse

  • news: Nachrichtenartikel mit Quelle und Datum

Konfiguration

Umgebungsvariablen

Variable

Beschreibung

Standard

ACEDATACLOUD_API_TOKEN

API-Token von AceDataCloud

Erforderlich

ACEDATACLOUD_API_BASE_URL

API-Basis-URL

https://api.acedata.cloud

ACEDATACLOUD_OAUTH_CLIENT_ID

OAuth-Client-ID (gehosteter Modus)

—

ACEDATACLOUD_PLATFORM_BASE_URL

Plattform-Basis-URL

https://platform.acedata.cloud

SERP_REQUEST_TIMEOUT

Anfrage-Timeout in Sekunden

30

LOG_LEVEL

Protokollierungsebene

INFO

Befehlszeilenoptionen

mcp-serp --help

Options:
  --version          Show version
  --transport        Transport mode: stdio (default) or http
  --port             Port for HTTP transport (default: 8000)

Entwicklung

Entwicklungsumgebung einrichten

# Clone repository
git clone https://github.com/AceDataCloud/SerpMCP.git
cd SerpMCP

# Create virtual environment
python -m venv .venv
source .venv/bin/activate  # or `.venv\Scripts\activate` on Windows

# Install with dev dependencies
pip install -e ".[dev,test]"

Tests ausführen

# Run unit tests
pytest

# Run with coverage
pytest --cov=core --cov=tools

# Run integration tests (requires API token)
pytest tests/test_integration.py -m integration

Code-Qualität

# Format code
ruff format .

# Lint code
ruff check .

# Type check
mypy core tools

Erstellen & Veröffentlichen

# Install build dependencies
pip install -e ".[release]"

# Build package
python -m build

# Upload to PyPI
twine upload dist/*

Projektstruktur

SerpMCP/
├── core/                   # Core modules
│   ├── __init__.py
│   ├── client.py          # HTTP client for SERP API
│   ├── config.py          # Configuration management
│   ├── exceptions.py      # Custom exceptions
│   └── server.py          # MCP server initialization
├── tools/                  # MCP tool definitions
│   ├── __init__.py
│   ├── search_tools.py    # Search tools
│   └── info_tools.py      # Information tools
├── prompts/                # MCP prompt templates
│   └── __init__.py
├── tests/                  # Test suite
│   ├── conftest.py
│   ├── test_client.py
│   └── test_config.py
├── deploy/                 # Deployment configs
│   └── production/
│       ├── deployment.yaml
│       ├── ingress.yaml
│       └── service.yaml
├── .env.example           # Environment template
├── .gitignore
├── CHANGELOG.md
├── Dockerfile             # Docker image for HTTP mode
├── docker-compose.yaml    # Docker Compose config
├── LICENSE
├── main.py                # Entry point
├── pyproject.toml         # Project configuration
└── README.md

API-Referenz

Dieser Server umschließt die AceDataCloud Google SERP API:

Mitwirken

Beiträge sind willkommen! Bitte:

  1. Forken Sie das Repository

  2. Erstellen Sie einen Feature-Branch (git checkout -b feature/amazing)

  3. Committen Sie Ihre Änderungen (git commit -m 'Add amazing feature')

  4. Pushen Sie auf den Branch (git push origin feature/amazing)

  5. Öffnen Sie einen Pull Request

Lizenz

MIT-Lizenz - siehe LICENSE für Details.


Mit Liebe gemacht von AceDataCloud

Available Tools

11 tools
serp_get_usage_guideGet Google search usage guideA
Read-onlyIdempotent
Inspect

Get a comprehensive guide for using the Google SERP tools.

Provides detailed information on how to use the SERP search tools
effectively, including parameters, examples, and best practices.

Returns:
    Complete usage guide for SERP tools.

Inputs: no named parameters. Returns: result

serp_google_imagesSearch Google ImagesC
Read-only
Inspect

Search Google Images and get image results.

Performs a Google Image search and returns structured image results.

Inputs: query (required), page, number, country, +2 more. Returns: result

serp_google_mapsSearch Google MapsC
Read-only
Inspect

Search Google Maps for locations.

Performs a Google Maps search and returns structured map results.

Inputs: query (required), page, number, country, +1 more. Returns: result

serp_google_newsSearch Google NewsC
Read-only
Inspect

Search Google News and get news article results.

Performs a Google News search and returns structured news results.

Inputs: query (required), page, number, country, +2 more. Returns: result

serp_google_placesSearch Google PlacesC
Read-only
Inspect

Search Google for local places and businesses.

Performs a Google Places search and returns structured place results.

Inputs: query (required), page, number, country, +1 more. Returns: result

serp_google_videosSearch Google VideosC
Read-only
Inspect

Search Google Videos and get video results.

Performs a Google Video search and returns structured video results.

Inputs: query (required), page, number, country, +1 more. Returns: result

serp_list_countriesList search country codesA
Read-onlyIdempotent
Inspect

List commonly used country codes for Google search.

Shows common country codes that can be used to localize search results.

Returns:
    Table of country codes and their countries.

Inputs: no named parameters. Returns: result

serp_list_languagesList search language codesA
Read-onlyIdempotent
Inspect

List commonly used language codes for Google search.

Shows common language codes that can be used to get results in specific languages.

Returns:
    Table of language codes and their languages.

Inputs: no named parameters. Returns: result

serp_list_search_typesList Google search typesA
Read-onlyIdempotent
Inspect

List all available Google search types.

Shows all available search types and their use cases.
Use this to understand which search type to use for your query.

Returns:
    Table of all search types with descriptions.

Inputs: no named parameters. Returns: result

serp_list_time_rangesList search time filtersA
Read-onlyIdempotent
Inspect

List available time range filters for Google search.

Shows all time range options that can be used to filter results by date.

Returns:
    Table of time range codes and their meanings.

Inputs: no named parameters. Returns: result

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 11 tools

    Disambiguation2/5

    The serp_list_* and serp_get_usage_guide tools are distinct, but serp_google_search accepts a search_type parameter covering images/news/videos/places/maps while separate tools exist for each of those same verticals. This creates multiple overlapping search tools with unclear boundaries, so an agent may struggle to choose between the general and specialized versions.

    Naming Consistency5/5

    All tools use a consistent serp_ prefix and snake_case naming, with predictable groupings: serp_list_* for reference lists, serp_get_* for guides, and serp_google_* for search actions. The pattern is easy to follow and no naming convention is mixed.

    Tool Count4/5

    At 11 tools, the set is within a reasonable range for a Google SERP API wrapper. However, the five specialized search tools duplicate functionality already available through serp_google_search, so the surface is slightly larger than necessary.

    Completeness5/5

    The tool set covers the apparent domain well: it provides a general Google search, all major search verticals (images, news, videos, places, maps), and reference lists for search types, countries, languages, and time ranges. There are no obvious missing operations for a read-only SERP search server.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      C
      maintenance
      An MCP (Model Context Protocol) server that provides Google search capabilities and webpage content analysis tools. This server enables AI models to perform Google searches and analyze webpage content programmatically.
      262
      -
    • A
      license
      A
      quality
      A
      maintenance
      An MCP server that integrates with SerpApi to retrieve search results from multiple search engines including Google, Bing, Yahoo, and others, enabling fast access to both live and archived search data.
      4
      188
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      A Model Context Protocol (MCP) based search API server that provides standardized access to Google Maps, Google Flights, Google Hotels and other services. This server enables AI assistants to access various search services through a unified interface.
      74
      MIT
    • -
      license
      Not graded
      quality
      Not graded
      maintenance
      An MCP (Multi-Agent Conversation Protocol) Server that enables interaction with Google's Custom Search API, allowing agents to perform customized web searches through natural language requests.
      -