Pagamentos cross-border na LatAm através de uma única API. Mais de 15 países, métodos locais (Pix, OXXO, PSE, SPEI, boleto) + cartões. A abstração de uma chamada e múltiplos países que PSPs por país não conseguem oferecer sozinhos.
O dLocal dá ao seu agente 18 tools que ele chama direto — escolha as que precisar, no Claude, Cursor ou qualquer cliente MCP.
create_payment — Create a payment (pay-in) in a LatAm country using a local payment method. Returns the payment object with a status and, for voucher/QR methods, the redirect/display data.get_payment — Get payment status and full detail by dLocal payment id.get_payment_by_order_id — Get a payment by the merchant-side order_id supplied at creation time. Useful when the agent only kept its own reference and not dLocal's 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", { /* ... */ });$ npm install @codespar/mcp-dlocalAdicione esta entrada ao seu claude_desktop_config.json (ou a config de qualquer cliente compatível com MCP).
{
"mcpServers": {
"dlocal": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-dlocal"
],
"env": {
"DLOCAL_LOGIN": "<your_dlocal_login>",
"DLOCAL_TRANS_KEY": "<your_dlocal_trans_key>",
"DLOCAL_SECRET_KEY": "<your_dlocal_secret_key>"
}
}
}
}Depois de reiniciar, seu agente pode chamar qualquer uma das 18 ferramentas abaixo — teste create_payment primeiro.
Necessárias pra autenticar o server. Armazenadas criptografadas ao usar a hospedagem gerenciada da CodeSpar.
DLOCAL_LOGINdLocal API Login (X-Login header)
DLOCAL_TRANS_KEYdLocal API Trans-Key (X-Trans-Key header)
DLOCAL_SECRET_KEYdLocal API Secret Key used to sign V2 HMAC-SHA256 requests
DLOCAL_BASE_URLdLocal API base URL. Defaults to https://api.dlocal.com (prod). Use https://sandbox.dlocal.com for sandbox.
Cada ferramenta é independente — seu agente carrega só o que precisa pra reduzir contexto e tempo de resposta.
create_paymentget_paymentget_payment_by_order_idlist_paymentscapture_paymentcancel_paymentcreate_refundget_refundMCP é um protocolo — qualquer framework que o fale pode montar este server.