About Google Search Console MCP Server
Google Search Console MCP Server makes the Google Search Console API available in n8n workflows. It is for users who need search-performance and indexing data in workflows, with tools for site listings, analytics, URL inspection, and sitemaps.
Key features
- 01List Search Console sites
- 02Retrieve search analytics
- 03View top queries and pages
- 04Check URL indexing status
- 05Retrieve sitemap information
Use cases
- 01Collect search analytics in n8n
- 02Find a site's top queries and pages
- 03Check indexing status for a URL
- 04Retrieve sitemap lists in a workflow
MCP support
The MCP server connects the Google Search Console API to n8n through its MCP Client node, exposing tools for sites, search analytics, URL inspection, and sitemaps.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEGoogle Search Console MCP Server
Een MCP server die de Google Search Console API beschikbaar maakt voor gebruik in n8n workflows via de MCP Client node.
Functionaliteiten
- Lijst alle Search Console sites op
- Ophalen van search analytics data
- Top zoektermen en pagina's bekijken
- URL indexeringsstatus controleren
- Sitemap informatie opvragen
Installatie
-
Zorg dat Python 3.7+ is geïnstalleerd op je server
-
Clone de repository:
git clone https://github.com/yourusername/google-search-console-mcp.git cd google-search-console-mcp -
Maak een virtuele omgeving en installeer dependencies:
python3 -m venv .venv source .venv/bin/activate # Op Windows: .venv\Scripts\activate pip install -r requirements.txt -
Maak het script uitvoerbaar:
chmod +x google_search_console_server.py chmod +x setup-credentials.sh -
Setup je service account credentials:
./setup-credentials.shJe kunt een bestaand service account credentials bestand gebruiken of de JSON direct plakken.
Google API Credentials
Bestaand service account hergebruiken
Als je al een service account hebt (bijvoorbeeld voor Google Ads), kun je dezelfde gebruiken voor Search Console:
- Voer het setup script uit:
./setup-credentials.sh - Kies optie 1 of 2 om je bestaande credentials in te voeren
- Geef het service account toegang tot je Search Console properties:
- Ga naar Google Search Console
- Selecteer de property
- Klik op Instellingen > Gebruikers en machtigingen
- Voeg het service account e-mailadres toe als gebruiker
Nieuw service account aanmaken
Als je nog geen service account hebt:
- Ga naar Google Cloud Console
- Maak een nieuw project of gebruik een bestaand project
- Activeer de Google Search Console API
- Maak een Service Account aan
- Download het JSON credentials bestand
- Gebruik het setup script om je credentials in te stellen:
./setup-credentials.sh
Gebruik met n8n
- Open n8n en voeg een MCP Client (STDIO) node toe
- Configureer de credentials:
- Command:
/pad/naar/.venv/bin/python(bijv./home/username/google-search-console-mcp/.venv/bin/python) - Arguments:
/pad/naar/google_search_console_server.py(bijv./home/username/google-search-console-mcp/google_search_console_server.py) - Environment:
SERVICE_ACCOUNT_JSON=/pad/naar/service_account_credentials.json
- Command:
Voorbeeld: Ophalen van top zoektermen
- Voeg een MCP Client node toe aan je workflow
- Selecteer de operatie 'Execute Tool'
- Kies tool: 'get_top_queries'
- Parameters:
{ "site_url": "sc-domain:example.com", "start_date": "2023-01-01", "end_date": "2023-01-31" }
Beschikbare tools
- list_sites: Lijst alle Search Console sites op
- get_search_analytics: Haal search analytics data op voor een site
- get_top_queries: Haal top zoektermen op voor een site
- get_top_pages: Haal top pagina's op voor een site
- get_queries_for_url: Haal zoektermen op voor een specifieke URL
- inspect_url: Controleer URL indexeringsstatus
- list_sitemaps: Lijst alle sitemaps voor een site
Voorbeelden voor n8n workflow
Voorbeeld 1: Lijst van alle sites ophalen
{
"tool": "list_sites",
"parameters": {}
}
Voorbeeld 2: Top 10 pagina's van de afgelopen 30 dagen
{
"tool": "get_top_pages",
"parameters": {
"site_url": "sc-domain:example.com",
"start_date": "2023-03-01",
"end_date": "2023-03-31",
"row_limit": 10
}
}
Voorbeeld 3: URL indexeringsstatus controleren
{
"tool": "inspect_url",
"parameters": {
"site_url": "sc-domain:example.com",
"url": "https://example.com/pagina"
}
}
Automatische installatie
Voor een volledig automatische installatie kun je ook het install.sh script gebruiken:
chmod +x install.sh
./install.sh
Veiligheid
- Service account credentials worden lokaal opgeslagen en NIET naar Git gepusht (via .gitignore)
- Gebruik altijd een veilige locatie voor je credentials.json bestand
- Geef het service account alleen toegang tot de Search Console properties die het nodig heeft
Licentie
MIT
Bijdragen
Pull requests zijn welkom. Voor grote wijzigingen, open eerst een issue om te bespreken wat je wilt veranderen.
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.