Documentation

How SerpKeep archives Search Console data and serves MCP.

Concrete specs for Search Analytics API pagination, OAuth 2.1 token lifetimes, the five hosted MCP tools, and client-side CSV processing.

1. Bypassing the 1,000-row and 16-month limits

The Google Search Console web dashboard caps every manual export at 1,000 rows and deletes daily performance data older than 16 months. SerpKeep queries Google's Search Analytics v3 API (POST /webmasters/v3/sites/{siteUrl}/searchAnalytics/query) using rowLimit: 25000 and incremental startRow pagination across finalized daily dates (dataState: "final").

Once archived, rows stay queryable past the 16-month cutoff so you can compare year-over-year seasonality and multi-year Core Update trends.

2. Hosted OAuth 2.1 MCP server

SerpKeep implements Streamable HTTP MCP (JSON-RPC 2.0) at https://serpkeep.com/mcp with standard discovery endpoints:

Access tokens live for 60 minutes (expires_in: 3600). Refresh tokens rotate on every use up to a 4,096-issuance cap, after which the server returns HTTP 400 invalid_grant so clients re-authenticate cleanly.

3. MCP tool inventory

  • query_search_analytics: Filter archived clicks, impressions, CTR, and position by date range, query substring, page substring, country, and device.
  • find_cannibalization: Group normalized queries across competing URLs and rank conflicts by wasted-click score.
  • find_striking_distance: Return Page 2 queries (positions 6 to 25) ranked by estimated additional clicks at position 3.
  • compare_periods: Compute Core Update winners, losers, click deltas, and position shifts between any two date ranges.
  • export_unlimited_rows: Output full CSV or JSON rows with spreadsheet formula-injection protection.

4. Browser tools privacy model

All three free tools under /tools/* parse CSV files, normalize URLs, and compute diagnostics strictly inside your browser tab using client-side JavaScript. Uploaded files are never sent to SerpKeep servers.

5. Deployment environment variables

Current deployment status: Google OAuth active.

  • GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET: Google Cloud OAuth 2.0 web client authorized for https://serpkeep.com/auth/google/callback with scope https://www.googleapis.com/auth/webmasters.readonly.
  • OAUTH_SIGNING_SECRET: 32+ byte secret for HMAC-SHA256 OAuth token and CSRF cookie signing.
  • STRIPE_SECRET_KEY, STRIPE_PRICE_PRO, STRIPE_PRICE_AGENCY, STRIPE_PRICE_SCALE: Subscription checkout credentials.
  • USESEND_API_KEY: Dedicated serpkeep.com transactional email key for weekly alerts.