MCP Server Hub

Guide

Stripe MCP Server: Official Setup, Tools, and How to Connect

Updated December 2, 2026

Connect the official Stripe MCP server at mcp.stripe.com. OAuth, agent API keys, Claude, Cursor, and ChatGPT setup, plus the tools and limits to check first.

What the official Stripe MCP server does

Stripe’s hosted MCP server lets a compatible assistant call the Stripe API and search Stripe’s documentation and support articles. It is the official server, not a community wrapper around a secret key. The directory listing is Stripe on MCP Server Hub. The source Stripe publishes for the server lives in the agent toolkit repository. Behavior, tools, and auth rules are defined in Stripe’s MCP docs. If this walkthrough and those docs disagree, follow Stripe.

People looking for a “stripe mcp server” usually want that hosted endpoint and a client config, not a thin catalog card. The general pattern for any server is in how to install an MCP server. The rest of this page is Stripe-specific.

Endpoint and authentication

The hosted URL is https://mcp.stripe.com. Stripe documents two ways to authenticate.

  • OAuth for a person using Cursor, Claude, ChatGPT, or Claude Code. The client opens Stripe’s consent screen. You choose live mode, a sandbox, or both, and you can set different permissions per environment. You can revoke that client later under OAuth sessions in your Stripe settings. Refresh tokens expire 14 days after the original authorization. Refreshing a token does not extend that 14-day window. When it ends, connect the client again.
  • An agent API key for an autonomous client that cannot complete OAuth. Create a key marked as an agent key, with only the permissions that client needs, and pass it as a bearer token from an environment variable. Do not paste the key into the chat. Stripe says that starting January 11, 2027, MCP requests that still use a full-access secret key or a non-agent restricted key receive a 401. Move those clients to an agent key or to OAuth before then.

Stripe’s recommended path, when the client supports it, is their agent plugin: install the Stripe CLI using the method in their docs, then run stripe agent setup. That command detects the agents you have and configures the server. Use the manual steps below when you want to see the config yourself or the plugin does not support your client.

An administrator can turn MCP access off for a whole team, separately for live mode and sandboxes. If a coworker can connect and you cannot, check Team and security before debugging the JSON. Managed networks may also block mcp.stripe.com.

Connect Stripe in Cursor

Add this to ~/.cursor/mcp.json, or to .cursor/mcp.json in one project. Stripe documents the same block. Enable the server in Cursor’s MCP settings and approve the OAuth window.

{
  "mcpServers": {
    "stripe": {
      "url": "https://mcp.stripe.com"
    }
  }
}

There is no API key in this file. If the browser never opens, confirm the URL is allowed on your network and that MCP access is enabled for the Stripe account you are signing into.

Connect Stripe in Claude and Claude Code

On Claude for the web and in Claude Desktop, install Stripe’s connector, sign in, and grant the account or sandbox you want. In a conversation, open the plus menu, choose Connectors, and enable Stripe. Team and Enterprise owners may need to add the connector to the workspace first.

Claude Code’s documented command is:

claude mcp add --transport http stripe https://mcp.stripe.com/

Then run /mcp inside Claude Code and finish OAuth. For an agent API key instead of OAuth, Stripe says to put the key in an environment variable and reference that variable from the project .mcp.json. Claude Code requires "type": "http" on a URL entry. The value below is a placeholder name, not a key.

{
  "mcpServers": {
    "stripe": {
      "type": "http",
      "url": "https://mcp.stripe.com",
      "headers": {
        "Authorization": "Bearer ${AGENT_API_KEY}"
      }
    }
  }
}

Connect Stripe in ChatGPT

Install Stripe’s official ChatGPT plugin and grant access in the OAuth window. Stripe also notes that the ChatGPT desktop app, the Codex CLI, and the Codex IDE extension share one MCP configuration. Adding the server once with codex mcp add stripe --url https://mcp.stripe.com makes it available to those clients after you authenticate. Sign in again when the 14-day OAuth session ends. Do not paste a secret key into a ChatGPT message.

Tools the server exposes

Stripe does not publish one MCP tool per API method. A small set of tools covers search, reads, and writes, so the model does not have to load the entire API reference into context. As documented on their MCP page, the useful groups are:

  • API tools. stripe_api_search finds methods, stripe_api_details reads parameters, stripe_api_read calls GET methods, and stripe_api_write calls POST, PATCH, PUT, and DELETE.
  • Account and docs. get_stripe_account_info, search_stripe_documentation, and stripe_implementation_planner for choosing a Stripe product before you integrate it.
  • Common objects those API tools can reach. Customers, PaymentIntents, charges, refunds, Checkout Sessions, invoices, subscriptions, products, prices, payment links, coupons, disputes, payouts, and balance transactions are on the documented method list. The full list is long and changes. Read it on Stripe’s docs before you rely on a specific method.
  • Preview tools. Analytics, Treasury money movement, and a few other surfaces are marked public or private preview. Treasury actions that send or convert money require human confirmation in the Dashboard.

A client shows the tool name, which can cover both safe reads and writes. Creating a refund goes through stripe_api_write, the same tool that updates a product. Stripe’s confirmation step depends on the action. Your client’s approval step is separate. Keep both. If you decline the Dashboard prompt, or ignore it for 24 hours, the action expires and the agent has to ask again.

By default the tools act on the account tied to the OAuth session or the API key. Connect platforms that need to act on a connected account cannot use OAuth for that. Stripe’s docs say to use an agent API key and send a Stripe-Account header. That is a platform setup, not the normal “connect my own Stripe account” flow.

Setup questions that waste an afternoon

  • The client connects, then every customer lookup is empty. OAuth was granted to a sandbox, or the other way around. The consent screen lets you pick the environment. Reconnect and choose the account that actually has the data.
  • It worked last week and now returns unauthorized. The OAuth session hit the 14-day limit. Revoke the stale session if it is still listed, then connect again. Rotating to a secret key you copied from the Dashboard is the wrong fix, and those keys stop working for MCP on January 11, 2027.
  • Writes fail immediately. The key or OAuth grant is read-only, an admin disabled MCP for live mode, or the action is waiting for human confirmation. Open the URL the agent printed instead of retrying the same write in a loop.
  • Claude Code says the server was not saved, or it never connects. A URL without "type": "http" is invalid in Claude Code’s JSON. Use the claude mcp add --transport http command or add the type field.

This walkthrough, the official docs, and the listing

Use docs.stripe.com/mcp for the current tool table, the API methods Stripe has enabled, and the plugin installer. Use this page to decide which client flow you are in and which mistakes are worth checking first. Use the Stripe listing for the endpoint, the source repository, and the short setup card. Other payment and store servers are in Commerce and finance.

Common questions

What is the Stripe MCP server URL?

The official hosted endpoint is https://mcp.stripe.com. Stripe’s Claude Code example sometimes shows a trailing slash. Use the URL from the current Stripe docs if those two forms ever diverge.

Should I use OAuth or an API key?

Use OAuth for interactive clients such as Cursor, Claude, and ChatGPT. Use an agent API key only for an autonomous client that cannot open a browser. Stripe says that from January 11, 2027 the MCP server will reject full-access secret keys and non-agent restricted keys.

Can the Stripe MCP server issue refunds or move money?

Yes, if the connected account and the tool grant allow it. Some actions, including creating a refund and several Treasury transfers, require a person to approve the request in the Stripe Dashboard. Turn on your client’s tool approval as well. Those are two separate checks.

Where are the official Stripe MCP docs?

Stripe maintains the source of truth at https://docs.stripe.com/mcp. This page is a walkthrough of that setup and a link back to the MCP Server Hub listing. Tool names and supported API methods change there first.