Back to Blog
Server GuidesDec 3, 20266 min read

Stripe MCP Server: Setup, Agent Keys & the January 2027 Key Change

NT

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_money and transfer_money. Some actions need human confirmation in the Dashboard.
  • Fastest setup: stripe agent setup with 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 typeAfter 11 January 2027
Full-access secret key (sk_live_, sk_test_)Rejected
Restricted key that isn’t an agent keyRejected
Agent API keyAccepted
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

A full secret key gives an agent everything your account can do. Agent keys exist so you can give a model a narrower, separately revocable credential. Even before the deadline, a live secret key has no place in an MCP client config.

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)

Terminal
# Stripe CLI 1.43.3 or later
stripe agent setup

Claude Code

Terminal
claude mcp add --transport http stripe https://mcp.stripe.com/
# then, inside Claude Code:
/mcp

Claude Code with an agent key

Terminal
claude mcp add --transport http stripe https://mcp.stripe.com/ \
  --header "Authorization: Bearer ${AGENT_API_KEY}"

Cursor and other JSON-config clients

mcp.json
{
  "mcpServers": {
    "stripe": {
      "url": "https://mcp.stripe.com",
      "headers": { "Authorization": "Bearer ${env:STRIPE_AGENT_KEY}" }
    }
  }
}

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

GroupTools
Stripe APIstripe_api_search, stripe_api_details, stripe_api_read, stripe_api_write
Accountget_stripe_account_info
Docs and planningsearch_stripe_documentation, stripe_implementation_planner
Analyticsstripe_analytics (preview)
Atlasatlas_company_formation
Treasuryget_balance_summary, convert_currency, send_money, setup_recipient, transfer_money
Otherstripe_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_money and transfer_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

  1. Create an agent API key on a test-mode account.
  2. Open the MCP server tester, paste https://mcp.stripe.com and put Bearer your-agent-key in the auth header field.
  3. Check the tool list, then call get_stripe_account_info and a read through stripe_api_read.
  4. 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

What is the Stripe MCP server URL?+
Stripe hosts its official MCP server at https://mcp.stripe.com. In Claude Code, add it with claude mcp add --transport http stripe https://mcp.stripe.com/ and run /mcp to log in.
What changes for Stripe MCP keys in January 2027?+
Stripe’s docs say that starting 11 January 2027, Stripe MCP will no longer accept full-access secret keys or restricted API keys that are not agent keys. Requests with those keys get a 401. Switch to OAuth or an agent API key before then.
How do I authenticate the Stripe MCP server?+
Interactive clients such as Claude Code use OAuth, and the refresh token lasts 14 days. Autonomous agents send an agent API key as Authorization: Bearer . Stripe also offers stripe agent setup in the Stripe CLI, version 1.43.3 or later, as its preferred install route.
What tools does the Stripe MCP server have?+
API tools (stripe_api_search, stripe_api_details, stripe_api_read, stripe_api_write), get_stripe_account_info, search_stripe_documentation, stripe_implementation_planner, a preview analytics tool, Atlas company formation, and Treasury tools including get_balance_summary, send_money and transfer_money.
Can an AI agent move money through Stripe MCP?+
The server has write tools, including refunds, send_money and transfer_money. Stripe requires human confirmation in the Dashboard for some of these actions, and approval links expire after 24 hours. Turn on tool approval in your client as well, and use an agent key with the narrowest permissions.
Can I turn off Stripe MCP for my team?+
Yes. Stripe’s docs say admins can disable MCP access for the team. You can also revoke individual OAuth sessions under OAuth sessions in your user settings.

Sources

NT

Written by Nikhil Tiwari

15+ years in product development. AI enthusiast building developer tools that make complex technologies accessible to everyone.

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.

Try for Free →