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:
- Protected resource metadata (RFC 9728):
https://serpkeep.com/.well-known/oauth-protected-resource - Authorization server metadata (RFC 8414):
https://serpkeep.com/.well-known/oauth-authorization-server - Dynamic client registration (RFC 7591):
POST https://serpkeep.com/oauth/register - Authorization endpoint (PKCE S256 required):
GET https://serpkeep.com/oauth/authorize - Token endpoint:
POST https://serpkeep.com/oauth/token - Revocation endpoint (RFC 7009):
POST https://serpkeep.com/oauth/revoke
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_IDandGOOGLE_CLIENT_SECRET: Google Cloud OAuth 2.0 web client authorized forhttps://serpkeep.com/auth/google/callbackwith scopehttps://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: Dedicatedserpkeep.comtransactional email key for weekly alerts.