Skip to main content
ST

Stripe ACP

v0.1.3API Key

Agentic Commerce Protocol by Stripe. AI agent checkout, payment delegation, product discovery, and cart management.

24 tools1 env vars🌐 GLOBALstable on npm

What your agent can do

Stripe ACP gives your agent 24 tools it calls directly β€” pick the ones it needs, in Claude, Cursor, or any MCP client.

  • create_checkout β€” Create an ACP checkout session with a seller. The agent sends line items and buyer info; the seller returns pricing, fulfillment options, and payment handlers.
  • get_checkout β€” Retrieve the current state of an ACP checkout session, including status, pricing, and available payment methods
  • update_checkout β€” Update an ACP checkout session β€” modify quantities, shipping address, or fulfillment selections
Example call
// 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_checkout", { /* ... */ });

Install

terminal
$ npm install @codespar/mcp-stripe-acp

Quickstart

Add this entry to your claude_desktop_config.json (or any MCP-compatible client config).

claude_desktop_config.json
{
  "mcpServers": {
    "stripe-acp": {
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-stripe-acp"
      ],
      "env": {
        "STRIPE_API_KEY": "<your_stripe_api_key>"
      }
    }
  }
}

After restart, your agent can call any of the 24 tools below β€” try create_checkout first.

Environment variables Β· 1

Required to authenticate the server. Stored encrypted when using CodeSpar managed hosting.

STRIPE_API_KEY
requiredsecret

API key for stripe-acp

Available tools Β· 24

Each tool is independent β€” your agent loads only what it needs to reduce context and response time.

WRITEcreate_checkout
Create an ACP checkout session with a seller. The agent sends line items and buyer info; the seller returns pricing, fulfillment options, and payment handlers.
READget_checkout
Retrieve the current state of an ACP checkout session, including status, pricing, and available payment methods
WRITEupdate_checkout
Update an ACP checkout session β€” modify quantities, shipping address, or fulfillment selections
READcomplete_checkout
Complete an ACP checkout by submitting a payment token. Finalizes the order with the seller. The checkout must be in 'ready_for_payment' status.
DELETEcancel_checkout
Cancel an ACP checkout session. Releases any held inventory.
WRITEcreate_customer
Create a Stripe customer
READlist_customers
List Stripe customers with optional filters
WRITEcreate_payment_link
Create a shareable Stripe Payment Link for a price

Compatible frameworks

MCP is a protocol β€” any framework that speaks it can mount this server.

Claude Agent SDKAnthropic
OpenAI AgentsOpenAI
Vercel AI SDKVercel
LangChainLangChain
LlamaIndexLlamaIndex
CrewAICrewAI
MastraMastra
Any MCP clientProtocol

Frequently asked questions

Run `npx -y @codespar/mcp-stripe-acp` and add the config block above to your MCP client β€” Claude, Cursor, VS Code, or any MCP-compatible client. No build step, no SDK required. Prefer hosted? CodeSpar's managed tier runs it for you with auth handled.
Stripe ACP β€” MCP server Β· 24 tools | CodeSpar