PerSQL / Stripe

A queryable mirror of your Stripe account.

Connect Stripe Connect once and PerSQL mirrors customers, subscriptions, invoices, and charges into a SQLite database you can SELECT against. No backfill scripts, no webhook plumbing.

MCP endpoint

Point your coding agent at:

https://stripe.persql.com/mcp

Authenticate with a PerSQL bearer token. Tools: stripe_install_list, stripe_mirror_status.

Schema

Every connected Stripe account gets one mirror database with these tables:

customers          (id, email, name, created, livemode, raw)
subscriptions      (id, customer_id, status, current_period_end, plan_id, raw)
invoices           (id, customer_id, subscription_id, total, status, paid_at, raw)
charges            (id, customer_id, amount, currency, status, created, raw)

Each row keeps the source event JSON in a raw column so you can JSON_EXTRACT fields we didn't promote into columns.