Skip to main content
GE

Getnet

v0.2.1OAuth2

Adquirente brasileña de Santander — #3 en BR y #1 en ecommerce BR. Crédito, débito, Pix, boleto + onboarding de seller y split de marketplace. Cierra el cuadrante de las cuatro grandes adquirentes de BR.

20 herramientas4 env vars🇧🇷 Brasilestable en npm

Qué puede hacer tu agente

Getnet le da a tu agente 20 tools que llama directo — elegí las que necesite, en Claude, Cursor o cualquier 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.
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("authorize_credit", { /* ... */ });

Instalar

terminal
$ npm install @codespar/mcp-getnet

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": {
    "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>"
      }
    }
  }
}

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

Variables de entorno · 4

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

GETNET_CLIENT_ID
obligatorio

Getnet OAuth client_id

GETNET_CLIENT_SECRET
obligatoriosecret

Getnet OAuth client_secret

GETNET_SELLER_ID
obligatorio

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.

Herramientas disponibles · 20

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

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