API global de pagamentos da Stripe — distinta do stripe-acp (que encapsula o Agentic Commerce Protocol da Stripe). O que todo SaaS da LatAm que aceita Stripe usa hoje. Payment Intents, reembolsos, clientes, assinaturas, checkout, payment links, faturas, disputas.
O Stripe dá ao seu agente 30 tools que ele chama direto — escolha as que precisar, no Claude, Cursor ou qualquer cliente MCP.
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-stripeAdicione esta entrada ao seu claude_desktop_config.json (ou a config de qualquer cliente compatível com MCP).
{
"mcpServers": {
"stripe": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-stripe"
],
"env": {
"STRIPE_SECRET_KEY": "<your_stripe_secret_key>"
}
}
}
}Depois de reiniciar, seu agente pode chamar qualquer uma das 30 ferramentas abaixo — teste create_payment_intent primeiro.
Necessárias pra autenticar o server. Armazenadas criptografadas ao usar a hospedagem gerenciada da CodeSpar.
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.
Cada ferramenta é independente — seu agente carrega só o que precisa pra reduzir contexto e tempo de resposta.
create_payment_intentconfirm_payment_intentretrieve_payment_intentcancel_payment_intentlist_payment_intentscreate_refundlist_refundscreate_customerMCP é um protocolo — qualquer framework que o fale pode montar este server.