# mcp-stripe

Connects Stripe's core payments API to your coding agent. Lets you handle PaymentIntents, invoices, subscriptions, and refunds directly from the assistant.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 274
- Author: codespar
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/codespar/mcp-dev-latam/tree/HEAD/packages/payments/stripe
- Updated: 2026-09-27
- HTML: https://affpapa.org/en/nevibecode/mcp/mcp-stripe

## What it does

The server exposes 30 tools for interacting with Stripe payments. Your assistant can create and confirm `PaymentIntent` records, issue refunds, inspect account balances, and configure hosted `Checkout Session` or shareable `Payment Link` URLs. It also supports catalog management through `Product`, `Price`, and customer `Subscription` items.

Authentication relies on a single `STRIPE_SECRET_KEY` environment variable. The key prefix handles routing on Stripe's side: keys starting with `sk_test_` hit the test sandbox, while `sk_live_` keys trigger live charges. An optional `STRIPE_API_VERSION` variable pins the `Stripe-Version` request header to a specific calendar release. Without a valid API key, all endpoint calls fail immediately.

This package covers standard billing workflows. It differs from `@codespar/mcp-stripe-acp`, which focuses strictly on the experimental Agentic Commerce Protocol.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `STRIPE_SECRET_KEY`, `STRIPE_API_VERSION` — keys and tokens: ask the human for the values, never commit them or put them in shared files.
- Works with: Stripe

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add --env STRIPE_SECRET_KEY=<STRIPE_SECRET_KEY> --env STRIPE_API_VERSION=<STRIPE_API_VERSION> --transport stdio stripe -- npx -y @codespar/mcp-stripe
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add stripe --env STRIPE_SECRET_KEY=<STRIPE_SECRET_KEY> --env STRIPE_API_VERSION=<STRIPE_API_VERSION> -- npx -y @codespar/mcp-stripe
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "stripe": {
            "command": "npx",
            "args": [
                "-y",
                "@codespar/mcp-stripe"
            ],
            "env": {
                "STRIPE_SECRET_KEY": "<STRIPE_SECRET_KEY>",
                "STRIPE_API_VERSION": "<STRIPE_API_VERSION>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "stripe": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@codespar/mcp-stripe"
            ],
            "env": {
                "STRIPE_SECRET_KEY": "<STRIPE_SECRET_KEY>",
                "STRIPE_API_VERSION": "<STRIPE_API_VERSION>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e STRIPE_SECRET_KEY=<STRIPE_SECRET_KEY> -e STRIPE_API_VERSION=<STRIPE_API_VERSION> stripe npx -y @codespar/mcp-stripe
```
Replace <…> with your own values

## When to use it
- issue refunds for specific charges or PaymentIntents
- generate shareable payment links and hosted checkout sessions
- set up recurring subscriptions for existing customers
- draft, finalize, and email invoices directly to clients
- inspect current Stripe balance across available and pending funds

## Example prompts
- Create a test payment link for product `prod_123` with a 20 dollar price
- Look up PaymentIntent `pi_test_456` and issue a full refund
- Draft and finalize an invoice for customer `cus_789`

## Similar
- [World Monitor](https://affpapa.org/en/nevibecode/mcp/world-monitor.md) — MCP server · ★ 89408
- [CCXT](https://affpapa.org/en/nevibecode/mcp/ccxt.md) — MCP server · ★ 44583
- [Finance Toolkit](https://affpapa.org/en/nevibecode/mcp/finance-toolkit.md) — MCP server · ★ 5458
- [EdgarTools](https://affpapa.org/en/nevibecode/mcp/edgartools.md) — MCP server · ★ 2814
- [LetsFG — Flights & Hotels](https://affpapa.org/en/nevibecode/mcp/letsfg-flights-hotels.md) — MCP server · ★ 2188
- [AutoTS](https://affpapa.org/en/nevibecode/mcp/autots.md) — MCP server · ★ 1434

From the same set: [codespar/mcp-dev-latam](https://affpapa.org/en/nevibecode/by/codespar/mcp-dev-latam.md) — 124 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
