---
title: "Stripe MCP Server Setup Guide and Schema"
slug: "stripe"
category: "finance"
package: "@stripe/mcp-server-stripe"
transport: "stdio"
canonical: "https://mcp-codex.com/servers/stripe"
source: "MCP Codex (https://mcp-codex.com)"
dateModified: "2026-09-28"
---

# Stripe MCP Server

> Manage payments, customers, subscriptions, and invoices via Stripe API.

## Overview
Connect AI agents to Stripe for payment management. Create and manage customers, process payments, handle subscriptions, generate invoices, and query transaction history through the Stripe API.

## Quick Install
```bash
npx -y @stripe/mcp-server-stripe
```

## Environment Variables

| Variable | Description | Required |
| :--- | :--- | :--- |
| `STRIPE_SECRET_KEY` | Stripe secret API key | **Yes** |

## Client Configurations

### Claude Desktop (`claude_desktop_config.json`)
```json
{
  "mcpServers": {
    "stripe": {
      "command": "npx",
      "args": [
        "-y",
        "@stripe/mcp-server-stripe"
      ],
      "env": {
        "STRIPE_SECRET_KEY": "sk_test_xxxxxxxxxxxx"
      }
    }
  }
}
```

### Cursor (`mcp.json`)
```json
{
  "mcpServers": {
    "stripe": {
      "command": "npx",
      "args": [
        "-y",
        "@stripe/mcp-server-stripe"
      ],
      "env": {
        "STRIPE_SECRET_KEY": "sk_test_xxxxxxxxxxxx"
      }
    }
  }
}
```

### OpenAI Codex CLI (`~/.codex/config.toml`)
```toml
[mcp_servers.stripe]
command = "npx"
args = ["-y", "@stripe/mcp-server-stripe"]

[mcp_servers.stripe.env]
STRIPE_SECRET_KEY = "sk_test_xxxxxxxxxxxx"
```

## Available Tools (4)

- `create_customer`
- `create_payment_intent`
- `list_charges`
- `create_invoice`

## Documentation & Links
- Canonical Web Page: https://mcp-codex.com/servers/stripe
- Weekly Protocol Changelog: https://mcp-codex.com#newsletter
- GitHub Repository: https://github.com/stripe/agent-toolkit
- Setup Tutorial Guide: https://mcp-codex.com/articles/stripe-mpp-mcp-server-guide

