---
title: How to connect Stripe MCP to Cursor
description: Add https://mcp.stripe.com to .cursor/mcp.json and sign in to Stripe. The tools, refund approvals, team sharing, agent keys and fixes.
canonical: https://mcp1.com/blog/stripe-mcp-cursor
last-updated: 2026-12-03
---

# How to connect Stripe MCP to Cursor

Add https://mcp.stripe.com to .cursor/mcp.json and sign in to Stripe. The tools, refund approvals, team sharing, agent keys and fixes.

![](https://avatars.githubusercontent.com/u/1297371?s=96&v=4)Eldad FuxFounder and CEO, Appwrite

 .cursor/mcp.json

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

stripeSandboxConnected

 .cursor/mcp.json

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

stripeSandboxConnected

To connect Stripe to Cursor, add `https://mcp.stripe.com` to `.cursor/mcp.json`, enable the server under Customize and sign in to Stripe in the browser. On Stripe’s consent page you choose which sandboxes and live accounts Cursor can reach. Cursor’s agent can then read customers, payments and subscriptions, call the Stripe API and search Stripe’s docs while it writes your integration.

## How do I add the Stripe MCP server to Cursor?

Stripe hosts the server and uses OAuth, so there is nothing to install and no key in the file.

1. 1Create `.cursor/mcp.json` in the repository, or `~/.cursor/mcp.json` for every project:  
.cursor/mcp.json  
```  
{  
  "mcpServers": {  
    "stripe": {  
      "url": "https://mcp.stripe.com"  
    }  
  }  
}  
```
2. 2Open Customize in Cursor’s sidebar and enable stripe. Cursor shows Needs login; click it.
3. 3Sign in to Stripe in the browser and grant access. Start with a sandbox only, and add a live account later if you need one.

The Install in Cursor button in Stripe’s docs does the same at global scope. Its config is base64 for `{"url":"https://mcp.stripe.com"}`:

Install link

```
cursor://anysphere.cursor-deeplink/mcp/install?name=stripe&config=eyJ1cmwiOiJodHRwczovL21jcC5zdHJpcGUuY29tIn0%3D
```

Try a question you would otherwise answer by clicking through the Dashboard:

Prompt

```
Which subscriptions moved to past_due this week?
For each one, show the customer, the amount and why the last invoice payment failed.
```

Stripe also has a CLI route: `stripe agent setup` detects the agents on your machine, configures the MCP server for each and installs Stripe’s agent skills. Use the manual config when you want the file in the repository.

## Which Stripe tools does Cursor get?

A few generic API tools instead of one tool per endpoint. The agent looks up the method it needs, then calls it through `stripe_api_read` or `stripe_api_write`. That keeps the list short, which matters in Cursor because every enabled tool’s definition goes out with each request.

ToolWhat it does

`stripe_api_search`

Finds API methods by keyword. Read.

`stripe_api_details`

The parameters of one method. Read.

`stripe_api_read`

Calls a supported GET method: customers, charges, invoices, subscriptions, disputes and more. Read.

`stripe_api_write`

Calls a supported create, update or delete method, from a customer to a refund. Write.

`get_stripe_account_info`

The connected account’s details. Read.

`search_stripe_documentation`

Searches Stripe’s docs and support articles. Read.

`stripe_implementation_planner`

Plans which Stripe products and APIs an integration should use. Read.

`stripe_analytics`

Finds metrics and reports from a question. Read, in public preview.

Accounts in the Treasury preview also get money-movement tools such as `send_money` and `transfer_money`. If you only want help writing code, switch off everything but the docs and planner tools by clicking them in the server’s tool list.

## Can Cursor refund a payment through Stripe MCP?

Not without you. Refunds and other actions Stripe marks for human confirmation stop at an approval link. Open it, review the request in the Dashboard and click Approve, then tell the agent to retry. A request left unapproved expires after 24 hours. This check is Stripe’s and depends on the action, not the tool: `stripe_api_write` creates a customer without it and a refund with it.

## How do I control which Stripe tools run without asking?

Cursor asks before each MCP call by default and shows the arguments, and Stripe recommends keeping that on. On Cursor’s team plans, admins can set an MCP allowlist under Team Settings, MCP Configuration, with a tool allowlist per server that decides which tools run without asking. Put `stripe_api_search`, `stripe_api_details`, `stripe_api_read` and `search_stripe_documentation` there and leave `stripe_api_write` on manual approval. An empty tool list allows every tool, so name them.

Approval in Cursor is not a permission

Clicking Run approves one call. The limit that holds is the grant on Stripe’s side, so give Cursor a sandbox unless the task needs live data. More in [how to make an MCP server read-only](https://mcp1.com/blog/read-only-mcp-server).

## How do I share Stripe MCP with my team in Cursor?

Commit `.cursor/mcp.json`. It holds only the URL, and each teammate signs in with their own Stripe login, so their agent gets what their Stripe role allows and their session can be revoked without touching anyone else’s. A Stripe admin can turn MCP access on or off for the whole team under Settings, MCP and CLI access, separately for live mode and sandboxes.

## Can I use a Stripe API key instead of OAuth?

Yes, an agent key: a restricted key you tag for agent access when you create it under API keys in the Dashboard. It acts as itself, not as a person, so use it for scripts and the Cursor CLI in CI rather than for people. Agent keys fall under Stripe’s approval rules, which by default cover payouts, refunds and account changes. Cursor fills `${env:NAME}` from your environment, so the key stays out of the file:

.cursor/mcp.json

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

From January 11, 2027, Stripe’s MCP server refuses full-access secret keys and restricted keys without the agent tag, with a 401\. Replace any `sk_` or untagged `rk_` key before then.

## What if Stripe MCP stops working in Cursor?

Open the Output panel (`Cmd+Shift+U` on macOS), choose MCP Logs and match the error:

- It worked for two weeks, then failed. Stripe’s OAuth sessions last 14 days from the first authorization, and refreshing doesn’t extend them. Click Needs login and sign in again.
- A 401 while using a key. The key isn’t an agent key. Create one, or remove the header and use OAuth.
- Sandbox calls work but live ones don’t. An admin has turned MCP access off for live mode, or you didn’t grant that account at sign-in.
- The server doesn’t appear. Check that mcp.json is valid JSON and the server is enabled in Customize, then restart Cursor.

To cut off Cursor, open your user settings in the Stripe Dashboard and revoke it under OAuth sessions. Admins can revoke anyone’s sessions under Team and security.

## Stripe for the whole team, in every client

Everything above is per person and per client, and Stripe’s logs show the Stripe user, not which agent made the call. MCP1 is a gateway that does the setup once: an admin installs [Stripe](https://mcp1.com/servers/stripe) in the workspace, puts it on a gateway next to the team’s other servers and grants it to groups with full or read-only access. In Cursor, people install the gateway from the Connect page in the dashboard, or add its URL:

.cursor/mcp.json

```
{
  "mcpServers": {
    "mcp1": {
      "url": "https://mcp1.com/mcp/<workspace>/<gateway>"
    }
  }
}
```

Stripe’s tools appear as `stripe__<tool>`, a rule can hold `stripe__stripe_api_write` to a minimum role or make it ask first, and every call lands in the audit log with the person, client and arguments. For Claude Code, see [how to connect Stripe MCP to Claude Code](https://mcp1.com/blog/stripe-mcp-claude-code). The [docs](https://mcp1.com/docs) cover gateways and rules, and you can [start free](https://mcp1.com/signup).

## Common questions

### Do I need a Stripe API key to use Stripe MCP in Cursor?

No. Stripe’s hosted server signs you in with OAuth, and you choose which sandboxes and live accounts to grant. Use an agent key only for unattended scripts.

### Can Cursor use Stripe MCP in test mode only?

Yes. Grant only a sandbox on Stripe’s consent page, and an admin can turn MCP access off for live mode under Settings, MCP and CLI access.

### How long does a Stripe MCP sign-in last?

14 days from the first authorization. Refreshing doesn’t extend it, so sign in again from Cursor when the server shows Needs login.

### Does Stripe MCP work with the Cursor CLI?

Yes. The CLI reads the same mcp.json. For CI, use an agent key in an Authorization header from an environment variable.

Give your team one URL

Create a workspace, install your servers and share a gateway with a group. Free for individuals.

[Start with MCP1](https://mcp1.com/signup)[Read the docs](https://mcp1.com/docs)

## More from the blog

[ \~/.codex/config.toml[mcp_servers.notion] url = "https://mcp.notion.com/mcp"codex mcp login notionSigned inHow to connect Notion MCP to CodexRun codex mcp add notion --url https://mcp.notion.com/mcp, then codex mcp login notion. Approvals, a token for CI, team config and fixes.![](https://avatars.githubusercontent.com/u/1297371?s=96&v=4)Eldad FuxFounder and CEO, Appwrite](https://mcp1.com/blog/notion-mcp-codex)[ Where PHI goes in one tool callMCP serverBAA, endpoint in scopeModel providerBAA, product namedGatewayBAA, audit logLogsEncrypted, retention setMCP and HIPAA: what to check before agents touch PHIEvery party that handles PHI in an MCP tool call needs a BAA, and model providers’ BAAs don’t cover MCP servers. What to check, limit and log.![](https://avatars.githubusercontent.com/u/1297371?s=96&v=4)Eldad FuxFounder and CEO, Appwrite](https://mcp1.com/blog/mcp-hipaa)

---

This is the markdown copy of https://mcp1.com/blog/stripe-mcp-cursor. Site index for agents: https://mcp1.com/llms.txt
