Stripe MCP Server: Setup, Agent Keys & the January 2027 Key Change
Nikhil Tiwari
MCP Playground
TL;DR
- Official endpoint:
https://mcp.stripe.com. Claude Code:claude mcp add --transport http stripe https://mcp.stripe.com/. - Deadline: from 11 January 2027, Stripe MCP stops accepting full-access secret keys and non-agent restricted keys. They get a 401.
- Use instead: OAuth for people in interactive clients, agent API keys for autonomous agents.
- It can move money. Treasury tools include
send_moneyandtransfer_money. Some actions need human confirmation in the Dashboard. - Fastest setup:
stripe agent setupwith Stripe CLI 1.43.3 or later.
Stripe’s official MCP server has grown well beyond “look up a customer”. It now reads and writes across the Stripe API, plans integrations, and, through Treasury tools, can send and transfer money.
There is also a deadline most guides haven’t caught up with. From 11 January 2027, the server stops accepting the secret keys and plain restricted keys that most tutorials tell you to paste.
If you connected an agent to Stripe MCP with sk_live_ or an ordinary rk_ key, it will start failing with a 401. This guide covers what to switch to, the full setup, the current tool list, and the safety settings that matter when a model can touch payments.
What the Stripe MCP Server Does
The hosted server at https://mcp.stripe.com gives an MCP client access to your Stripe account and Stripe’s documentation. You can ask about customers, subscriptions and invoices, make API changes, search the docs and plan an integration from one chat.
For a quick overview and example prompts, see the Stripe MCP server page. This guide goes deeper on auth, tools and safety.
The January 2027 Stripe MCP Key Change
Stripe’s MCP docs put it plainly: starting 11 January 2027, Stripe MCP will no longer accept full-access secret keys or non-agent restricted API keys. Requests with an unsupported key get a 401.
| Key type | After 11 January 2027 |
|---|---|
Full-access secret key (sk_live_, sk_test_) | Rejected |
| Restricted key that isn’t an agent key | Rejected |
| Agent API key | Accepted |
| OAuth (interactive clients) | Accepted |
Find every place a Stripe key is configured for MCP: client configs, CI secrets, agent frameworks, internal tools. Replace each one with an agent key or move it to OAuth before the date, not after the first 401.
Why this is a good change
Stripe MCP Authentication: OAuth vs Agent API Keys
- OAuth is for interactive clients, such as Claude Code or Codex, where a person logs in. OAuth refresh tokens expire after 14 days. Revoke sessions under OAuth sessions in your user settings.
- Agent API keys are for autonomous agents and scripts. Send the key as
Authorization: Bearer.
One rule of thumb: if a human is at the keyboard, use OAuth. If the agent runs unattended, use an agent key with only the permissions it needs, one key per agent.
Set Up the Stripe MCP Server
Stripe CLI (Stripe’s preferred route)
Claude Code
Claude Code with an agent key
Cursor and other JSON-config clients
Keep the key in an environment variable, not in the file. My Cursor MCP setup guide covers how variables work in mcp.json.
Stripe MCP Tools
| Group | Tools |
|---|---|
| Stripe API | stripe_api_search, stripe_api_details, stripe_api_read, stripe_api_write |
| Account | get_stripe_account_info |
| Docs and planning | search_stripe_documentation, stripe_implementation_planner |
| Analytics | stripe_analytics (preview) |
| Atlas | atlas_company_formation |
| Treasury | get_balance_summary, convert_currency, send_money, setup_recipient, transfer_money |
| Other | stripe_directory_search (private preview), send_stripe_feedback |
The four API tools are the core. Instead of one tool per endpoint, the model searches for the right API method, reads its details, then calls it with stripe_api_read or stripe_api_write. That keeps the tool list short, but it means one write tool covers a lot of ground.
Some API methods are only available in Stripe’s Frontier, public preview or private preview programmes, so a tool may report a method your account can’t use yet.
Stripe MCP Safety: It Can Move Money
Treat this server like a payments dashboard with a chat box on it. Stripe’s own guidance, plus a few rules of mine:
- Turn on tool approval in your client, especially for
stripe_api_write, refunds and Treasury tools. - Expect Dashboard confirmation for some actions, such as refunds,
send_moneyandtransfer_money. Approval links expire after 24 hours. - Be careful when Stripe shares a client with other MCP servers. A tool result from another server can carry instructions aimed at the Stripe tools.
- Start in test mode, and give agent keys the narrowest permissions that still do the job.
- Admins can turn off MCP access for the whole team if you need a kill switch.
Prompt injection across servers is the risk people underestimate. MCP tool poisoning and the OWASP MCP Top 10 explains how one server’s output can steer calls to another.
Test the Stripe MCP Server
- Create an agent API key on a test-mode account.
- Open the MCP server tester, paste
https://mcp.stripe.comand putBearer your-agent-keyin the auth header field. - Check the tool list, then call
get_stripe_account_infoand a read throughstripe_api_read. - Confirm that an old secret key gets a 401, so you know your migration actually moved.
To compare how models handle multi-step billing questions, run the same prompt in MCP Agent Studio on two or three models. The search, read details, then call pattern is where weaker models slip.
Check your Stripe MCP connection
Paste the URL and a test-mode agent key, list the tools and call them. Free, in the browser.
Bottom line
Connect to https://mcp.stripe.com with OAuth or an agent key, and replace every secret or plain restricted key before 11 January 2027. Keep approvals on, because this server can move money.
FAQ: Stripe MCP Server
Sources
Written by Nikhil Tiwari
15+ years in product development. AI enthusiast building developer tools that make complex technologies accessible to everyone.
Free MCP Tools (no install)
Build, compare & ship MCP agents
Connect any MCP server, run evals on it, compare 90+ models side-by-side, deploy hosted servers, and save reusable agents you can export as an API — all in your browser.