Sheet noteHow AI connects to Stripe: the official MCP server, OAuth and agent API keys, approval rules for refunds and payouts, and limits worth knowing.
Sheet SY-044 · Online payments and billing
Connecting Stripe payments and billing to AI
Stripe holds the answer to most money questions in an online business: who paid, who churned, which card failed, why the payout came in light. Getting those answers today means a Dashboard login and a CSV. An agent connected to Stripe answers them directly and drafts the follow-up.
Stripe processes card and bank payments and runs subscriptions, invoices, payment links, checkout pages, disputes, payouts and sales tax for businesses of every size. Card numbers stay inside Stripe; your systems see customers, charges, invoices and subscriptions by ID. Every Stripe account has its API keys in the Dashboard, with separate sandbox and live mode keys.
How access works
OAuth sessions for the MCP server expire 14 days after authorization and must be reconnected. Starting January 11, 2027, the MCP server stops accepting full-access secret keys and non-agent restricted keys. Admins can turn MCP access on or off for the whole team, and revoke any session from Team and security. Webhooks deliver events (payment succeeded, invoice failed, dispute opened) to your endpoint. Global API limit is 100 requests per second in live mode and 25 in a sandbox, with 25 per second per endpoint by default.
Vendor docs: https://docs.stripe.com/mcp
Once Stripe is connected.
Answer revenue and churn questions
Reads charges, invoices, subscriptions and balance transactions to answer what came in this month, which plan grew, who cancelled and what failed. The analytics tool in Stripe's MCP server (in preview) can also query metrics and reports directly.
Work failed payments
Watches for failed invoice payments through webhooks, looks up the customer's history, and drafts a personal note with a fresh payment link. A regular customer with an expired card gets a different message than someone on their third failure.
Reconcile payouts to the books
Matches each payout to its balance transactions (charges, refunds, fees, disputes) so the bookkeeper sees why a deposit is short and posts it correctly in QuickBooks or Xero.
Assemble dispute evidence
When a dispute opens, gathers the order, delivery confirmation, emails and signed agreement from your other systems into a draft evidence packet before Stripe's deadline. A person reviews and submits it.
Create invoices and payment links
Builds an invoice or payment link from a signed quote or a completed job, with the right customer, line items and tax settings. Sending to the customer waits for approval until the owner decides the pattern is safe.
Issue refunds under a rule
Handles refund requests within a policy the owner sets (amount cap, days since purchase). Stripe's own human confirmation and approval rules apply on top, so anything outside the rule goes to a reviewer.
What to watch.
- Use agent-tagged restricted keys with the narrowest permissions, never the full secret key. Stripe recommends restricted keys and is phasing secret keys out of its MCP server.
- Refunds, payouts, bank account changes and subscription cancellations should run through Stripe approval rules with a designated reviewer. On a single-user Stripe account, two-party approval only works for actions taken by agent-tagged keys, since the owner can't approve their own request.
- Stripe caps read requests at an average of 500 per transaction over 30 days (minimum 10,000 a month). A low-volume account that polls heavily can hit it; use webhooks or Stripe's data products for bulk reporting.
- Keep protected health information out of Stripe descriptions and metadata for healthcare clients. For PCI scope, card data stays in Stripe and never passes through the AI.
Stripe and AI: questions.
Q.01Does Stripe have an official MCP server?
Yes, at mcp.stripe.com. It connects to Claude, ChatGPT, Cursor, VS Code and other MCP clients with OAuth or an agent API key, and exposes reads and writes across much of the Stripe API plus documentation search and analytics.
Q.02Can the AI see our customers' card numbers?
No. Stripe stores the card data; the API returns payment method details like brand, last four digits and expiry, never the full number. That keeps card numbers out of any AI system, which is how we want it for PCI DSS.
Q.03What stops an agent from refunding everyone?
Several layers. The key only gets the permissions you grant. Stripe's default approval rules hold refunds from agent-tagged keys for a designated reviewer, and you can add an amount threshold. The MCP server asks for human confirmation on refunds when it acts as you. And our builds log every action, with an off switch.
Q.04Do we need a particular Stripe plan for API access?
No separate API plan is required. Every Stripe account has API keys and sandboxes in the Dashboard. Some products (Sigma, Data Pipeline, Treasury, Issuing) have their own pricing or eligibility, so we check those individually.
Run Stripe? Tell us what else you run.
Stripe is rarely the only system. List the others and the job that eats the most time, and we'll reply with what we'd connect first.