Stripe connector for Claude Code

Use Porter’s Stripe connector for Claude Code to pull MRR, subscribers and churn into your terminal, then turn them into files, scripts and scheduled growth reports in your own project.

  • Save monthly MRR as CSV in your repo
  • Split churn into voluntary and delinquent
  • Run a weekly growth report from a script
  • Compare new MRR with your ad spend
G2★★★★★Rated 4.6/5 from 288 G2 reviews (October 2026) · Used by 1,600+ marketing teams and agencies

By · Last updated November 26, 2026

Claude Codeporter connected
Show MRR, New MRR and Active subscribers for the last 3 full months and save it to reports/mrr.csv
porter / Stripe / Trailgear Demo✓ 3 rows
Saved reports/mrr.csv. MRR grew 6% a month; October had the most new MRR.
MonthMRRNew MRR
August$84,200$7,900
September$89,300$8,640
October$94,100$9,880
Demo data, Trailgear Demo account
352 Stripe fields
01Setup

How to connect Stripe to Claude Code

Connecting Stripe to Claude Code takes 3 steps and no API keys: connect your Stripe accounts in Porter with a Stripe restricted key, add Porter’s MCP server to Claude Code with one command, then sign in from /mcp and ask. The same server also works in Cursor, VS Code and Codex, as Porter’s Stripe MCP server page shows. Using the Claude app instead? See the Stripe connector for Claude.

Before you start

  • You need Claude Code installed (Anthropic’s Claude Code overview), a free Porter account and a Stripe account where you can create restricted keys.
  • Works with any Claude model in Claude Code, from Opus to Sonnet and Haiku.
  1. Step 1: Connect Stripe in Porter

    Sign up free at Porter, pick Stripe as the source and sign in with a Stripe restricted key. Tick every account you want Claude Code to read.

  2. Step 2: Add Porter to Claude Code

    In your terminal, run this command. It adds Porter for every project on your machine; drop --scope user to add it to the current project only.

    Terminal
    claude mcp add --transport http --scope user porter https://mcp.portermetrics.com/mcp

    Or, inside Claude Code, install Porter’s plugin, which adds the server and Porter’s skill together: /plugin marketplace add portermetrics/porter, then /plugin install porter-metrics@portermetrics.

  3. Step 3: Sign in and ask

    Start claude, type /mcp, pick porter and sign in with the Google account you use in Porter. When porter shows as connected, paste this prompt:

    Prompt
    Which Stripe accounts can you see? For each of the last 3 full months, show MRR and Active subscribers on the month’s last day, plus New MRR, and save it to reports/mrr.csv.

Guides and videos

app.portermetrics.com / create
Porter's Select accounts window for Stripe with a demo account and the Connect button
First, in Porter, open Stripe and select Connect.
Porter's Connect your Stripe account form with the restricted API key field
Then, paste a Stripe restricted API key and select Next.
$ claude mcp add --transport http --scope user porter https://mcp.portermetrics.com/mcp

$ claude mcp list
porter: https://mcp.portermetrics.com/mcp (HTTP)
Then, add Porter's MCP server from your terminal.
> /mcp
porter · needs authentication → Authenticate

> Which Stripe accounts can you see?
● porter - list_accounts (MCP)
Trailgear Demo
After you sign in from /mcp, Claude Code lists your Stripe accounts.
02Use cases and prompts

What you can do in Claude Code

Claude Code works inside your project, so Stripe answers can become files, scripts and dashboards instead of chat replies. Each use case has a prompt to copy and uses the Stripe fields Porter reads.

Can Claude Code export Stripe MRR?

The problemStripe’s dashboard shows MRR, but not in a file your growth model can read.

What Claude Code doesClaude Code pulls MRR, Active subscribers and New MRR by month through Porter and writes them to a CSV.

What you getA monthly MRR file in your repo, ready for your growth model.

Prompt
For each of the last 6 full months, show MRR and Active subscribers on the month’s last day, plus the month’s total New MRR, and save it as data/mrr-monthly.csv.

Is churn voluntary or failed payments?

The problemTotal churn hides whether customers left or their cards failed.

What Claude Code doesClaude Code pulls Voluntary churned MRR and Delinquent churned MRR by week with subscriber counts.

What you getA churn file that shows which problem to fix first.

Prompt
For the last 8 weeks, show Voluntary churned MRR, Delinquent churned MRR, Voluntary churned subscribers and Delinquent churned subscribers by week, and save it to reports/churn.csv.

Can I schedule a Stripe report with Claude Code?

The problemStripe shows MRR, but the weekly note on new and churned MRR still gets written by hand.

What Claude Code doesA scheduled claude -p run compares New MRR, Voluntary churned MRR, Delinquent churned MRR and Active subscribers with the week before.

What you getreports/growth-weekly.md showing what grew and what churned.

Prompt
claude -p "Compare last week with the week before in Stripe: New MRR, Voluntary churned MRR, Delinquent churned MRR and Active subscribers. Write it to reports/growth-weekly.md" --allowedTools "mcp__porter" "Write"

Is my ad spend bringing new MRR?

The problemNew MRR lives in Stripe and spend lives in each ad platform.

What Claude Code doesClaude Code pulls monthly New MRR from Stripe and monthly spend from your connected ad platforms through the same server.

What you getSpend per dollar of new MRR, month by month.

Prompt
For the last 6 months, pull monthly New MRR from Stripe and monthly spend from Google Ads, Meta Ads and LinkedIn Ads, and write spend per dollar of new MRR to reports/mrr-vs-spend.csv.
03Why Porter

Why Porter for Stripe in Claude Code

Stripe’s own MCP server is built for payments work. Porter turns Stripe into marketing metrics, such as MRR, new MRR and churn, and puts them next to your ad platforms and 30+ other sources behind the same server.

✓

One server for all your sources

The same porter server answers about Stripe, Meta Ads, Google Ads, GA4 and Shopify, so one script can pull every channel.

⊞

Safe for live payments

Porter reads Stripe for reporting, so Claude Code never refunds, charges or edits a customer from this connector.

⚙

A restricted key, kept in Porter

You create a restricted key in Stripe and add it in Porter, so no key lives in your project or terminal history.

↻

Hosted dashboards when a file isn’t enough

Ask for a Porter AI dashboard and it is published at its own link, synced automatically and ready to share with a client.

04Dashboard

Dashboard template

Start from a ready-made Stripe template, or ask Claude Code to build a live one with AI dashboards.

AI dashboards

Build a live Stripe dashboard from your terminal

Describe the dashboard in one sentence and Porter builds it. A client-ready dashboard in minutes, with no chart dragging and no BI tool to learn. Ask Claude Code:

Prompt
Build a live Stripe dashboard for my account with the last 30 days, the main KPIs and a weekly trend.
Live URLEach dashboard at its own link: no login, no app, no download
Auto-syncFresh Stripe data, nobody re-exports each period
Scheduled deliveryEmail or PDF sends on a set day
White labelYour logo and branding for clients
Sharing permissionsView or edit access per person
Stripe dashboard template by Porter
Template

The Stripe dashboard template

Start from Porter’s official Stripe dashboard template, or run the prompt above in Claude Code and Porter publishes the dashboard at its own link.

Or start from a template

05Pricing

Pricing

You can start free, since Porter’s Stripe connector for Claude comes with every plan. Use the calculator for your number of accounts, or see Porter pricing for every plan.

What you get

  • Free plan: never expires, with unlimited connected accounts and the last 15 days of data in Claude (30 days in Data Studio and Sheets)
  • Reporting: from $12.50 per account a month billed annually, or $15 month to month for one account
  • Billing: each Stripe account counts as one account, with volume discounts and no per-seat fee
  • No credits needed: Claude’s Stripe questions are reads, so they use no AI credits
  • Trial: 14 days of full access, no card

Price calculator

$33.33/mo$6.67 per account

An account is one ad account, Stripe account, store, page or GA4 property. The Free plan never expires and has unlimited accounts, with the last 15 days of data in AI chats.

06Data and actions

Stripe data Claude can use

Through the Stripe connector, Claude can use 352 fields from 15 tables, including charges, invoices, subscriptions, balance transactions and a daily MRR series. Each question reads one table, then Claude joins tables on date or customer ID. Labels and IDs are in the full list of Stripe fields, while objects are in Stripe's API reference.

12 Stripe fields Claude uses most

FieldWhat it's for
MRRstripe_mrrDaily MRR per currency; read the last day
Net new MRRstripe_net_new_mrrNew + expansion + reactivation − contraction − churned MRR
Churned MRRstripe_churned_mrrMRR lost to customers going to zero
Subscriber churn ratestripe_subscriber_churn_rateTrailing 30 days
Net revenue retentionstripe_net_revenue_retentionTrailing 30 days
Active subscribersstripe_active_subscribersCustomers with MRR over 0
Gross volumestripe_gross_volumeSuccessful payments, as in the Balance report
Net revenuestripe_net_revenuePayments − refunds − disputes − Stripe fees
Feesstripe_feesStripe, application and tax fees
Failed paymentsstripe_failed_paymentsDeclines and blocked charges
Payoutsstripe_payouts_amountCash sent to the bank
Invoice overdue amountstripe_invoice_overdue_amountCollections

Product stats

WhatStripe connector
Fields352 (151 metrics, 201 dimensions) from 15 tables
FreshnessLive on every question, no cache
HistoryNo cut-off on paid plans (5 years tested); 30 days on the Free plan, 15 in AI chats
MRRStripe's API has no MRR series; Porter rebuilds it day by day from every subscription ever created
SpeedBalance transactions, invoices, payouts and MRR return 30 days in one call; charges are slower, so ask by month
CurrenciesEach amount stays in its own currency
AccessRead-only restricted key

See all 352 Stripe fields

07Security

Is it safe?

Yes. Porter reads Stripe with a restricted key you create, set to Read on Core and Billing and None everywhere else. Your money, subscriptions and customers stay exactly as you set them. Before going live, test with a sandbox (test mode) key, and revoke the key in Stripe anytime.

What the connector needs from Stripe

Porter needs Read on Balance, Balance transaction sources, Charges and refunds, Customers, Disputes, Payouts, Products, Coupons, Invoices, Prices and Subscriptions. Porter rejects pk_ keys, while sk_live_ keys grant everything (Stripe's API key best practices).

Try the connector on a Stripe sandbox first

When an rk_test_ key connects a sandbox, Porter's Live mode field marks those rows 0.

08FAQ

FAQ

Answers on setup, scope, scripts and credits, plus fixes for the most common Claude Code errors with Stripe. Setup questions every source shares, like where Claude Code saves the server and how to share it with your team, are in the Claude Code hub FAQ.

Can I put ad spend next to Stripe MRR?

Yes. Connect your ad platforms in Porter and ask for spend next to New MRR. Claude Code writes both to one weekly file, so growth and spend sit side by side.

What key does Porter need?

A Stripe restricted key with read access. You create it in Stripe under Developers, then API keys, and add it in Porter.

Do Claude Code questions use Porter credits?

Reading Stripe data uses no AI credits, so questions and reports on this page are free on every plan.

Troubleshooting

Why does /mcp show porter as needing authentication?

Claude Code adds the server before you sign in. Pick porter in /mcp, choose Authenticate and sign in with the Google account you use in Porter.

Why does my claude -p script stop and ask for permission?

Scripts can’t answer permission prompts. Pass the tools the script may use, for example --allowedTools "mcp__porter" "Write", so Claude Code can read Porter and save files without stopping.

Why does Claude Code see my account but return no data?

Usually the restricted key has no read access to subscriptions or invoices. Edit the key in Stripe to allow reads, reconnect in Porter, then ask again.

09Next

More Claude connectors

Revenue makes more sense when it sits next to the ad, CRM and analytics data around it. Porter brings each of those into Claude through the same MCP URL as the Stripe connector. Then add the ones your sign-ups, trials and paid subscriptions depend on, or browse all Claude connectors:

Not only Claude. Send Stripe data anywhere

The same Porter account and connection also send Stripe data to these destinations, at no extra cost.

Try the connector in Claude Code

Porter’s Stripe connector for Claude Code takes one command, so your first MRR file can land in your project today.

Free plan · 14-day trial · No card needed

SaaS marketers: new MRR and churn land in one file next to ad spend.

Growth marketers: churn by type shows which problem to fix first.

Marketing ops: your growth model reads MRR straight from the repo.