mcpField
M
mcp-stripe-acp

mcp-stripe-acp

Local
github.com/codesparFinance275Updated 4w ago

About mcp-stripe-acp

@codespar/mcp-stripe-acp is an MCP server for Stripe's Agentic Commerce Protocol, which lets AI agents run checkout and payment delegation, alongside some standard Stripe operations. ACP tools require the seller's ACP endpoint to be configured.

Key features

  1. 0124 tools for ACP and Stripe operations
  2. 02ACP checkout session creation, update and completion
  3. 03Customer, product, invoice and subscription management
  4. 04Payment Links and Checkout Sessions
  5. 05ACP tools need the STRIPE_ACP_BASE endpoint set

Use cases

  1. 01Having an agent complete a purchase on a user's behalf
  2. 02Managing product catalog, prices and coupons
  3. 03Tracking invoices and subscription status

MCP support

This project is an MCP server that exposes ACP checkout flow tools and a subset of standard Stripe API tools to MCP clients.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"codespar-mcp-stripe-acp": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-stripe-acp"
],
"env": {
"STRIPE_API_KEY": "<STRIPE_API_KEY>"
}
}
}
}
Run commandnpx -y @codespar/mcp-stripe-acp
Environment variables to set
STRIPE_API_KEYSecretAPI key for stripe-acp

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@codespar/mcp-stripe-acp0.1.4

Tools

24

Saved tool list · updated 2w ago

ParameterTypeRequiredDescription
currencystringYesCurrency code (e.g. 'usd', 'brl')
line_itemsarrayYesItems to purchase
fulfillment_detailsobjectNoShipping/delivery details
fulfillment_details.namestringNoBuyer name
fulfillment_details.emailstringNoBuyer email
fulfillment_details.addressobjectNo
fulfillment_details.address.citystringYes
fulfillment_details.address.statestringNo
fulfillment_details.address.countrystringYes
fulfillment_details.address.line_onestringYes
fulfillment_details.address.line_twostringNo
fulfillment_details.address.postal_codestringYes

Details

From the project README

@codespar/mcp-stripe-acp

MCP server for Stripe ACP — Agentic Commerce Protocol for AI agent checkout, payment delegation, and product management

npm License: MIT

What is Stripe ACP?

The Agentic Commerce Protocol (ACP) is an open standard co-developed by Stripe and OpenAI. It enables AI agents to complete purchases on behalf of users — the agent handles the checkout UX, while the seller handles inventory, pricing, and payment processing.

This MCP server covers both ACP protocol operations (checkout sessions, payment delegation) and standard Stripe API operations (customers, products, invoices, subscriptions).

Quick Start

Claude Desktop

Add to ~/.config/claude/claude_desktop_config.json:

{
  "mcpServers": {
    "stripe-acp": {
      "command": "npx",
      "args": ["-y", "@codespar/mcp-stripe-acp"],
      "env": {
        "STRIPE_API_KEY": "sk_test_...",
        "STRIPE_ACP_BASE": "https://seller.example.com/acp"
      }
    }
  }
}
Claude Code
claude mcp add stripe-acp -- npx @codespar/mcp-stripe-acp
Cursor / VS Code

Add to .cursor/mcp.json or .vscode/mcp.json:

{
  "servers": {
    "stripe-acp": {
      "command": "npx",
      "args": ["-y", "@codespar/mcp-stripe-acp"],
      "env": {
        "STRIPE_API_KEY": "sk_test_...",
        "STRIPE_ACP_BASE": "https://seller.example.com/acp"
      }
    }
  }
}

Tools (24)

ToolPurpose
create_checkoutCreate an ACP checkout session with a seller.
get_checkoutRetrieve the current state of an ACP checkout session, including status, pricing, and available payment met...
update_checkoutUpdate an ACP checkout session — modify quantities, shipping address, or fulfillment selections
complete_checkoutComplete an ACP checkout by submitting a payment token.
cancel_checkoutCancel an ACP checkout session.
create_customerCreate a Stripe customer
list_customersList Stripe customers with optional filters
create_payment_linkCreate a shareable Stripe Payment Link for a price
list_payment_intentsList Stripe payment intents with optional filters
create_refundRefund a Stripe payment intent or charge
get_balanceGet Stripe account balance
list_productsList products in the Stripe catalog
create_productCreate a new product in Stripe
list_pricesList prices for Stripe products
create_invoiceCreate a draft invoice for a customer
list_subscriptionsList active Stripe subscriptions
create_subscriptionCreate a subscription for a customer with a recurring price
cancel_subscriptionCancel a Stripe subscription immediately or at period end
create_invoice_itemAdd a line item to an upcoming or specific invoice
finalize_invoiceFinalize a draft invoice so it can be paid
create_couponCreate a discount coupon
list_disputesList payment disputes (chargebacks)
create_checkout_sessionCreate a Stripe Checkout Session (hosted payment page)
get_accountGet Stripe account info for the authenticated account

Authentication

Stripe uses a secret API key (or restricted key for production). Use test mode keys (sk_test_...) for development.

Get your credentials
  1. Go to Stripe Dashboard
  2. Copy your secret key (or create a restricted key with specific permissions)
  3. For ACP: configure your seller's ACP endpoint URL
  4. Set the environment variables

Environment Variables

VariableRequiredDescription
STRIPE_API_KEYYesStripe secret or restricted API key
STRIPE_ACP_BASENoSeller's ACP endpoint base URL (required for ACP tools)

ACP Checkout Flow

1. Agent calls create_checkout → sends items + buyer info
2. Seller returns pricing, shipping options, payment handlers
3. Agent calls update_checkout → selects shipping, updates address
4. Checkout reaches "ready_for_payment" status
5. Agent calls complete_checkout → submits payment token
6. Seller processes payment → order confirmed

Roadmap

v0.2 (planned)
  • search_products — Search catalog by query
  • create_checkout_link — Generate ACP checkout URL
  • get_order_status — Track order post-checkout
  • list_payment_handlers — Discover available payment methods
v0.3 (planned)
  • SharedPaymentToken creation and management
  • Webhook support for checkout status updates
  • Multi-seller checkout orchestration

Want to contribute? Open a PR or request a tool.

Links

Enterprise

Need governance, budget limits, and audit trails for agent payments? CodeSpar Enterprise adds policy engine, payment routing, and compliance templates on top of these MCP servers.

License

MIT

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.