Skip to main content
S

Stripe

@codespar/mcp-stripe Β· v0.2.2

🌐 GlobalPaymentsAuth · API Keybeta30 tools2 env vars

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.

Get started Β· freeView docs

MIT Β· runs locally or through the CodeSpar runtime

Package
@codespar/mcp-stripe
Version
0.2.2
npm dist-tag
latest
Category
Payments
Auth
API Key
Country
🌐 Global
License
MIT
Transport
stdio Β· streamable-http

Quickstart

Install, set the credentials, make the first call.

Pick your client. The server runs locally over stdio, or through the hosted runtime.

Add the server to your clientOne config entry. No build step, no SDK required.
Set the environment variables2 variables read by this server's code, listed below.
Restart and make the first callThe agent can call any of the 30 tools. Try create_payment_intent first.
terminal
# Claude Code claude mcp add stripe -e STRIPE_API_VERSION=… -e STRIPE_SECRET_KEY=… -- npx -y @codespar/mcp-stripe@0.2.2 # then: /mcp to confirm the server is connected
Environment variables2 variables
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.optional
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.requiredsecret

Names read from the package code (@codespar/mcp-stripe@0.2.2). Descriptions and flags come from its manifest. Self-hosted, you hold the credentials. On the CodeSpar runtime the credential you connect is stored encrypted (AES-256-GCM, key derived per organization), and the runtime adds it to the provider call itself; the agent never receives it.

First call democreate_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"

tools/callcreate_payment_intentresult returned

Tools

What your agent can call.

30 tools, as the package's tools/list returns them.

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.

cancel_payment_intent

Cancel a PaymentIntent. Works only when status is requires_payment_method, requires_capture, requires_confirmation, requires_action, or processing.

list_payment_intents

List PaymentIntents. Filter by customer or created window.

create_refund

Refund a charge or a PaymentIntent. Omit amount for a full refund; set amount for partial.

list_refunds

List Refunds. Filter by charge or payment_intent.

create_customer

Create a Stripe Customer. All fields optional; Stripe will still assign a cus_... id.

retrieve_customer

Retrieve a Customer by id.

update_customer

Update a Customer. Accepts any customer field.

create_product

Create a Product β€” the catalog entity Prices reference. For a digital/physical good or SaaS plan, create one Product then one or more Prices.

list_products

List Products. Filter by active flag or ids.

Names and descriptions come from the package's tools/list (@codespar/mcp-stripe@0.2.2). A kind (read, write, delete) is shown only when the package annotates its tools or each tool was verified one by one; neither exists for this server yet.

Compatibility

MCP is a protocol. Any client that speaks it can mount this server.

Through the CodeSpar runtime, codespar_discover finds this server's tools, and a tools/call runs with the credential connected in your project, a test key included.

hostedhttps://connect.codespar.dev/mcp15 meta-tools

Protocol

Any MCP client

stdio Β· streamable-http

Questions

Before you install.

How do I install the Stripe MCP server?

Run npx -y @codespar/mcp-stripe@0.2.2 and add the config block above to your MCP client: Claude Code, Cursor, Claude Desktop, VS Code, or any MCP-compatible client. No build step, no SDK required. Prefer hosted? Add the CodeSpar endpoint with a test key and connect Stripe in your project; codespar_discover finds its tools.

What can my agent do with Stripe?

Stripe exposes 30 tools for payments. Your agent calls them directly; the full list is above.

How does Stripe authenticate, and how are credentials stored?

Stripe uses API Key. Self-hosted, you hold the credentials: the server reads them from its environment variables. On the CodeSpar runtime the credential you connect is stored encrypted for your organization, and the runtime adds it to each provider call, so the agent never handles it.

How does Stripe handle upstream API changes?

Every server is versioned independently on npm. The command on this page pins 0.2.2, the version whose tools are listed here; your agent keeps running it until you change the version.

Is Stripe open source? How do I report a bug?

Yes. Stripe is MIT-licensed and published on npm as @codespar/mcp-stripe, source on GitHub (link in the Details panel). Report issues on the package repository; security issues go to security@codespar.dev, and we respond within 24 hours.

Start in seconds.

On the CodeSpar runtime, the credential you connect stays encrypted for your organization and the runtime adds it to each call. You just call the tool.

Start in seconds demo
Create an account and copy a test key.
Add the hosted endpoint to your client with the config above.
Connect Stripe in your project and ask your agent for the first call.
Stripe β€” MCP server Β· 30 tools | CodeSpar