Grips Intelligence MCP Server
Grips Intelligence MCP-Server (v2)
Ein Model Context Protocol (MCP)-Server, der die E-Commerce-Daten-API von Grips Intelligence für jeden MCP-Client verfügbar macht — Claude Desktop, Cowork, Claude Code usw.
v2 ist eine saubere Neuentwicklung von v1, bei der von Anfang an eine defensive Datenverarbeitung integriert wurde. Sie behebt die Klasse von Fehlern wie ".map is not a function", für die v1.x einen Laufzeit-Patch benötigte — bei dünnen oder unbekannten Domains erfolgt nun eine saubere "Keine Daten"-Antwort, anstatt dass der Tool-Aufruf abstürzt.
Was ist enthalten
Tool | Was es tut |
| Monatlicher Umsatz / Transaktionen / Sitzungen / Werbekosten / AOV / CR / CPC für eine oder mehrere Domains |
| Täglicher Umsatz / Transaktionen / Sitzungen (begrenzte Abdeckung) |
| Aufschlüsselung nach Organic / Paid Search / Direct / Referral / Social — Zeitreihen + aggregiert |
| Paid-Media-Ausgaben, Klicks und CPC — Zeitreihen + aggregiert |
| Umsatz, Sitzungen, CR, AOV für Mobil / Desktop / Tablet |
| Paralleler Abruf pro Domain mit Bestenlisten-Ranking; Fehler pro Domain werden isoliert |
| Notausgang — Senden einer beliebigen Grips GraphQL-Abfrage |
Alle Tools geben standardmäßig Markdown für bessere Lesbarkeit aus. Übergeben Sie format: "json" für eine maschinenlesbare Ausgabe.
Installation
npm installDas prepare-Skript erstellt automatisch dist/, wenn Sie npm install ausführen.
Konfiguration
Setzen Sie Ihren Grips-API-Schlüssel in der Serverkonfiguration des MCP-Clients. Für Claude Desktop ist das ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"grips": {
"command": "node",
"args": [
"/ABSOLUTE/PATH/TO/grips-mcp-server-v2/dist/index.js"
],
"env": {
"GRIPS_API_KEY": "your-api-key-here",
"GRIPS_DEFAULT_COUNTRY": "US"
}
}
}
}Erforderliche Umgebungsvariable:
GRIPS_API_KEY— Ihr Grips-API-Token (wird alsgrips-api-key-Header gesendet).
Optionale Umgebungsvariable:
GRIPS_DEFAULT_COUNTRY—US,GBoderDE. StandardmäßigUS, falls nicht gesetzt oder ungültig.
Starten Sie nach dem Bearbeiten der Konfiguration Claude Desktop vollständig neu (Cmd+Q — nicht nur das Fenster schließen).
Was ist anders als bei v1
v1 stürzte bei einer bestimmten API-Antwortform ab: Wenn Grips eine dünn abgedeckte oder unbekannte Domain zurückgab, kam das timeseries-Feld als {} zurück anstatt als null, undefined oder []. Der Code verwendete (data.timeseries ?? []).map(...), was nur gegen null/undefined absichert — nicht gegen {}. Ergebnis: "data.timeseries ?? []).map is not a function".
v2 leitet jedes Payload-Feld vor der Verwendung durch toArray<T>() (für Arrays) oder toObject<T>() (für dict-artige Antworten wie den Geräte-Endpunkt). Jeder Wert, der kein Array/Objekt ist, fällt auf einen sicheren leeren Standardwert zurück, und das Tool gibt eine saubere "Keine Daten"-Antwort zurück, anstatt einen Fehler auszulösen.
Weitere Änderungen:
Datumsnormalisierung ist konsistent (jedes Datum wird zu
YYYY-MM-DDin UTC) über alle Tools hinweg, sodass Zeilen in Zeitzonen außerhalb von UTC nicht über Tagesgrenzen hinweg verrutschen.Währungs- / Ganzzahl- / Prozentformatierer rendern
—für fehlende Werte anstelle von$NaNoder0.00%.Fehlermeldungen enthalten jetzt hilfreiche Hinweise — 401 → "Überprüfen Sie Ihren API-Schlüssel", 429 → "Ratenbegrenzung erreicht, Zeitraum einschränken" usw.
Fehlerisolierung pro Domain in
grips_compare_domains— eine dünne Domain in einem Vergleich von 8 Domains bringt die anderen sieben nicht mehr zum Absturz.Zeichenbegrenzung — Antworten werden bei ca. 200 KB mit einem sichtbaren Hinweis gekappt, damit Abrufe über mehrere Domains das Kontextfenster nicht sprengen.
Entwicklung
npm run dev # watch mode, rebuilds on change
npm run build # one-shot build to dist/Testen über die Befehlszeile
Testen Sie, ob der Server ohne Fehler startet (er beendet sich bei EOF von stdin):
GRIPS_API_KEY=your-key node dist/index.js < /dev/nullSie sollten [grips-mcp] grips-mcp-server v2.0.0 ready (default country: US). auf stderr sehen und keinen Absturz.
Für interaktive Tests verwenden Sie @modelcontextprotocol/inspector:
npx @modelcontextprotocol/inspector node dist/index.jsAPI-Referenz
Grips dokumentiert sein öffentliches Schema unter https://gripsintelligence.com/knowledge-base/api. Die Abfragen, die dieser Server verwendet, sind wortwörtlich von dieser Seite kopiert.
Unterstützte Länder aktuell: US, GB, DE. Alles andere führt zu einem Fehler bei der API.
Lizenz
Privat — nicht für die externe Verbreitung bestimmt.
Available Tools
7 toolsgrips_compare_domainsCompare multiple domains side-by-sideARead-onlyIdempotent
Fetches per-domain performance in parallel and returns a leaderboard ranked by the chosen metric (revenue, sessions, AOV, etc.). Per-domain failures are captured in an errors section — one thin or unknown domain won't block the rest of the comparison.
Inputs: domains (required), date_from (required), date_to (required), country, +2 more.
grips_get_adwordsGet AdWords spend over timeARead-onlyIdempotent
Returns paid-media spend, ad clicks, and CPC for one or more domains — monthly timeseries plus an aggregated roll-up. Use this to evaluate paid-spend trends, auction-cost inflation, or total investment in paid search.
Inputs: domains (required), date_from (required), date_to (required), country, +1 more.
grips_get_channelsGet channel breakdown (Organic, Paid, Direct, etc.)ARead-onlyIdempotent
Returns revenue, sessions, transactions, CR, and AOV broken out by marketing channel (Organic Search, Paid Search, Direct, Referral, Social) for one or more domains. Use this to understand channel mix, evaluate paid-vs-organic balance, or spot a channel shift over time. Response includes both a monthly timeseries and an aggregated roll-up.
Inputs: date_to (required), domains (required), date_from (required), format, +2 more.
grips_get_daily_performanceGet daily performance (revenue / transactions / sessions)ARead-onlyIdempotent
Returns a daily timeseries of revenue, transactions, and sessions for one or more domains. Useful for spike/dip detection, promo windows, and day-of-week patterns. Note: Grips only offers daily data for a subset of domains — smaller sites often return empty. Defaults to markdown output.
Inputs: domains (required), date_from (required), date_to (required), country, +1 more.
grips_get_devicesGet device mix (mobile / desktop / tablet)ARead-onlyIdempotent
Returns device-level revenue, sessions, transactions, CR, and AOV for one or more domains aggregated over a date window. Use this to understand where a competitor's traffic and conversions come from — mobile vs desktop split, AOV by device, etc.
Inputs: domains (required), date_from (required), date_to (required), country, +1 more.
grips_get_domain_performanceGet domain performance (monthly)ARead-onlyIdempotent
Returns a monthly timeseries of revenue, transactions, sessions, ad cost, AOV, CR, and CPC for one or more domains over a date range. Use this for anything like 'how did adidas.com perform in Q1 2024' or 'compare nike.com and puma.com session volume YoY'. Defaults to markdown output; pass format='json' for structured data.
Inputs: domains (required), date_from (required), date_to (required), country, +1 more.
grips_raw_querySend a raw Grips query (escape hatch)ARead-onlyIdempotent
Sends an arbitrary Grips GraphQL-like query and returns the raw JSON response. Use this only when the purpose-built tools (domain performance, channels, adwords, devices, daily, compare) don't cover what you need. The response is returned verbatim with no formatting — you are responsible for parsing it.
Inputs: query (required), variables.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool targets a distinct data dimension (domain performance, adwords, channels, devices, daily performance, comparison, raw query) with clear separation. No two tools have overlapping purposes.
All tools follow a consistent `grips_<verb>_<noun>` pattern in snake_case, with verbs like 'get' and 'compare', and a single exception 'raw_query' still fits the pattern. No mixing of conventions.
With 7 tools, the set is well-scoped for an analytics server covering multiple metrics and dimensions. Not too few to be limited, not too many to be overwhelming.
Core analytics needs are covered, and the raw query tool fills potential gaps. Minor missing areas like product-level data exist, but the surface is largely complete for the stated purpose.
Related MCP Connectors
Ask questions across Shopify, Klaviyo, GA4 and 20+ e-commerce sources in plain English.
The E-commerce Marketplace For Every AI Agent. A Governed Catalog Of 600M+ US Products, Plus Four Agent Ready Capabilities Search, Price Comparison, Product-Vs-Product, And Detailed Q&A.
The AI data platform for commerce: Shopify, Amazon, ads and Klaviyo data with metrics defined once.
Read-only access to your Consequential eCommerce marketing analytics and attribution data.