
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
@codespar/mcp-dlocal
Advanced tools
MCP server for dLocal — LatAm cross-border payments, payouts, refunds across 15+ countries via one API
MCP server for dLocal — LatAm cross-border payments.
One API, 15+ LatAm countries, local payment methods (Pix, OXXO, PSE, SPEI, Boleto, cards). The abstraction that per-country PSP servers cannot provide on their own.
| Tool | Purpose |
|---|---|
create_payment | Charge a buyer via local method (card, Pix, OXXO, PSE, SPEI, boleto) |
get_payment | Retrieve payment status |
cancel_payment | Cancel an authorized-but-not-captured payment |
create_refund | Refund a captured payment (full or partial) |
get_refund | Retrieve refund status |
create_payout | Send money out to a beneficiary in local currency |
get_payout | Retrieve payout status |
list_payment_methods | Enumerate available methods per country (dynamic) |
get_balance | Merchant account balance per currency |
npm install @codespar/mcp-dlocal
DLOCAL_LOGIN="..." # X-Login header value
DLOCAL_TRANS_KEY="..." # X-Trans-Key header value
DLOCAL_SECRET_KEY="..." # HMAC secret used to sign V2 requests
DLOCAL_BASE_URL="..." # Optional. Defaults to https://api.dlocal.com. Use https://sandbox.dlocal.com for sandbox.
Every request signs with V2 HMAC-SHA256:
X-Date: <ISO-8601 UTC>
X-Login: <login>
X-Trans-Key: <trans_key>
Authorization: V2-HMAC-SHA256, Signature: <hex(hmac_sha256(login + x_date + body, secret_key))>
The server handles signing automatically — you only configure the three env vars.
# stdio (default — for Claude Desktop, Cursor, etc)
npx @codespar/mcp-dlocal
# HTTP (for server-to-server testing)
MCP_HTTP=true MCP_PORT=3000 npx @codespar/mcp-dlocal
Argentina, Bolivia, Brazil, Chile, Colombia, Costa Rica, Ecuador, Guatemala, Mexico, Peru, Uruguay, and more. Use list_payment_methods to enumerate available methods per country at runtime rather than hard-coding.
MIT
FAQs
MCP server for dLocal — LatAm cross-border payments, payouts, refunds across 15+ countries via one API
The npm package @codespar/mcp-dlocal receives a total of 21 weekly downloads. As such, @codespar/mcp-dlocal popularity was classified as not popular.
We found that @codespar/mcp-dlocal demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.