Stripe's global payments API — distinct from stripe-acp (which wraps Stripe's Agentic Commerce Protocol). What every LatAm SaaS accepting Stripe uses today. Payment Intents, refunds, customers, subscriptions, checkout, payment links, invoices, disputes.
Stripe gives your agent 30 tools it calls directly — pick the ones it needs, in Claude, Cursor, or any MCP client.
create_payment_intent — Create a PaymentIntent — Stripe's modern primitive for charging a customer. Use confirm=true to authorize + capture atomically, or omit for a two-step flow.confirm_payment_intent — Confirm a PaymentIntent created with confirm=false. Attaches and charges the payment method.retrieve_payment_intent — Retrieve a PaymentIntent by id.// Your agent calls a tool directly — no glue code.
// CodeSpar's managed tier handles OAuth2, token rotation and rate limits.
const result = await session.call("create_payment_intent", { /* ... */ });$ npm install @codespar/mcp-stripeAdd this entry to your claude_desktop_config.json (or any MCP-compatible client config).
{
"mcpServers": {
"stripe": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-stripe"
],
"env": {
"STRIPE_SECRET_KEY": "<your_stripe_secret_key>"
}
}
}
}After restart, your agent can call any of the 30 tools below — try create_payment_intent first.
Required to authenticate the server. Stored encrypted when using CodeSpar managed hosting.
STRIPE_SECRET_KEYStripe secret key (sk_test_... for test mode, sk_live_... for live mode). The key prefix selects the environment — no separate base URL.
STRIPE_API_VERSIONOptional Stripe API version to pin via the Stripe-Version header (e.g. '2024-06-20'). When omitted, Stripe uses the account's default version.
Each tool is independent — your agent loads only what it needs to reduce context and response time.
create_payment_intentconfirm_payment_intentretrieve_payment_intentcancel_payment_intentlist_payment_intentscreate_refundlist_refundscreate_customerMCP is a protocol — any framework that speaks it can mount this server.