
Add Stripe to Claude Code
Add Stripe's hosted server or plugin to Claude Code and sign in, and Claude can look up and change your Stripe data from the terminal.
Add Stripe's hosted server with one command, or install the Stripe plugin, then sign in to Stripe from /mcp. Claude Code can then look up customers and payments, search Stripe's docs, and make changes such as refunds. Pick a sandbox on Stripe's sign-in page before you connect a live account. The plugin also adds Stripe's coding guidance, so choose it if you build on Stripe.
Good for
- Developers building a Stripe integration who want Stripe's docs and API inside Claude Code
- Engineers who debug payments, subscriptions and webhooks against a sandbox
- Connect platforms running agents on connected accounts with an agent key
- Teams moving off sk_ keys before Stripe's November 30, 2026 cutoff
Add Stripe to Claude Code
Claude Code
- 1
Copy this prompt.
Add the Stripe MCP server to Claude Code. Run this command: claude mcp add --transport http stripe https://mcp.stripe.com/ Then check that it loaded and tell me if I need to sign in or restart.
- 2
Paste it into Claude Code. It shows the change and asks before running it.
Requires Stripe account; approve access in Stripe's OAuth window.
Read-only mode: There's no read-only switch. Pick read-only permissions on Stripe's sign-in page, or use an agent key with only Read access.
After claude mcp add, start Claude Code, run /mcp, pick stripe and sign in. On Stripe's page, choose a sandbox first and pick read-only if you only need lookups. The plugin adds the same server plus Stripe's coding skills; stripe agent setup installs the plugin for you. Stripe's docs page shows stripe@anthropic-plugin-directory, but that is not one of Claude Code's marketplace names; Stripe's GitHub README and Anthropic's official marketplace use stripe@claude-plugins-official, as shown here. Use the API key option only for connected accounts or unattended runs. Full secret keys (sk_) and untagged restricted keys stop working after November 30, 2026.
From the vendor's docs. Source.
Common errors and fixes
/mcp shows stripe as needing authentication
Cause: claude mcp add only registers the server; sign-in happens separately.
Fix: Start Claude Code, run /mcp, pick stripe and finish Stripe's sign-in in the browser.
claude-code Source
401 with an OAuth discovery challenge when using an API key
Cause: From December 2026 Stripe rejects full secret keys and restricted keys without the Agent tag.
Fix: Create an agent API key, or remove the header and sign in with OAuth from /mcp.
claude-code Source
Authorization header is empty or the key is rejected from .mcp.json
Cause: The environment variable named in ${AGENT_API_KEY} is not set in the shell that started Claude Code.
Fix: Export the variable in your shell, then start Claude Code again from that shell.
claude-code Source
Browser says authorization succeeded, but Claude Code keeps spinning and fails to connect
Cause: One open report; the cause is not confirmed.
Fix: Retry from /mcp; if it keeps failing, use the agent API key option instead of OAuth.
claude-code Source
Live account is greyed out on Stripe's Choose an environment screen
Cause: Stripe shows no reason. One possible cause: an admin turned off MCP access for live mode, which Stripe lets admins set apart from sandboxes.
Fix: Ask a Stripe admin to check MCP and CLI access settings in the Dashboard, or work in a sandbox.
claude-code Source
Plugin install fails: your local changes would be overwritten by checkout
Cause: A git checkout error during plugin install, in one Windows report that Stripe could not reproduce.
Fix: Add the server with claude mcp add instead, and install Stripe's skills separately.
claude-code Source
A refund stays pending and is never created
Cause: Refunds need human confirmation in the Stripe Dashboard first.
Fix: Open the link Claude Code gives you, approve it within 24 hours, then ask Claude Code to retry.
claude-code Source
Stripe server will not connect on a work laptop
Cause: Managed devices or networks can block external MCP servers.
Fix: Ask IT to allow mcp.stripe.com.
claude-code Source
Permissions
High risk
Signed in to your live account, Claude Code can refund customers, cancel subscriptions and void invoices, and only refunds and money moves wait for your approval. Sign in to a sandbox first and keep Claude Code's approval prompt on for every Stripe write.
What it can do
- Read your data
- Create and change things
- Delete things
- Read-only modeHow to turn it on
Watch out for
Claude Code can change live Stripe data
It can create refunds, cancel subscriptions and void invoices. Pick a sandbox when you sign in, and never choose "don't ask again" for write calls. docs.stripe.com
Keep agent keys out of a shared .mcp.json
A project .mcp.json is often committed to git. Reference an environment variable for the key, as Stripe's docs show. docs.stripe.com
Other servers' text can steer Stripe actions
Stripe warns about prompt injection when it runs alongside other servers. Keep Claude Code's approval prompt on for Stripe. docs.stripe.com
The plugin reports skill use to Stripe
Set DISABLE_TELEMETRY=1 or DO_NOT_TRACK=1 in your environment to stop it. github.com
Refunds still wait for your OK
Refunds and Treasury money moves need approval in the Stripe Dashboard, and the request expires after 24 hours. docs.stripe.com
Security advisories
No published security advisories as of Nov 2, 2026.
Technical details
| Turning on read-only | Grant read-only permissions per environment on Stripe's OAuth consent page, or use an agent API key with Read permissions. In Claude Code, a deny rule on the write tool (mcp__stripe__stripe_api_write, or mcp__plugin_stripe_stripe__stripe_api_write for the plugin) also blocks changes. |
|---|---|
| Talks to | mcp.stripe.com |
| Sign-in and keys | OAuth: Claude Code stores the session after /mcp; revoke it under OAuth sessions in Stripe user settings. API key: read from an environment variable referenced in .mcp.json. |
Works in
Stripe documents three ways to connect Claude Code. Two open reports describe Stripe sign-in that never finishes.
Tap an app to see how to set it up and any known problems.
Claude Code
Has issuesStripe's docs cover it: add the hosted server with claude mcp add or install the Stripe plugin, then sign in from /mcp.
Known problems
- Open
After Stripe sign-in succeeds, Claude Code keeps spinning and never connects
Since Oct 2026 · GitHub
- Open
Stripe sign-in never returns to the Claude desktop app's Code tab
Since Oct 2026 · GitHub
- Open
Plugin install fails with a git checkout error on Windows
Workaround: The reporter installed Stripe's skills with npx skills and added the server by hand.
Since Jun 2026 · GitHub
Questions
How do I add Stripe to Claude Code?
Run the claude mcp add command in the install box, start Claude Code and type /mcp to sign in to Stripe. Or install the Stripe plugin, which adds the same server plus Stripe's coding skills.
Should I use the Stripe plugin or claude mcp add?
Use the plugin if you build on Stripe, because it adds Stripe's coding guidance and keeps it updated. Use claude mcp add if you only want to look up and change account data.
Why does Stripe not show up in Claude Code?
Run /mcp and check the stripe entry. If it needs sign-in, sign in there. If you added it in another folder, the default scope ties it to that folder, so add it again here or use --scope user.
Sign-in finished in the browser but Claude Code keeps spinning. What now?
One user reports this in an open issue, with no fix yet. Try signing in again from /mcp; if it keeps failing, use the agent API key option in the install box instead of sign-in.
Why is my live account greyed out when I sign in?
Stripe does not say why on that screen. One possible cause is that an admin turned off MCP access for live mode, which Stripe lets admins set separately from sandboxes, so ask your Stripe admin to check MCP access in the Dashboard.
Can I connect more than one Stripe account?
Yes. Stripe's sign-in page lets you grant several live accounts or sandboxes at once, each with its own permissions.
Will my sk_ secret key still work in Claude Code?
No, not after November 30, 2026. Stripe then rejects full secret keys and untagged restricted keys, so sign in with your Stripe account or create an agent API key.
How do I stop Claude Code from making changes in Stripe?
Pick read-only permissions on Stripe's sign-in page. You can also add a Claude Code deny rule for the write tool, mcp__stripe__stripe_api_write, or mcp__plugin_stripe_stripe__stripe_api_write if you use the plugin.
Why didn't my refund go through?
Refunds wait for your approval in the Stripe Dashboard. Open the link Claude Code gives you, approve it, then tell Claude Code to try again; unapproved requests expire after 24 hours.
Can Claude Code work on my Connect connected accounts?
Only with an agent API key. Stripe's sign-in does not cover connected accounts, so use a platform agent key and add the connected account's ID as a header.
Information
updated Nov 1, 2026
Stripe for AI agentsStripe MCP docsGitHubnpmOfficial MCP RegistryStripe agent plugin setupIssuesStripe privacy policyStripe support
Stripe MCPOfficialHosted or LocalOAuthStripe's official MCP server. Hosted at mcp.stripe.com with OAuth or an agent API key, plus a local npx proxy (@stripe/mcp). Reads and writes Stripe API data and searches Stripe docs.
22.3K/wk downloads a week
Claude CodeHow Claude Code runs MCP servers and which ones work in it.
Sources
Docs, issue trackers and discussions this page is built from.
Show all 12Hide
- docs.stripe.com · docs.stripe.com
- docs.stripe.com · docs.stripe.com
- github.com · github.com
- github.com · github.com
- github.com · github.com
- Plugin security: official marketplace names · code.claude.com
- github.com · github.com
- github.com · github.com
- github.com · github.com
- code.claude.com · code.claude.com
- code.claude.com · code.claude.com
- github.com · github.com