Skip to main content
ST

Stripe

v0.2.1API Key

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.

30 ferramentas2 env vars🌐 GLOBALestável no npm

O que seu agente faz

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_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.
Exemplo de chamada
// 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

Adicione esta entrada ao seu claude_desktop_config.json (ou a config de qualquer cliente compatível com MCP).

claude_desktop_config.json
{
  "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.

Variáveis de ambiente · 2

Necessárias pra autenticar o server. Armazenadas criptografadas ao usar a hospedagem gerenciada da CodeSpar.

STRIPE_SECRET_KEY
obrigatóriosecret

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.

Ferramentas disponíveis · 30

Cada ferramenta é independente — seu agente carrega só o que precisa pra reduzir contexto e tempo de resposta.

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 compatíveis

MCP é um protocolo — qualquer framework que o fale pode montar este server.

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

Perguntas frequentes

Rode `npx -y @codespar/mcp-stripe` e adicione o bloco de config acima ao seu cliente MCP — Claude, Cursor, VS Code ou qualquer cliente compatível com MCP. Sem build, sem SDK. Prefere hospedado? O tier gerenciado da CodeSpar roda pra você, com a auth resolvida.
Stripe — MCP server · 30 tools | CodeSpar