How to connect Stripe to ChatGPT: the plugin, MCP, and your metrics
Connecting Stripe to ChatGPT takes two forms: the official Stripe plugin for payment operations, and a metrics connector over MCP for MRR, churn and LTV. Both setups, step by step, with the security model explained.
By Pedro Campos

ChatGPT is where a lot of founders already live, and Stripe is where their money already lives. Wiring the two together is now genuinely easy, but the wiring comes in two distinct forms that most guides blur together, and picking the wrong one for your question is how you end up with an agent confidently miscalculating your MRR.
Form one is Stripe's official integration: ChatGPT gets the Stripe API as tools, so it can look up customers, chase invoices and issue refunds. Form two is a metrics connector: ChatGPT gets computed subscription analytics (MRR, churn, cohorts, LTV), so it can answer "how is the business doing" questions with numbers that are actually right. This guide sets up both and is honest about which questions belong to which.
Form one: the official Stripe integration
Stripe ships a first-party path for OpenAI's products. In ChatGPT itself, it is a plugin you
install from the store; in the Codex CLI, it is a standard MCP entry pointing at
https://mcp.stripe.com:
One line adds it. Then run /mcp and authenticate with OAuth in the browser.
claude mcp add --transport http stripe https://mcp.stripe.com/Desktop or web, on any paid plan.
- 1Open Settings, then Connectors, then Add custom connector.
- 2Paste https://mcp.stripe.com as the URL and save.
- 3Approve the OAuth consent screen Stripe opens, choosing the account it may read.
ChatGPT installs Stripe as a plugin rather than by URL. Plus, Pro, Business, Enterprise and Education plans.
- 1Open the plugin store and install the official Stripe plugin.
- 2Approve the OAuth consent screen Stripe opens, choosing the account it may read.
- 3Ask something ("list my open disputes") to confirm the tools respond.
Add this to ~/.cursor/mcp.json, then approve the OAuth prompt.
{
"mcpServers": {
"stripe": {
"url": "https://mcp.stripe.com"
}
}
}Add the server to ~/.codex/config.toml, then sign in with the second line.
[mcp_servers.stripe]
url = "https://mcp.stripe.com"
# then, in the terminal:
codex mcp login stripeAuthentication is OAuth: Stripe opens a consent screen, you choose the account, and the session appears under OAuth sessions in your Stripe user settings, where you can revoke it any time. No API key touches ChatGPT.
What you get is operational reach. The Stripe tools can search the API, read your account data, and, importantly, write: refunds, subscription changes, invoice operations. Ask it to find a payment and refund it, and it will. Two consequences follow:
- Keep confirmation on for tool calls that modify anything, and read what ChatGPT proposes before approving. Stripe's own docs say the same.
- If you only want lookups, connect with a restricted API key limited to read permissions instead of OAuth.
The full tool list and where its limits are is a post of its own: the Stripe MCP server, explained.
Form two: your metrics, over MCP
Now the trap. With the Stripe integration connected, ask ChatGPT "what is my churn rate this quarter" and it will gamely page through raw subscription objects and improvise an answer. The improvisation is the problem: churn, MRR and LTV are computations with edge cases (annual normalization, proration, dunning, coupons), and a model re-deriving them from raw API objects gets a slightly different wrong answer each time. The number sounds right, cites real customers, and does not survive an audit.
The fix is to compute first and let ChatGPT read the results. Kometrics syncs your Stripe history, classifies every dollar into a movement ledger (new business, expansion, contraction, churn, reactivation), and serves the finished metrics over MCP. ChatGPT connects to it through Developer mode:
Then run /mcp and choose Authenticate: the browser opens once for the approval screen, where you pick the workspace.
claude mcp add --transport http kometrics https://app.kometrics.com/mcpDesktop or web. The connector URL is https://app.kometrics.com/mcp.
- 1Open Settings, then Connectors, then Add custom connector.
- 2Paste the connector URL and save.
- 3Approve it on the Kometrics screen, choosing the workspace it reads.
The connector URL is https://app.kometrics.com/mcp, with OAuth as the authentication.
- 1Turn on Developer mode under Settings, then Connectors.
- 2Add a connector with the connector URL, and OAuth as the authentication.
- 3Approve it on the Kometrics screen, choosing the workspace it reads.
The second line opens the browser for the approval screen.
codex mcp add kometrics --url https://app.kometrics.com/mcp
codex mcp login kometricsGetting Stripe into Kometrics first is the usual five minutes: create a workspace, open Settings then Sources, pick Stripe, and connect with OAuth or a restricted read key plus the webhook shown. The sync rebuilds your history back to the first invoice.
The connector is OAuth too, with one deliberate difference from form one: every tool is read only. There is no refund tool, no cancel tool, no write path at all, so this connection never enters the "what could the agent break" conversation.
What it looks like in practice
The payoff question for ChatGPT specifically is drafting: it is where investor updates, board notes and summaries get written, and a metrics connector means the numbers arrive in the draft already correct:
Prompts that earn the connection:
One decision table
| You want ChatGPT to... | Connect |
|---|---|
| Refund, credit or cancel things | Stripe plugin |
| Chase overdue invoices | Stripe plugin |
| Look up a customer's payment history | Stripe plugin |
| Report MRR, churn, LTV, NRR correctly | Kometrics connector |
| Explain why revenue moved, customer by customer | Kometrics connector |
| Draft an investor update with real figures | Kometrics connector |
| Both halves in one conversation | Both, they coexist fine |
FAQ
Can ChatGPT connect to Stripe directly?
Yes. Stripe publishes an official plugin for ChatGPT (Plus, Pro, Business, Enterprise and
Education plans) and an MCP server at https://mcp.stripe.com that the Codex CLI and other
MCP clients use. Both authenticate with OAuth.
Do I need a paid ChatGPT plan?
For the Stripe plugin and for custom MCP connectors, yes: both live in features free accounts do not have. The Codex CLI follows its own plan requirements.
Is it safe to give ChatGPT access to Stripe?
The OAuth sessions are revocable from your Stripe dashboard, and administrators can manage MCP access account-wide. The risk to actually manage is write access: keep tool confirmation on, or use a read-only restricted key. A metrics connector like Kometrics is read only by construction, which removes the question entirely for that half.
Can ChatGPT calculate MRR from raw Stripe data?
It will produce a number; it will not reliably produce the right one. MRR needs consistent policies for annual plans, trials, proration, coupons and failed payments applied across the whole history, which is ledger work, not chat work. What is MRR shows exactly where the improvised versions break.
Does this work the same in Claude?
Yes, both forms: same endpoints, same OAuth, different client menus. The Claude walkthrough is here.
Know your revenue. Trust the metrics.
Connect Stripe and get every SaaS metric computed from your real billing history. Free under $1,000 MRR.
Start freeKeep reading

NRR vs GRR: the two retention numbers, and why you need both
Net revenue retention and gross revenue retention answer different questions: one measures growth from the base, the other measures the leak. Formulas, a worked example, benchmarks, and which one to quote when.

The best MCP servers for business: sales, marketing and revenue (2026)
A verified directory of MCP servers worth connecting for business work: Stripe, HubSpot, Google Analytics, PostHog, Notion, Linear and more, grouped by job, with what each one actually exposes.

How to connect Stripe to Claude (and actually ask about your revenue)
Two ways to connect Stripe to Claude over MCP: the official Stripe server for payment operations, and Kometrics for MRR, churn and LTV your agent can reason over. Setup for Claude, Claude Code and Codex.