Skip to main content
MCP server CX Codex

mcp-stripe — Claude Code MCP server: what it does, how to install

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

Install into Claude Code · Platform CLI All methods and platforms ↓
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
Open on GitHub

What mcp-stripe 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.

What it helps with

  • 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 for the agent

  • 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

How to install mcp-stripe

Platform CLI

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

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about mcp-stripe

How to install mcp-stripe in Claude Code?

Run claude mcp add mcp-stripe -e STRIPE_SECRET_KEY=<STRIPE_SECRET_KEY> -- npx -y @codespar/mcp-stripe in your terminal, providing your test or live secret key.

What is the difference between mcp-stripe and mcp-stripe-acp?

The mcp-stripe package interacts with regular Stripe APIs for payments, subscriptions, and invoices. The mcp-stripe-acp package targets the newer Agentic Commerce Protocol specification.

How do you enable test mode in mcp-stripe?

Set STRIPE_SECRET_KEY to a secret key that starts with sk_test_.... Stripe routes all requests with this key into its test sandbox where no actual money moves.

Similar MCP servers

Everything for Finance and business →

From the same set124

mcp-tiny Wires Tiny ERP into your coding agent: 21 tools for products, stock, warehouses, orders, NF-e invoices and receivables. Useful when ERP data should be reachable from chat. CX Codex +1 ★ 274repo stars mcp-tienda-nube MCP server connecting AI assistants to Tienda Nube e-commerce stores. It handles catalog changes, order statuses, and webhooks through simple conversational prompts. CX Codex +1 ★ 274repo stars mcp-take-blip Connects an agent to Take Blip for chatbot, messaging, contact, and broadcast operations. Use it when these actions need to run from an MCP client. CX Codex +1 ★ 274repo stars mcp-stripe-acp Wires Stripe into your agent: ACP checkout, payment links, invoices, subscriptions and the product catalog. Useful when the agent has to build a cart or finish a purchase. CX Codex +1 ★ 274repo stars mcp-stp-spei An MCP server for Mexican STP/SPEI payments, with transfer, balance, refund, and webhook tools. It connects an agent to the STP API. CX Codex +1 ★ 274repo stars mcp-stone An MCP server that puts Stone Open Bank inside your coding agent: payments, Pix, transfers, receivables. Useful when the assistant has to move money, not just draft code for it. CX Codex +1 ★ 274repo stars mcp-stark-bank Connects coding assistants to Stark Bank to handle Pix transfers, boletos, invoices, and balance checks. CX Codex +1 ★ 274repo stars mcp-skydropx Connects an AI coding agent to Skydropx for shipments, rates, labels, addresses, and tracking. It fits delivery automation for Mexico. CX Codex +1 ★ 274repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor