Skip to main content
ST

Stripe

v0.2.1API Key

API global de pagos de Stripe — distinta de stripe-acp (que encapsula el Agentic Commerce Protocol de Stripe). Lo que usa hoy todo SaaS de LatAm que acepta Stripe. Payment Intents, reembolsos, clientes, suscripciones, checkout, payment links, facturas, disputas.

30 herramientas2 env vars🌐 GLOBALestable en npm

Qué puede hacer tu agente

Stripe le da a tu agente 30 tools que llama directo — elegí las que necesite, en Claude, Cursor o cualquier cliente MCP.

  • create_payment_intentCreate 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_intentConfirm a PaymentIntent created with confirm=false. Attaches and charges the payment method.
  • retrieve_payment_intentRetrieve a PaymentIntent by id.
Ejemplo de llamada
// 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", { /* ... */ });

Instalar

terminal
$ npm install @codespar/mcp-stripe

Quickstart

Agregá esta entrada a tu claude_desktop_config.json (o a la config de cualquier cliente compatible con MCP).

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

Después de reiniciar, tu agente puede llamar cualquiera de las 30 herramientas de abajo — probá create_payment_intent primero.

Variables de entorno · 2

Necesarias para autenticar el server. Almacenadas cifradas al usar el hosting gestionado de CodeSpar.

STRIPE_SECRET_KEY
obligatoriosecret

Stripe secret key (sk_test_... for test mode, sk_live_... for live mode). The key prefix selects the environment — no separate base URL.

STRIPE_API_VERSION
opcional

Optional Stripe API version to pin via the Stripe-Version header (e.g. '2024-06-20'). When omitted, Stripe uses the account's default version.

Herramientas disponibles · 30

Cada herramienta es independiente — tu agente carga solo lo que necesita para reducir contexto y tiempo de respuesta.

WRITEcreate_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.
WRITEconfirm_payment_intent
Confirm a PaymentIntent created with confirm=false. Attaches and charges the payment method.
WRITEretrieve_payment_intent
Retrieve a PaymentIntent by id.
DELETEcancel_payment_intent
Cancel a PaymentIntent. Works only when status is requires_payment_method, requires_capture, requires_confirmation, requires_action, or processing.
WRITElist_payment_intents
List PaymentIntents. Filter by customer or created window.
DELETEcreate_refund
Refund a charge or a PaymentIntent. Omit amount for a full refund; set amount for partial.
READlist_refunds
List Refunds. Filter by charge or payment_intent.
WRITEcreate_customer
Create a Stripe Customer. All fields optional; Stripe will still assign a cus_... id.

Frameworks compatibles

MCP es un protocolo — cualquier framework que lo hable puede montar este server.

Claude Agent SDKAnthropic
OpenAI AgentsOpenAI
Vercel AI SDKVercel
LangChainLangChain
LlamaIndexLlamaIndex
CrewAICrewAI
MastraMastra
Cualquier cliente MCPProtocolo

Preguntas frecuentes

Corré `npx -y @codespar/mcp-stripe` y agregá el bloque de config de arriba a tu cliente MCP — Claude, Cursor, VS Code o cualquier cliente compatible con MCP. Sin build, sin SDK. ¿Preferís hosted? El tier gestionado de CodeSpar lo corre por vos, con la auth resuelta.
Stripe — MCP server · 30 tools | CodeSpar