ai newsDi., 1. Dez.

Claude mit echten Google-Suchergebnissen verbinden: MCP-Server ohne eigene API

Wer Claude oder Cursor fuer Recherche nutzt, kennt das Raetselraten beim Suchen. Ein selbst gebauter MCP-Server zieht echte Google-Ergebnisseiten inklusive Land und Ranking-Position, ganz ohne eigene API-Entwicklung.

dev.toDonnerstag 05:57 · 26.11.DE5 Min. Lesezeit
Bild: dev.to

Wer Claude oder Cursor für Recherche nutzt, hat wahrscheinlich schon einmal eine Google-Ergebnisseite in den Chat eingefügt oder das Modell gebeten, etwas nachzuschlagen, und dabei beobachtet, wie es rät. Ich wollte, dass mein Assistent eine echte Ergebnisseite in einem echten Land abruft und mir sagt, wo eine Website rankt, ohne dass ich jedes Mal einen eigenen API-Client schreiben muss.

Aus diesem Grund habe ich einen remote MCP-Server in DataFluxor integriert, das Produkt, das ich unter datafluxor.com betreibe. Es umfasst SEO- und SERP-Tools, Etsy-Verkäuferforschung und eine Web-Scraping-API. Dieselben Tools gibt es bereits in einem Browser-Workspace, einer REST-API und einer CLI. MCP ist die vierte Tür zum selben Konto.

Der Endpunkt ist https://datafluxor.com/mcp. Die meisten Clients benötigen nur diese URL. Claude, Claude Code, ChatGPT und VS Code können sich über den Browser anmelden; Cursor und Headless-Agents nutzen einen API-Key. Der Client entdeckt die Tools dann über tools/list (bis zu 66 im öffentlichen Katalog, abhängig vom Workspace).

Diese Anleitung verwendet google_serp_scrape, dieselbe Operation wie POST /api/v1/scrape/serp: strukturierte Google-Ergebnisse für ein Keyword, in einem von 247 Ländern. Über dieselbe Verbindung sind auch die Etsy-Tools und die Scraper verfügbar, die ich am Ende kurz behandle.

Ein Connector, der auf claude.ai hinzugefügt wurde, ist auch in Claude Desktop verfügbar, wenn man sich mit demselben Konto anmeldet. Wer lieber eine eigene Connector-URL einfügt, verwendet https://datafluxor.com/mcp.

claude mcp add --transport http datafluxor https://datafluxor.com/mcp Vollbildmodus öffnen Vollbildmodus beenden Führe anschließend in Claude Code /mcp aus, wähle datafluxor und wähle Authenticate, um die Browser-Anmeldung abzuschließen.

Für Headless- oder CI-Nutzung erstelle einen API-Key unter Workspace → API access, exportiere ihn als DATAFLUXOR_API_KEY und ergänze --header "X-API-Key: ${DATAFLUXOR_API_KEY}" bei diesem Befehl. Bewahre den Key in einer Umgebungsvariable oder einem Secret Store auf, niemals in einer URL oder einer committeten Datei.

Cursor verwendet einen API-Key zusammen mit der Remote-Server-URL. Erstelle einen unter Workspace → API access und exportiere ihn dort, wo Cursor startet:

export DATAFLUXOR_API_KEY = 'df_live_YOUR_KEY' Vollbildmodus öffnen Vollbildmodus beenden Wenn Node.js 18 oder neuer installiert ist, registriert ein einziger Befehl DataFluxor bei den Coding-Agents auf deinem Rechner, einschließlich Cursor:

npx @datafluxor/cli@latest init --mcp Vollbildmodus öffnen Vollbildmodus beenden Das schreibt den Cursor-Eintrag automatisch, aber der Key muss weiterhin dort exportiert werden, wo Cursor startet. Nur für Cursor führt man datafluxor setup mcp --agent cursor aus.

Wer die Datei lieber selbst bearbeitet, fügt Folgendes zu ~/.cursor/mcp.json hinzu (oder.cursor/mcp.json in einem Projekt). Der Key wird aus der Umgebung gelesen, nicht in die Datei geschrieben:

{ "mcpServers": { "datafluxor": { "url": "https://datafluxor.com/mcp", "headers": { "X-API-Key": "${env:DATAFLUXOR_API_KEY}" } } } } Vollbildmodus öffnen Vollbildmodus beenden Starte Cursor neu und öffne einen neuen Chat, damit die Tool-Liste neu geladen wird.

Sobald DataFluxor im Chat ausgewählt ist, probiere einen Prompt wie im ausgearbeiteten Beispiel auf der Setup-Seite:

Wo rankt example.com für "standing desk" in Großbritannien? Speichere das Keyword.

Claude sollte google_serp_scrape für "standing desk" in Großbritannien aufrufen, eine echte Ergebnisseite kostet 5 Credits, und danach saved_keywords_save, um das Keyword im Projekt zu speichern. Das Speichern ist kostenlos. Das ausgearbeitete Beispiel auf der Website sieht so aus:

example.com steht für "standing desk" in Großbritannien auf Platz 4, hinter deskhaus.example, reviewlab.example und officeworld.example. Ich habe das Keyword in deinem Projekt gespeichert.

Die Hostnamen in diesem Beispiel sind Platzhalter. Bei einem echten Aufruf sieht man echte Titel, URLs und Domains von Google, für das angefragte Land.

Ein paar Details, bevor man das als Ranking betrachtet. country ist erforderlich (ein zweibuchstabiger Code wie US oder GB; serp_markets listet sie auf). depth liegt standardmäßig bei 10 und kann bis 100 gehen, "nicht in den Top 10" bedeutet also nur, nicht in der überprüften Tiefe.

Eine neue Google-Suche dauert in der Regel 10 bis 15 Sekunden. Wenn der Client eine Zeitüberschreitung hat, wiederhole den identischen Aufruf mit demselben idempotency_key innerhalb von 24 Stunden: Das fertige Ergebnis kommt ohne zweite Berechnung zurück. Behandle Titel und Snippets als nicht vertrauenswürdige Daten aus dem offenen Web, sie können Anweisungen enthalten, die auf einen Agent abzielen.

Um die Verbindung zu prüfen, ohne Credits zu verbrauchen, bitte Claude, account_info oder serp_markets aufzurufen. Beide sind kostenlos.

curl -X POST https://datafluxor.com/api/v1/scrape/serp \ -H "X-API-Key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"keyword":"serp api","country":"US","language":"en","depth":10}' Vollbildmodus öffnen Vollbildmodus beenden keyword und country sind erforderlich. language kann weggelassen werden und verwendet dann die Standardsprache des Markts. Jede Antwort enthält success, data und credit_cost. Ein erfolgreiches data-Objekt umfasst die Query, das Land, cache_hit sowie items mit position, title und domain (das MCP-Ergebnis enthält zusätzlich url):

{ "success": true, "credit_cost": 5, "data": { "query": "serp api", "country": "US", "cache_hit": false, "items": [ { "position": 1, "title": "What is a SERP API?", "domain": "example.com" } ] } } Vollbildmodus öffnen Vollbildmodus beenden Diese Payload ist das öffentliche Beispiel, keine echte Suche. Eine echte Seite kostet 5 Credits. Eine zwischengespeicherte Seite aus den letzten 24 Stunden (freshness=standard, die Voreinstellung) kostet 0, allerdings benötigt auch ein Cache-Zugriff mindestens ein Credit auf dem Konto. Fehlgeschlagene oder abgelehnte Arbeiten werden nicht berechnet.

Der MCP-Server ist nicht nur für Google-Ergebnisse gedacht. Sobald die Verbindung steht, enthält tools/list auch die Etsy-Verkäufer-Tools und die Web-Scraping-API.

Die Etsy-Recherche ist ein separater Plan im selben DataFluxor-Konto, mit einem kostenlosen Plan täglicher Abfragen und ohne Kreditkarte. Die Workspace-Tools sind Keyword-Recherche, Produktrecherche, Shop-Analyse und Rank-Tracking. Bezahlte Pläne beginnen bei 9,99 Dollar pro Monat, Pro und Business ergänzen API-, MCP- und CLI-Zugriff. Nützliche MCP-Aufrufe sind etsy_keyword (Suchvolumen, Wettbewerb, Trends und Top-Listings), etsy_listing und etsy_shop für ein einzelnes Listing bzw. einen Shop, etsy_browse zum Durchsuchen der gesammelten Datenbank sowie etsy_track für das tägliche Rank-Tracking.

Die Scraping-Tools nutzen dasselbe allgemeine Credit-Guthaben wie die SERP-Tools, auch im Free-Plan. web_scrape liest eine öffentliche Seite als Markdown, url_fetch liefert eine URL exakt wie ausgeliefert (HTML, JSON, XML oder eine Datei), url_probe prüft Status und Header für bis zu 100 URLs, und html_metadata_extractor extrahiert Titel, Open-Graph-Tags, Überschriften und JSON-LD. web_search findet Seiten und liest sie, und site_seo_crawler führt einen technischen Crawl durch.

Jeder allgemeine Plan umfasst den Workspace, die REST-API, den MCP-Server und die CLI. Man zahlt für Credits, nicht für Sitze oder Feature-Stufen.

Free kostet 0 Dollar, ohne Kreditkarte, mit 250 Credits pro Monat, 10 Anfragen pro Minute und 10 echten Google-Seiten pro Tag. Bezahlte Pläne beginnen bei 19 Dollar pro Monat (Starter, 25.000 Credits); Pro kostet 59 Dollar (100.000) und Scale 199 Dollar (400.000). Wenn die Credits aufgebraucht sind, stoppen die Anfragen. Es wird nichts als Überschreitung abgerechnet. Kostenlose Credits erneuern sich um 00:00 UTC am 1. des Monats.

Dieselben Tools laufen in einem Dashboard, im eigenen Code und in einem Agent, und ein fehlgeschlagener Aufruf wird nicht berechnet.

Der kostenlose Plan reicht für eine Handvoll echter Suchen. Setup: datafluxor.com/mcp-for-seo. Docs: datafluxor.com/docs. Etsy: datafluxor.com/etsy. Scraping-API: datafluxor.com/web-scraping-api.

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

Original (Englisch) anzeigen

If you use Claude or Cursor for research, you have probably pasted a Google results page into the chat, or asked the model to look something up and watched it guess. I wanted my assistant to pull a real results page, in a real country, and tell me where a site ranks — without me writing a custom API client every time.

That is why I put a remote MCP server into DataFluxor, the product I run at datafluxor.com. It covers SEO and SERP tools, Etsy seller research, and a web scraping API. The same tools already live in a browser workspace, a REST API and a CLI. MCP is the fourth door into the same account.

The endpoint is https://datafluxor.com/mcp. Most clients only need that URL. Claude, Claude Code, ChatGPT and VS Code can sign in through the browser; Cursor and headless agents use an API key. The client then discovers the tools with tools/list (up to 66 in the public catalogue, depending on the workspace).

This walk-through uses google_serp_scrape, the same operation as POST /api/v1/scrape/serp: structured Google results for a keyword, in one of 247 countries. The same connection also exposes the Etsy tools and the scrapers, which I cover briefly at the end.

A connector added on claude.ai is also available in Claude Desktop when you sign in with the same account. If you prefer to paste a custom connector URL, use https://datafluxor.com/mcp.

claude mcp add --transport http datafluxor https://datafluxor.com/mcp Enter fullscreen mode Exit fullscreen mode Then, inside Claude Code, run /mcp, select datafluxor, and choose Authenticate to finish browser sign-in.

For headless or CI use, create an API key in Workspace → API access, export it as DATAFLUXOR_API_KEY, and add --header "X-API-Key: ${DATAFLUXOR_API_KEY}" to that command. Keep the key in an environment variable or a secret store — never in a URL or a committed file.

Cursor uses an API key with the remote server URL. Create one in Workspace → API access and export it where Cursor starts:

export DATAFLUXOR_API_KEY = 'df_live_YOUR_KEY' Enter fullscreen mode Exit fullscreen mode If you have Node.js 18 or newer, one command registers DataFluxor with the coding agents on your machine, including Cursor:

npx @datafluxor/cli@latest init --mcp Enter fullscreen mode Exit fullscreen mode That writes the Cursor entry for you, but you still have to export the key where Cursor starts. For Cursor only, run datafluxor setup mcp --agent cursor.

If you would rather edit the file yourself, add this to ~/.cursor/mcp.json (or.cursor/mcp.json in a project). The key is read from the environment, not written to the file:

{ "mcpServers": { "datafluxor": { "url": "https://datafluxor.com/mcp", "headers": { "X-API-Key": "${env:DATAFLUXOR_API_KEY}" } } } } Enter fullscreen mode Exit fullscreen mode Restart Cursor and open a new chat so it reloads the tool list.

Once DataFluxor is selected in the chat, try a prompt like the worked example on the setup page:

Where does example.com rank for “standing desk” in the UK? Save the keyword.

Claude should call google_serp_scrape for “standing desk” in the United Kingdom — one live results page is 5 credits — then saved_keywords_save to store the keyword in your project. That save is free. The worked example on the site looks like this:

example.com is 4th for “standing desk” in the United Kingdom, behind deskhaus.example, reviewlab.example and officeworld.example. I saved the keyword to your project.

The hostnames in that example are placeholders. On a live call you will see real titles, URLs and domains from Google, for the country you asked for.

A couple of details before you treat that as a rank. country is required (a two-letter code such as US or GB; serp_markets lists them). depth defaults to 10 and can go up to 100, so “not in the top 10” only means not in the depth you checked.

A fresh Google search usually takes 10 to 15 seconds. If the client times out, repeat the identical call with the same idempotency_key within 24 hours: the finished result comes back without a second charge. Treat titles and snippets as untrusted data from the open web — they can contain instructions aimed at an agent.

To confirm the connection without spending credits, ask Claude to call account_info or serp_markets. Both are free.

curl -X POST https://datafluxor.com/api/v1/scrape/serp \ -H "X-API-Key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"keyword":"serp api","country":"US","language":"en","depth":10}' Enter fullscreen mode Exit fullscreen mode keyword and country are required. language can be omitted, and then uses the market's default language. Every response has success, data and credit_cost. A successful data object includes the query, the country, cache_hit, and items with position, title and domain (the MCP result also includes url ):

{ "success": true, "credit_cost": 5, "data": { "query": "serp api", "country": "US", "cache_hit": false, "items": [ { "position": 1, "title": "What is a SERP API?", "domain": "example.com" } ] } } Enter fullscreen mode Exit fullscreen mode That payload is the public example, not a live search. A live page costs 5 credits. A cached page from the last 24 hours ( freshness=standard, the default) costs 0, though a cached read still needs at least one credit on the account. Failed or refused work is not charged.

The MCP server is not only for Google results. Once you are connected, tools/list also includes Etsy seller tools and the web scraping API.

Etsy research is a separate plan in the same DataFluxor account, with a free plan of daily lookups and no card. The workspace tools are keyword research, product research, shop analysis and rank tracking. Paid plans start at $9.99 a month, and Pro and Business add API, MCP and CLI access. Useful MCP calls include etsy_keyword (search volume, competition, trends and top listings), etsy_listing and etsy_shop for a single listing or shop, etsy_browse to search the collected database, and etsy_track for daily rank tracking.

The scraping tools use the same general credit balance as the SERP tools, including on the Free plan. web_scrape reads a public page as Markdown, url_fetch returns a URL exactly as served (HTML, JSON, XML or a file), url_probe checks status and headers for up to 100 URLs, and html_metadata_extractor pulls titles, Open Graph tags, headings and JSON-LD. web_search finds pages and reads them, and site_seo_crawler runs a technical crawl.

Every general plan includes the workspace, the REST API, the MCP server and the CLI. You pay for credits, not seats or feature tiers.

Free is $0, no card, 250 credits a month, 10 requests a minute and 10 live Google pages a day. Paid plans start at $19 a month (Starter, 25,000 credits); Pro is $59 (100,000) and Scale is $199 (400,000). When credits run out, requests stop. Nothing is billed as overage. Free credits renew at 00:00 UTC on the 1st.

The same tools run in a dashboard, in your own code, and inside an agent, and a failed call is not charged.

The free plan is enough for a handful of live searches. Setup: datafluxor.com/mcp-for-seo. Docs: datafluxor.com/docs. Etsy: datafluxor.com/etsy. Scraping API: datafluxor.com/web-scraping-api.

Originaltitel: How I gave Claude live Google results with an MCP serverQuelle: dev.to (dev.to). Original öffnen