Integrations

Stripe MCP — Connect Stripe to Claude, ChatGPT, and Other AI Assistants

·16 min read

If you're searching for "Stripe MCP", you're asking one of two things: does Stripe have an MCP server? or how do I connect Stripe to an AI assistant via the Model Context Protocol?

✅ Stripe has an official MCP server. Details in the setup section below.

What Is MCP?

Model Context Protocol (MCP) is an open standard developed by Anthropic that lets AI assistants — like Claude — connect to external tools, APIs, and data sources in a standardised way.

Before MCP, every AI integration required bespoke tooling: custom prompts, custom API wrappers, and custom glue code to pass context back and forth. MCP replaces that with a common interface: the AI asks the MCP server for data or actions, the server returns structured results, and the AI uses them to answer your question or complete a task.

In plain terms: MCP is how you give an AI assistant live access to Stripe — not just knowledge about it, but real, up-to-date data from your account.

What a Stripe MCP Integration Does

Once Stripe is connected via MCP, your AI assistant can:

  • Read live data — pull records, metrics, activity, and status directly from Stripe
  • Take actions — create, update, or log records based on your instructions
  • Cross-reference context — combine Stripe data with other connected tools mid-conversation

The key difference from a standard chatbot: the assistant is not working from training data or memory. It is reading your actual Stripe instance, in real time.

Practical Stripe MCP Use Cases

Transaction and revenue lookups

Ask "how much revenue did we collect this week?" and get an answer directly from Stripe — without opening a dashboard or exporting a CSV.

Invoice and subscription status

Look up a customer's payment status, subscription tier, or recent invoices in Stripe from your chat interface — useful for support and sales calls.

Reconciliation assistance

Have the assistant pull transaction records from Stripe and flag discrepancies or missing items based on rules you define.

Stripe MCP: What the Official Server Actually Does

Stripe runs a first-party, hosted remote MCP server at https://mcp.stripe.com — no self-hosting, no Docker image, no community wrapper. It is officially in public preview, it authenticates through OAuth or an agent API key, and it exposes far more of the API than most guides suggest.

That last part is the thing almost every "Stripe MCP" article gets wrong. They describe a handful of read tools (list customers, retrieve a charge) and stop there. The real server ships four generic API tools that can reach a large slice of the entire Stripe API, plus a handful of product-specific tools. The tradeoffs that matter are not "which tools exist" but how you authenticate, who can write, and what happens when an agent tries something irreversible.

Stripe's official MCP documentation — the hosted remote server at mcp.stripe.com, plugin setup, and per-client configuration

Stripe's MCP page. Note the "Public preview" badge and the recommended path: the agent plugin, which configures the server and installs Stripe's skills in one command.

The setup path Stripe actually recommends

Stripe's docs lead with a plugin, not a JSON snippet:

npm install -g @stripe/cli@latest
stripe agent setup

That command detects which MCP clients you have installed and configures each one, and it keeps Stripe's agent skills up to date. The skills matter if your agent writes integration code rather than querying your account: they teach the client Stripe's current API conventions instead of whatever was in its training data.

If your client is not supported by the plugin, the manual configuration is short — the endpoint is just a URL:

Client How to add it
Cursor {"mcpServers": {"stripe": {"url": "https://mcp.stripe.com"}}} in ~/.cursor/mcp.json
Claude Code claude mcp add --transport http stripe https://mcp.stripe.com/ then /mcp to authenticate
Codex codex mcp add stripe --url https://mcp.stripe.com
Claude Desktop / ChatGPT Install Stripe's official connector from the directory, then OAuth
VS Code {"servers": {"stripe": {"type": "http", "url": "https://mcp.stripe.com"}}} in .vscode/mcp.json

There is no npx install and no server process. If a guide tells you to clone a repo and run a local Stripe MCP binary, it is describing the community era, not the current setup.

The deadline that will break your connection: 30 November 2026

This is the single most load-bearing fact on the page, and it is easy to miss because it sits in a warning box rather than the setup steps:

Stripe MCP will stop accepting full-access secret keys and restricted API keys without the Agent tag. Requests using an unsupported key receive a 401 with an OAuth discovery challenge.

So an agent connection that works today, built on a plain restricted API key, stops working in December 2026. The migration is not a config change — you have to create a new kind of key:

  1. Go to the Dashboard's API keys page and create a restricted key.
  2. When Stripe asks what the key is for, select Authorising agent access to your account. The key is then tagged and shows an Agent badge in the Dashboard.
  3. Grant only the permissions the agent needs, and swap it in. Stripe's advice is to test in a sandbox first, then expire the old key.

An agent-tagged key is not just a label. Tagging makes the key subject to approval rules: Stripe ships default rules for agent keys covering refund creation and subscription cancellation, and you can add conditions on amount, actor, or request rate, with designated reviewers and an option to block rather than gate. When an agent hits a rule, the API returns an approval_required error and files a request in the Dashboard, where a human approves or denies it. Requests expire after 14 days.

That is the difference between "the agent can refund" and "the agent can ask to refund."

Stripe's MCP docs, authentication section — OAuth vs agent API keys, and the November 30 2026 key migration warning

The warning box is the part to read twice: unsupported keys get a 401 from December 2026, and the fix is a newly created agent key, not a rename.

OAuth vs agent API key: pick by who is present

OAuth Agent API key
Who it acts as Your Stripe user, on your behalf The application, independently
Setup Browser consent screen, per client Create key, paste as bearer token
Sandbox and live Grant per environment at consent time One key per environment
Good for Interactive Claude/Cursor/Codex sessions Scheduled jobs, servers, CI
Revoking OAuth sessions list in user settings Expire the key
Connect accounts Not supported for connected accounts Required, plus Stripe-Account header

Two details that trip people up:

  • OAuth consent is scoped per environment. You can grant live mode, sandboxes, or both, with different permissions for each. Connecting "Stripe" is not one decision, it is one per account.
  • Admins can turn MCP off for the whole team under Dashboard settings, separately for live and sandbox. If the server simply will not connect in a corporate environment, check that switch before debugging tokens — and if your network blocks egress, mcp.stripe.com has to be allowed.

The tool surface: four generic tools, then the rest

The important mental model is that Stripe does not expose one tool per API method. It exposes four general-purpose tools that can call most of the API, plus a few specialised ones.

API tools

  • stripe_api_search — find an API method by keyword
  • stripe_api_details — get the parameter schema for one method
  • stripe_api_read — call any GET method
  • stripe_api_write — call any POST, PATCH, PUT, or DELETE method

This is why the tool list looks short and the capability does not: the model searches for the method, reads its schema, then calls it. Stripe's rationale is explicit — "much of the API available through MCP without increasing the context window unnecessarily."

Specialised tools

Group Tools Notes
Account get_stripe_account_info Which account is this connection actually on
Analytics stripe_analytics Preview; Sigma required for SQL over your data
Treasury get_balance_summary, convert_currency, send_money, setup_recipient, transfer_money Public preview — real money movement
Atlas atlas_company_formation Start or resume a Delaware C corp or LLC formation
Meta search_stripe_documentation, stripe_implementation_planner, send_stripe_feedback Docs lookup and integration planning

The documented method list behind stripe_api_read and stripe_api_write covers customers, charges, refunds, payment intents, payment methods, checkout sessions, invoices and invoice items, credit notes, subscriptions and schedules, coupons and promotion codes, products and prices, payment links, disputes, webhook endpoints, events (v1 and v2), the customer portal, application fees, transfers, balance and balance transactions, tax settings and calculations, issuing, and the v2 accounts and money-management surface. Notably, reading is broad; not every write is in the supported list, so an agent that needs an exotic mutation may still need the REST API.

The confirmation flow: how Stripe stops a bad refund

For writes that carry real risk — refunds, outbound payments — Stripe requires human confirmation even after the agent is authenticated. The agent gets back a URL; a human opens it, reviews the request, and clicks Approve. Stripe then hands the agent an approval token, and the agent has to retry the operation, which then goes through without a second prompt. The approval expires after 24 hours.

That "approve, then tell the agent to retry" step is the part implementations get wrong. An agent that treats the approval URL as a success message will report a refund it never actually made. Bake the retry into the workflow, or use approval rules on an agent key and let approval_required drive the loop instead.

Connected accounts: the OAuth gap

If you are a Connect platform, the tools act on the account behind your OAuth session or key. To act on a connected account, you must use an agent API key — MCP does not support OAuth for connected accounts — and pass the account explicitly:

{
  "mcpServers": {
    "stripe": {
      "url": "https://mcp.stripe.com",
      "headers": {
        "Authorization": "Bearer {{AGENT_API_KEY}}",
        "Stripe-Account": "acct_xxxxxxxxx"
      }
    }
  }
}

Without that header, every call silently applies to the platform account. That is the quietest failure mode on this page: a support agent asked to investigate a charge on a connected account will return a confident answer about the wrong account's data.

Five workflows that hold up in practice

1. Overnight failed-payment digest. stripe_api_read on the charges and invoices lists filtered to failed status, grouped by customer and decline code, posted to Slack each morning with the revenue at risk. Pair with a dunning follow-up list. Keep it read-only; let a human decide who gets a retry email.

2. Refund triage with a two-party gate. The agent reads the charge, the customer's history, and the dispute record, drafts a recommendation, and — if the amount clears your threshold — files a refund request. The default agent-key approval rule holds the refund until a reviewer approves it in the Dashboard. You get the speed of an agent and the paper trail of a human decision.

3. Billing question answering in Slack. "Why was this customer charged twice?" resolves to a customer lookup, then the invoice list, then the line items, then the payment intent history — four writes-free calls the assistant can make while the support thread is open.

4. Subscription health sweep. List subscriptions past due and in their trial-ending window, retrieve each one's schedule, and flag those where the schedule diverges from what sales said. Cancellations deliberately route through approval rather than direct execution.

5. Reconciliation check. Compare payout and balance-transaction totals for a period against what your books say. Read-only, cheap, and it catches the drift that only shows up a month later.

Pitfalls specific to Stripe MCP

  • The 30 November 2026 key deadline is a hard stop, not a warning. Full-access secret keys and restricted keys without the Agent tag stop working in December 2026, and the failure is a 401 with an OAuth discovery challenge, which reads like a broken token rather than a deprecation. Migrate deliberately, not on the day it breaks.
  • stripe_api_write is genuinely broad. It can call any supported POST, PATCH, PUT, or DELETE. Scope the agent key, keep the client's tool-approval setting on, and do not connect Stripe MCP alongside untrusted MCP servers in the same session — Stripe's own docs flag prompt injection here, and a write tool is the payload.
  • Approval is a two-step dance. Clicking Approve returns a token to the agent; the agent must retry the call. If your loop does not retry, you will believe the refund succeeded when it never ran. Approvals also expire in 24 hours.
  • Connected accounts need Stripe-Account and an agent key. OAuth does not work for connected accounts at all. Forget the header and you are reading the platform account without any error to tell you so.
  • Sandbox and live are separate MCP connections. OAuth grants them separately, agent keys are separate keys, and admins enable MCP access separately. "Stripe is connected" is never sufficient information — ask which environment.
  • MRR still does not exist as a metric. Stripe exposes subscriptions, prices, and quantities, not MRR. If you ask an MCP-connected assistant for MRR, it will calculate it — and annual plans, trials, paused subscriptions, and mid-cycle proration are exactly where that calculation goes wrong. Use stripe_analytics (Sigma) or a billing analytics tool instead of letting the model do the arithmetic.
  • stripe_analytics requires Sigma. Without it, the tool cannot run SQL over your data, and the failure looks like a permissions problem on the MCP connection.
  • Treasury tools move real money. send_money and transfer_money are public preview and they are not toy calls. Do not enable them on a key that also answers support questions.
  • Revoking a session revokes one scope. Session management applies to the account and environment you are viewing. Removing a client in live mode leaves its sandbox session live, and vice versa.
  • API versioning still applies. The MCP server calls the Stripe API on your account's version. An agent reading fields from a newer version than your account's default will report empty or renamed fields with no error.

How to Connect Stripe via MCP

There are two main paths:

Option A: Use Stripe's official MCP server

Stripe maintains an official Stripe MCP server. This is the recommended starting point — it's built and maintained by the Stripe team, so it stays up to date with API changes.

Note: Stripe hosts a first-party remote MCP server at https://mcp.stripe.com (public preview). OAuth for interactive clients, agent API keys for autonomous ones; full-access and untagged restricted keys stop working for MCP in December 2026.

What the server exposes:

  • payments
  • customers
  • subscriptions
  • invoices
  • refunds
  • products
  • treasury
  • account analytics
  • docs search

What you'll need:

  • An MCP-compatible client (Claude Desktop, OpenClaw, or another host)
  • Stripe credentials configured per the server's setup guide

This path gives you the most control but requires you to handle client configuration and credential management yourself.

Option B: Use Cody (OpenClaw-based, managed)

Cody is built on OpenClaw and supports MCP-compatible integrations out of the box. You connect Stripe once from the Cody dashboard — no server to run, no code to write — and Cody handles authentication, context passing, and write-back actions with appropriate guardrails.

Cody works where your team already operates: Slack, Telegram, or the web chat. The Stripe connection is available to your entire team without each person setting up their own MCP client.

Want Stripe Connected to AI Without Running Your Own MCP Server?

Cody has Stripe integration built in. Ask about subscriptions, failed payments, refunds, invoices, and billing health from Slack without wiring up the API yourself.

Get started with Cody →

MCP vs Other AI Integration Patterns

Approach What it is Tradeoff
MCP Standardised protocol for live tool access Requires an MCP server; most powerful when set up correctly
RAG (retrieval) Pre-index Stripe content and retrieve it Good for static docs; not suitable for live/transactional data
Manual copy-paste Paste Stripe output into ChatGPT/Claude Fast to start; breaks for anything recurring or at scale
Custom API wrappers Bespoke integration code per tool Full control; high maintenance overhead

MCP wins when you need live data from Stripe and want to avoid rebuilding integrations as APIs change.

Common Mistakes

  • Using training data when live data is needed — if the AI doesn't have an MCP connection, it will answer from memory, which is often outdated or wrong for account-specific questions
  • No write-back guardrails — MCP can write to Stripe, so it's worth adding an approval step for any action that modifies records
  • Too many tools exposed at once — give the AI access to the Stripe actions it actually needs; a scoped connection is easier to reason about and audit
  • Skipping structured outputs — ask the AI to return structured JSON or clear fields when writing back to Stripe; free-form output is harder to validate

Do you need to run this yourself?

The Stripe MCP server is one of the better-run official servers, and it is still a connection you have to own: a key tagged for agents, an approval policy, per-environment scoping, and a 2026 migration deadline that will silently break anything built on the old key types. If your goal is a finance-aware assistant your team can ask about failed payments, subscriptions, invoices, and billing health in Slack, Cody connects Stripe once from the dashboard and handles the auth, scoping, and guardrails — including the approval step — without a per-person MCP config.

Related reading: Shopify MCP for the commerce side of the same payments picture, and HubSpot MCP if you want the customer record next to the billing record.


Related MCP Guides


Want the full workflow picture? See: Stripe AI Automation and How to Connect Stripe to OpenClaw.