TrackSERPs
Rank Tracking SaaS with API & MCP Server
Rank-tracking SaaS for agencies and site owners with white-label reports, REST API, TypeScript SDK, and OAuth 2.1 MCP server.
stack: Next.js 15 · TypeScript · Tailwind v4 · PostgreSQL 16 · Prisma · Redis 7 · BullMQ · Better Auth · Stripe · REST /v1 API · OAuth 2.1 MCP
01 / Problem
The problem
Agencies and site owners need predictable rank tracking across scheduled scans, white-label reports, and programmatic workflows without paying twice for overlapping SERP lookups.
Exposing rank checks across a web app, REST API, workflow tools, and AI agents requires strict per-tenant credit accounting so concurrent jobs never drift.
02 / Architecture
The build
- pnpm monorepo built with Next.js 15 App Router, TypeScript, Tailwind v4, Prisma + PostgreSQL 16, BullMQ + Redis 7, and Better Auth.
- Strict credit ledger with a hold/charge lifecycle coupled to a multi-tenant shared SERP cache and Stripe Checkout plus billing portal.
- Scheduled scans, digests, PDF and share-link reports, AI Overview citation tracking, competitor share of voice, and local grid scans.
- Public REST /v1 API, TypeScript SDK, OAuth 2.1 MCP server, and webhooks, backed by integration guides for n8n, Zapier (webhooks), Google Sheets, Looker Studio, and Postman.
03 / Diagram
System schematic
04 / Scope
Status & scale
Status
Live (Nov 2026)
Integration guides
19 published
Accounting
Hold / charge ledger
Surfaces
Web, /v1 API, SDK, MCP
05 / Stack
Components
- Next.js 15
- TypeScript
- Tailwind v4
- PostgreSQL 16
- Prisma
- Redis 7
- BullMQ
- Better Auth
- Stripe
- REST /v1 API
- OAuth 2.1 MCP
06 / Writing
Related writing
- AI overview tracking: how to track Google AI Overviews in a rank trackerAI overview tracking in a rank tracker: store present, cited and cited URL per check, match citations to a tracked domain or URL, and alert on changes.
- Better Auth in a multi-tenant SaaS: what the core covers and what you buildBetter Auth in a multi-tenant Next.js SaaS: why we used the core without the organizations plugin, and how accounts, roles and tenant scoping work.
- Usage based billing with a hold/charge credit ledger that never driftsUsage based billing with prepaid credits: how a hold/charge ledger reserves, charges and releases credits atomically, with locking and idempotency rules.
- Multi tenant architecture for a shared SERP cache, without leaking dataMulti tenant architecture for a shared SERP cache: how it is keyed, scoped and charged across tenants, and why isolation risk sits in the join.
- Postbacks, not polling: async SERP jobs on BullMQ and a third-party APIHow signed postbacks replace polling for slow third-party jobs: the BullMQ queue, callback design, idempotency rules and a fallback poller that settles.
- Getting a Shopify app through App Store review and billingHow Shopify app billing works, why annual plans and offline-session returns break the happy path, and what App Store review checks before approval.