ai newsMi., 25. Nov.
EilmeldungYale’s Sonnenfeld: Nvidia is a ‘detriment’ to U.S. industrial might — not a champion

GSC MCP: Google Search Console direkt in Claude anbinden und abfragen

Mit einem MCP-Server lässt sich die Google Search Console an Claude anbinden und per natürlicher Sprache abfragen. Wer nicht selbst ein GitHub-Repository klonen will, nutzt einen Remote-Server, der über eine einzige URL als Connector hinzugefügt wird.

dev.toMontag 09:46 · 23.11.DE6 Min. Lesezeit
Bild: dev.to

Wenn man nach "GSC MCP for Claude" sucht, findet man zwei Arten von Antworten. Die eine ist ein GitHub-Repository, das man klont, mit einem Google-Service-Account versieht und neben Claude Desktop betreibt. Die andere ist ein Remote-Server, den man mit einer einzigen URL als Connector hinzufügt. Ich habe eine der zweiten Art gebaut, GSC Wizard, daher ist dieser Beitrag aus dieser Perspektive geschrieben: wie die Verbindung funktioniert, wie man sie in Claude und in Claude Code einrichtet, wonach sich zu fragen sich lohnt, sobald die Verbindung steht, und wo der Nutzen endet.

Ich sage vorab, dass ich der Entwickler bin, man sollte die Meinungen also als meine eigenen betrachten und die Mechanik selbst überprüfen. Alles im Folgenden lässt sich gegen den öffentlichen Endpunkt verifizieren.

Das Model Context Protocol erlaubt es Claude, Tools auf einem selbst gewählten Server aufzurufen. Ein Search-Console-MCP-Server stellt Tools wie "query search analytics" oder "inspect this URL" bereit, Claude entscheidet, welches aufgerufen wird, und der Server liefert strukturierte Ergebnisse zurück, über die Claude nachdenkt.

Entscheidend ist, was diese Tools zurückgeben. Ein dünner Wrapper reicht die Zeilen der Google Search Analytics API an das Modell weiter und hofft, dass das Modell sie korrekt zusammenrechnet. Das funktioniert bei einem kleinen Blog und bricht bei einer Seite mit ein paar hunderttausend Query- und Seiten-Kombinationen pro Monat zusammen, weil die Zeilen nicht ins Kontextfenster passen und Sprachmodelle bei Arithmetik über tausende Zeilen unzuverlässig sind.

GSC Wizard geht den anderen Weg. Die Analyse läuft auf dem Server, in einem ClickHouse-Warehouse, und Claude erhält das fertige Ergebnis: die Seiten, die nachlassen, und wie viele Klicks jede verloren hat, die Queries, bei denen zwei der eigenen URLs konkurrieren, den Tag, an dem sich ein Trend geändert hat. Claude macht dann das, was es gut kann: die nächste Frage wählen und die Antwort erklären.

Der Server läuft remote, es gibt also nichts zu installieren und keinen Schlüssel einzufügen.

Danach erscheinen die Tools im Tools-Menü jedes Gesprächs, und Claude sieht ausschließlich die Properties, die man verbunden hat. Den Zugriff kann man jederzeit über das eigene Konto widerrufen.

claude mcp add --transport http gsc-wizard \ https://mcp.gscwizard.com/mcp \ --header "Authorization: Bearer gscw_live_..." Vollbildmodus öffnen Vollbildmodus verlassen Führe /mcp in Claude Code aus, um zu bestätigen, dass der Server verbunden ist, und um seine Tools zu sehen.

Zwei Details zu Schlüsseln sollte man kennen, bevor man einen erstellt. Ein Schlüssel wird nur einmal angezeigt, weil nur ein SHA-256-Hash davon gespeichert wird. Und ein Schlüssel trägt einen beim Erstellen gewählten Scope, read-only oder read-and-write. Ein read-only-Schlüssel kann kein Tool aufrufen, das etwas verändert, und diese Prüfung läuft auf dem Server, bevor der Handler des Tools ausgeführt wird. "Read-only" ist also eine Eigenschaft des Credentials und keine Anweisung, deren Befolgung dem Modell anvertraut wird.

Wer lieber keine Prompts von Grund auf schreiben möchte, findet einen Satz fertiger SEO-Skills (Site-Audit, Traffic-Drop, Content-Decay, Kannibalisierung, Quick Wins, Kundenreport), die dem Agenten erklären, wie die Tools zu nutzen sind:

npx skills add jbobbink/seo-gsc-wizard Vollbildmodus öffnen Vollbildmodus verlassen Ein Hinweis zur Konfigurationsdatei von Claude Desktop: Sie startet nur lokale stdio-Server, ein Remote-HTTP-Eintrag wird dort also abgelehnt. Nutze den Connectors-Bildschirm oder binde den Remote-Server über mcp-remote ein:

{ "mcpServers": { "gsc-wizard": { "command": "npx", "args": [ "-y", "mcp-remote", "https://mcp.gscwizard.com/mcp", "--header", "Authorization: Bearer gscw_live_..." ] } } } Vollbildmodus öffnen Vollbildmodus verlassen Was beim OAuth-Handshake passiert Dieser Teil finde ich als Entwickler interessant, denn Claude erledigt alles ohne Hilfe, sobald man die URL einfügt.

Der MCP-Server ist der Resource-Server und die App der Authorization-Server. Claude fordert die Ressource zunächst ohne Credentials an und liest die Protected-Resource-Metadaten (RFC 9728), die den Authorization-Server und die Scopes benennen.

Vor der Ausstellung eines Tokens laufen zwei Prüfungen: Das Konto braucht ein aktives Abonnement oder eine Testphase sowie mindestens eine verbundene Search-Console-Property. Ein Konto ohne beides wird zunächst dorthin geschickt, was freundlicher ist, als ein Token auszugeben, das jeder spätere Tool-Aufruf zurückweisen würde.

Der Transport ist Streamable HTTP auf einem einzigen /mcp-Pfad. Jede Session wird auf dem Server dem Benutzer zugeordnet, der sie geöffnet hat, und das Vorlegen einer Session-ID mit einem anderen Credential wird abgelehnt, statt sie stillschweigend neu zu binden.

Eine Verbindung ist nur so gut wie die Fragen, die sie beantwortet. Das sind diejenigen, die ich am häufigsten nutze, jeweils mit dem Tool, das Claude dafür üblicherweise wählt.

Das nützliche Muster ist die Kette. Frage nach einem Traffic-Einbruch, und Claude kann den Change-Point finden, die dahinterliegenden Seiten auflisten, das Datum mit bekannten Google-Updates abgleichen und einige der betroffenen URLs inspizieren, alles in einem Gespräch. Das funktioniert nur, weil jeder Schritt einige Dutzend relevante Zeilen zurückgibt und keine zehntausend rohen.

Es gibt insgesamt etwa 150 Tools, und rund drei Viertel davon lesen nur. Die restlichen verwalten Dinge innerhalb von GSC Wizard, etwa Annotationen, Inhaltsgruppen, Topic-Cluster und gespeicherte Filter. Neben Search Console liest derselbe Server auch Bing Webmaster Tools, GA4, Google Merchant Center und Google Ads, sodass auch eine Frage wie "für welche Landingpages bezahle ich bei Google Ads, obwohl sie bereits in den Top Drei ranken?" eine Antwort hat. Der Live-Toolkatalog listet jedes Tool mit einem Beispielaufruf.

Einige Grenzen sollte man klar benennen, denn sie prägen die Erwartungen.

Die Daten sind so aktuell, wie Google sie macht. Search-Console-Daten hinken zwei bis drei Tage hinterher, und das kann kein MCP-Server ändern. Frage nach gestern, und man erhält ein ehrliches "noch nicht verfügbar".

Googles 16 Monate gelten, solange man die Daten nicht selbst speichert. Eine live aus der API gelesene Property hat die letzten 16 Monate. Eine in die Voltspeicherung übernommene Property wird einmal zurückgefüllt und danach täglich gesammelt, sodass ihre Geschichte über Googles Fenster hinaus weiterwächst. Wer in zwei Jahren Jahresvergleiche möchte, sollte heute mit der Speicherung beginnen.

Anonymisierte Queries bleiben anonymisiert. Google behält seltene Queries aus Datenschutzgründen zurück, und die Summen pro Seite liegen daher höher als die Summe der sichtbaren Queries. Die Tools melden das, statt es zu verbergen.

Es ist ein kostenpflichtiges Produkt. Es gibt eine siebentägige Testphase, und die Tarife beginnen bei 19 US-Dollar pro Monat. Jeder Tarif enthält den MCP-Server; die Tarife unterscheiden sich darin, wie viele Properties man trackt. Wer nur die rohe API für eine kleine Seite braucht, dem reicht eventuell ein Open-Source-Wrapper mit einem Service-Account.

Rate-Limits existieren. Die MCP-Schnittstelle erlaubt 120 Aufrufe pro Minute und 3.000 pro Stunde pro Benutzer, was ein Mensch nie erreicht, ein Agent in einer Schleife aber durchaus.

Wenn man gerne einen eigenen Server betreibt und die Seite klein ist, ist ein selbst gehosteter Wrapper ein feines Wochenendprojekt, und man lernt das Protokoll dabei praktisch kennen. Wenn man Claude zu einer echten Seite fragen und den Zahlen in der Antwort vertrauen möchte, muss die Arbeit passieren, bevor das Modell die Daten sieht, und genau deshalb habe ich dies als Warehouse mit Tools darauf gebaut und nicht als Rohr zur API.

Die Einrichtung dauert so oder so etwa zwei Minuten: Google Search Console mit Claude verbinden, die URL einfügen und fragen, warum der letzte Monat so aussah, wie er aussah. Wer die Protokolldetails möchte, findet in der Server-Referenz Transport, Scopes und den Antwort-Vertrag.

Fragen zum OAuth-Flow oder zum Tool-Design beantworte ich gerne in den Kommentaren.

Automatisch übersetzt. Das Original auf Englisch ist unten aufklappbar.

Original (Englisch) anzeigen

If you search for "GSC MCP for Claude" you find two kinds of answers. One is a GitHub repository you clone, give a Google service account, and run next to Claude Desktop. The other is a remote server you add as a connector with one URL. I built one of the second kind, GSC Wizard, so this post is written from that side: how the connection works, how to set it up in Claude and in Claude Code, what is worth asking once it is connected, and where it stops being useful.

I will say up front that I am the developer, so treat the opinions as mine and check the mechanics yourself. Everything below can be verified against the public endpoint.

The Model Context Protocol lets Claude call tools on a server you choose. A Search Console MCP server exposes tools such as "query search analytics" or "inspect this URL", Claude decides which to call, and the server returns structured results that Claude reasons about.

The part that matters is what those tools return. A thin wrapper forwards Google's Search Analytics API rows to the model and hopes the model adds them up correctly. That works on a small blog and falls apart on a site with a few hundred thousand query and page combinations a month, because the rows do not fit in the context window and language models are not reliable at arithmetic over thousands of rows.

GSC Wizard takes the other route. The analysis runs on the server, in a ClickHouse warehouse, and Claude receives the finished result: the pages that are decaying and how many clicks each lost, the queries where two of your URLs compete, the day a trend changed. Claude then does what it is good at, which is choosing the next question and explaining the answer.

The server is remote, so there is nothing to install and no key to paste.

After that the tools appear in the tools menu of any conversation, and Claude only ever sees the properties you connected. You can revoke the access from your account at any time.

claude mcp add --transport http gsc-wizard \ https://mcp.gscwizard.com/mcp \ --header "Authorization: Bearer gscw_live_..." Enter fullscreen mode Exit fullscreen mode Run /mcp inside Claude Code to confirm the server is connected and to see its tools.

Two details about keys are worth knowing before you create one. A key is shown once, because only a SHA-256 hash of it is stored. And a key carries a scope you choose at creation, read-only or read-and-write. A read-only key cannot call a tool that changes anything, and that check runs on the server before the tool's handler does, so "read-only" is a property of the credential and not an instruction the model is trusted to follow.

If you would rather not write prompts from scratch, there is a set of ready-made SEO skills (site audit, traffic drop, content decay, cannibalization, quick wins, client report) that tell the agent how to use the tools:

npx skills add jbobbink/seo-gsc-wizard Enter fullscreen mode Exit fullscreen mode One caveat for the Claude Desktop config file: it launches local stdio servers only, so a remote HTTP entry is rejected there. Use the Connectors screen, or bridge the remote server with mcp-remote:

{ "mcpServers": { "gsc-wizard": { "command": "npx", "args": [ "-y", "mcp-remote", "https://mcp.gscwizard.com/mcp", "--header", "Authorization: Bearer gscw_live_..." ] } } } Enter fullscreen mode Exit fullscreen mode What happens during the OAuth handshake This is the part I find interesting as a developer, because Claude does all of it without help once you paste the URL.

The MCP server is the resource server and the app is the authorization server. Claude first requests the resource without credentials and reads the protected-resource metadata (RFC 9728), which names the authorization server and the scopes:

Two checks run before a token is issued: the account needs an active subscription or trial, and at least one connected Search Console property. An account with neither is sent to finish those first, which is friendlier than handing out a token that every later tool call would reject.

The transport is Streamable HTTP on a single /mcp path. Each session is pinned on the server to the user who opened it, and presenting a session id with a different credential is refused instead of silently rebound.

A connection is only as good as the questions it answers. These are the ones I use most, with the tool Claude usually picks for each.

The useful pattern is the chain. Ask about a traffic drop and Claude can find the change point, list the pages behind it, check the date against known Google updates and inspect a few of the affected URLs, all in one conversation. That only works because each step returns a few dozen relevant rows and not ten thousand raw ones.

There are about 150 tools in total, and roughly three quarters of them only read. The rest manage things inside GSC Wizard, such as annotations, content groups, topic clusters and saved filters. Besides Search Console the same server reads Bing Webmaster Tools, GA4, Google Merchant Center and Google Ads, so a question like "which landing pages do I pay for in Google Ads while they already rank in the top three?" has an answer too. The live tool catalog lists every tool with an example call.

A few limits are worth stating plainly, because they shape what you should expect.

The data is as fresh as Google makes it. Search Console data lags two to three days, and no MCP server can change that. Ask about yesterday and you will get an honest "not available yet".

Google's 16 months apply unless you store the data. A property read live from the API has the last 16 months. A property placed in full storage is backfilled once and then collected daily, so its history keeps growing past Google's window. If you want year-over-year comparisons two years from now, start storing today.

Anonymized queries stay anonymized. Google withholds rare queries for privacy, and the totals per page are therefore higher than the sum of the visible queries. The tools report this rather than hide it.

It is a paid product. There is a 7-day free trial, and plans start at 19 US dollars a month. Every plan includes the MCP server; the plans differ in how many properties you track. If you only need the raw API on one small site, an open-source wrapper with a service account may be enough.

Rate limits exist. The MCP surface allows 120 calls a minute and 3,000 an hour per user, which a person never reaches and a looping agent can.

If you enjoy running your own server and your site is small, a self-hosted wrapper is a fine weekend project and you will learn the protocol by doing it. If you want to ask Claude about a real site and trust the numbers in the answer, the work has to happen before the model sees the data, and that is the reason I built this as a warehouse with tools on top instead of a pipe to the API.

The setup takes about two minutes either way: connect Google Search Console to Claude, paste the URL, and ask it why last month looked the way it did. If you want the protocol details, the server reference covers the transport, the scopes and the response contract.

I am happy to answer questions about the OAuth flow or the tool design in the comments.

Originaltitel: GSC MCP for Claude: Connect Google Search Console and Ask It Real QuestionsQuelle: dev.to (dev.to). Original öffnen