
Mcp Safrapay
io.github.codesparPublished by GitHub account codesparv0.2.0-alpha.3Updated Oct 24, 2026
MCP server for Safrapay — Banco Safra acquirer: credit, Pix, boleto + split, 3DS, chargebacks
Overview
Local MCP server for the Safrapay (Banco Safra) acquirer, letting an assistant create and manage card, Pix and boleto charges, refunds, splits, recurrences and
- What you can do
- Authorize, capture, cancel and refund card payments, and run 3-D Secure authentication before authorization. Create Pix and boleto charges, payment links, split rules and recurring-billing subscriptions, and cancel recurrences. Look up charges by chargeId or merchant order id, list transactions, simulate installments and retrieve statements and settlement reports. Tokenize cards, revoke stored card tokens, query chargeback details and bulk-register webhooks.
- When to use it
- For Brazilian merchants or developers working with Safrapay/Aditum payments who want an assistant to drive charge creation, refunds, reconciliation lookups or webhook setup. It is an early alpha, so it is best suited to sandbox experimentation rather than live payment operations.
- Requirements
- Runs locally as an npm package (Node.js) over stdio, or over HTTP when MCP_HTTP is set. Requires SAFRAPAY_CLIENT_ID (merchant CNPJ), SAFRAPAY_CLIENT_SECRET (merchant token), SAFRAPAY_MERCHANT_ID and optionally SAFRAPAY_ENV (sandbox by default). Network access to the Aditum-hosted Safrapay hosts is needed.
Installation
In SourceWeft
- Open Mcp Safrapay in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
@codespar/mcp-safrapay
MCP server for Safrapay — Banco Safra's acquirer. B2B-banking crossover focused on mid-to-large BR merchants and private-banking clientele.
Safrapay's API surface is operated on Aditum's payment platform (documented at safrapay-docs.aditum.com.br). The gateway, portal, reconciliation, and webhook products are split across separate base hosts.
Status: 0.1.0-alpha.1. The endpoint paths here were derived from the Aditum-hosted Safrapay developer docs (publicly reachable). Auth flow (BCRYPT + CNPJ on gateway, JWT Bearer thereafter) is best-effort: the BCRYPT hash input format is not fully specified in public docs and very likely requires a sandbox account to finalize. Treat all tools as scaffolding until validated against a live sandbox merchant.
Tools (22)
Install
Environment
Base URLs
Safrapay splits its API into four products hosted on distinct domains:
Authentication
Gateway uses a two-step bootstrap:
POST {gateway}/v2/merchant/authwith headersAuthorization: <BCRYPT(CNPJ+MerchantToken)>andmerchantCredential: <CNPJ>to exchange for a JWT access token.- Subsequent calls send
Authorization: Bearer <jwt>.
The server caches the JWT in memory until 60 s before expiry. The BCRYPT input concatenation is an informed guess; refine once you have a sandbox account.
Run
Endpoint map (used by tools)
Enterprise
Need governance, budget limits, and audit trails for agent payments? CodeSpar Enterprise adds policy engine, payment routing, and compliance templates on top of these MCP servers.
License
MIT
Source: packages/payments/safrapay/README.md at commit d0a519a
Tools
0Version history
1- v0.2.0-alpha.3LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts