Skip to main content
GE

Getnet

v0.2.1OAuth2

Credenciadora brasileira do Santander — #3 no BR e #1 no ecommerce BR. Crédito, débito, Pix, boleto + onboarding de seller e split de marketplace. Fecha o quadrante das quatro grandes credenciadoras do BR.

20 ferramentas4 env vars🇧🇷 Brasilestável no npm

O que seu agente faz

O Getnet dá ao seu agente 20 tools que ele chama direto — escolha as que precisar, no Claude, Cursor ou qualquer cliente MCP.

  • authorize_creditAuthorize a credit-card payment on Getnet. Set delayed=false to authorize+capture atomically; delayed=true to authorize only (use capture_credit later).
  • capture_creditCapture a previously authorized credit payment (when delayed=true was used).
  • cancel_creditCancel an authorized-but-uncaptured credit payment.
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("authorize_credit", { /* ... */ });

Instalar

terminal
$ npm install @codespar/mcp-getnet

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": {
    "getnet": {
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-getnet"
      ],
      "env": {
        "GETNET_CLIENT_ID": "<your_getnet_client_id>",
        "GETNET_CLIENT_SECRET": "<your_getnet_client_secret>",
        "GETNET_SELLER_ID": "<your_getnet_seller_id>"
      }
    }
  }
}

Depois de reiniciar, seu agente pode chamar qualquer uma das 20 ferramentas abaixo — teste authorize_credit primeiro.

Variáveis de ambiente · 4

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

GETNET_CLIENT_ID
obrigatório

Getnet OAuth client_id

GETNET_CLIENT_SECRET
obrigatóriosecret

Getnet OAuth client_secret

GETNET_SELLER_ID
obrigatório

Getnet seller_id issued with your merchant contract

GETNET_BASE_URL
opcional

Getnet API base URL. Defaults to production (https://api.getnet.com.br). Use https://api-homologacao.getnet.com.br for sandbox.

Ferramentas disponíveis · 20

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

WRITEauthorize_credit
Authorize a credit-card payment on Getnet. Set delayed=false to authorize+capture atomically; delayed=true to authorize only (use capture_credit later).
WRITEcapture_credit
Capture a previously authorized credit payment (when delayed=true was used).
DELETEcancel_credit
Cancel an authorized-but-uncaptured credit payment.
DELETErefund_credit
Refund a captured credit payment. Pass amount for a partial refund; omit for full.
WRITEcreate_pix
Create a Pix charge. Returns qr_code (image base64), qr_code_text (EMV copy-paste payload) and payment_id. Expires per Getnet defaults unless expires_in is set.
WRITEcreate_boleto
Create a boleto charge. Returns boleto PDF URL, barcode, and expiration date.
WRITEget_payment
Retrieve a payment by Getnet payment_id. Works for credit, debit, Pix, and boleto.
WRITEtokenize_card
Tokenize a card for PCI-safe reuse. Returns a number_token to pass into authorize_credit.credit.number_token.

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-getnet` 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.
Getnet — MCP server · 20 tools | CodeSpar