5Lime Labs

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.

VendorStripe, Inc.
CategoryOnline payments and billing
AccessTwo routes. Interactive AI tools connect to Stripe's MCP server with OAuth: the owner signs in, picks live mode or a sandbox, and sets permissions per environment. Automations that run on their own use an agent-tagged restricted API key the owner creates on the API keys page in the Dashboard, granting only the resources the job needs. Agent-tagged keys get Stripe's default approval rules, which hold refunds, subscription cancellations and payouts until a designated reviewer approves; the owner can add rules for bank account changes, new subscriptions and credit notes.
MCP serverofficial MCP server (mcp.stripe.com)
SY-044.1What it isStripe

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

SY-044.2ScopeWhat an AI agent can do

Once Stripe is connected.

C01Starts at step 01 Read

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.

C02Starts at step 02 Draft

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.

C03Starts at step 01 Read

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.

C04Starts at step 02 Draft

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.

C05Starts at step 03 Approve

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.

C06Starts at step 03 Approve

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.

SY-044.3CautionsRead before connecting

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.

C-200Start hereReply within 1 business day

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.

All systems · Security · How it works

Consult request
No. 0000
2026-11-28

A person on our team reads these and replies within one business day. Used only to answer you. Privacy.

Received

Got it, friend.

We'll get back to you within one business day. If it can't wait, text or call (224) 243-6864.