Santander

Finance and commerce

MCP server for Santander Brasil, Pix, Cobrança (boleto), Arrecadação, Extrato (OAuth2 + mTLS).

Your AI app calls the Santander MCP server, which does the finance and commerce work and sends the result back to the chat.

About Santander

Santander is a community MCP server from codespar, filed in our directory under finance and commerce. MCP server for Santander Brasil, Pix, Cobrança (boleto), Arrecadação, Extrato (OAuth2 + mTLS).

Santander runs on your own machine: your AI app starts it with the command npx -y @codespar/mcp-santander@0.2.0-alpha.3 and talks to it over standard input and output. It needs SANTANDER_CLIENT_ID, SANTANDER_CLIENT_SECRET, SANTANDER_CERT_PATH and SANTANDER_KEY_PATH set before Santander starts.

Santander is listed in the official MCP registry as io.github.codespar/mcp-santander, version 0.2.0-alpha.3.

At a glance

Publisher
codespar (community)
Runs
Locally on your machine
Install from
Node.js package on npm: @codespar/mcp-santander
Written in
TypeScript
License
MIT
GitHub stars
278
Official MCP registry
io.github.codespar/mcp-santander

How to set up Santander

  1. Install Node.js on the machine that runs your AI app, because Santander starts with npx and downloads its package on first run.
  2. Create SANTANDER_CLIENT_ID, SANTANDER_CLIENT_SECRET, SANTANDER_CERT_PATH and SANTANDER_KEY_PATH for Santander in the connected service's own settings, scoped to the smallest permissions the job needs.
  3. Add Santander to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Santander tools to confirm the connection.
  5. Run one read-only task with Santander first, and keep your app asking before each tool call until the results look right.

Santander compared with similar servers

  • Shopee by codespar has fewer GitHub stars than Santander (278 against 278); both are community servers, and both run locally.
  • Safrapay by codespar has fewer GitHub stars than Santander (278 against 278); both are community servers, and both run locally.
  • Shopify by codespar has fewer GitHub stars than Santander (278 against 278); both are community servers, and both run locally.

Before you connect Santander

  • Give Santander its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Santander tool call until you trust what it does with them.
  • Treat text that Santander fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Santander on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Santander

How marketing and sales teams put Santander to work, by company size. Pick the size closest to yours and start Santander on one use case.

Small business

  • A small business can ask Santander which products and customers drive margin, then plan promotions around them.
  • Owners can use Santander to check refunds, failed payments and churn reasons without opening three dashboards.
  • Santander runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Ecommerce teams can connect Santander to tie campaigns to orders and revenue, not just clicks.
  • Marketing and finance can use Santander to check spend against budget each week and move money to what's working.
  • Start Santander on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises should keep Santander read-only for agents, with any money movement handled by people and existing approvals.
  • Large commerce teams can use Santander to answer revenue questions by channel and region with figures finance signs off on.
  • Santander is a community server, so have security review the code and pin a version before Santander touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Santander README

From codespar/mcp-dev-latam on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

@codespar/mcp-santander

MCP server for Santander Brasil, 3rd largest private bank in Brazil.

Completes the top-3 BR private-bank trio: Itaú + Bradesco + Santander. Same OAuth2 + mTLS shape as its peers; different merchant contract.

Merchants with meaningful Pix, boleto, and cash-management volume integrate directly with Santander instead of going through a PSP.

Status: alpha (0.1.0-alpha.1)

Santander's Developer Portal is contract-gated, the full OpenAPI specs for Pix, Cobrança, Arrecadação, and Extrato are only visible to onboarded merchants. The following pieces are verified against Santander's public integration guides:

  • Production host: https://trust-open.api.santander.com.br
  • Sandbox host: https://trust-sandbox.api.santander.com.br
  • OAuth2 token: /auth/oauth/v2/token
  • Cobrança v2 base: /collection_bill_management/v2/workspaces/{workspace_id}/bank_slips

Remaining paths (Pix, Arrecadação, Extrato) are best-guesses based on (a) BACEN Pix v2 standard paths, (b) Santander public marketing, and (c) conventions shared across Itaú / Bradesco / BB. Every unverified path is flagged To do(verify) in the source.

Pin to exact versions during 0.1.x; paths will be corrected to match the portal spec once an onboarded merchant can validate.

Tools (23)

Tool Purpose
get_oauth_token Mint or return a cached OAuth2 client_credentials bearer token for the Santander Developer Portal.
send_pix Initiate an outbound Pix payment from the merchant's Santander account.
create_pix_qr Create a dynamic Pix charge with QR code (cob).
get_pix Retrieve a Pix transaction by its BCB endToEndId (E).
resolve_dict_key Resolve a DICT key (CPF, CNPJ, email, phone, EVP) to the owner's account data before sending a Pix.
refund_pix Refund (devolução) a previously received Pix.
create_boleto Issue a boleto via Santander Cobrança (collection_bill_management v2).
get_boleto Retrieve a boleto by its Santander bill_id (SONDA query via collection_bill_management v2).
cancel_boleto Cancel (baixa) an outstanding boleto before payment.
get_statement Retrieve account statement transactions for a given period.
create_pix_cobv Create a Pix charge with due date (cobv, cobrança com vencimento).
get_pix_cob Retrieve a Pix immediate charge (cob) by its txid.
list_pix_cob List Pix immediate charges (cob) created in a given period.
update_pix_cob Update (PATCH) an existing Pix immediate charge.
list_pix_received List received Pix (Pix recebidos) in a given period.
register_dict_key Register a new DICT key for one of the merchant's Santander accounts.
delete_dict_key Remove (unregister) a DICT key previously registered for the merchant.
download_boleto_pdf Fetch the PDF (second copy / segunda via) of a registered boleto.
get_account_balance Get current available and blocked balance for a Santander merchant account.
send_ted Initiate a TED transfer from a Santander merchant account to an account at another bank.
transfer_internal Transfer between two Santander accounts (TEF / mesma instituição).
create_openfinance_consent Create an Open Finance consent (BACEN-regulated) for data access or payment initiation against a third-part...
arrecadacao_pay Pay a utility, tax, or concessionária bill via Santander Arrecadação / Pagamento de Contas.

Install

npm install @codespar/mcp-santander@0.1.0-alpha.1

Environment

SANTANDER_CLIENT_ID="..."       # OAuth client_id from Santander's Developer Portal
SANTANDER_CLIENT_SECRET="..."   # OAuth client_secret
SANTANDER_CERT_PATH="/abs/path/to/client.crt"   # mTLS client certificate
SANTANDER_KEY_PATH="/abs/path/to/client.key"    # mTLS private key
SANTANDER_ENV="sandbox"                         # or "production" (default: sandbox)

Authentication

Two factors are both required on every call:

  1. OAuth2 client_credentials, the server POSTs to /auth/oauth/v2/token on the trust-open (or trust-sandbox) gateway, caches the bearer until ~60s before expiry, and attaches Authorization: Bearer <token> to downstream calls.
  2. mTLS, BACEN mandates mutual TLS for Pix v2, and Santander's trust-open gateway enforces it across product families. The server loads the client certificate and private key from the paths you set, builds a Node https.Agent, and routes every request through it.

You obtain the cert + key bundle from the Santander Developer Portal after your merchant contract is signed. They are distinct from the OAuth credentials.

Cobrança: workspace model

Santander's Cobrança v2 is workspace-scoped. Before registering boletos you provision one or more workspace_ids via the Developer Portal, each binds a convênio, boleto/Pix billing mode, and webhook URL. The create_boleto, get_boleto, and cancel_boleto tools all take a workspace_id argument.

Run

# stdio (default)
npx @codespar/mcp-santander

# HTTP transport
MCP_HTTP=true MCP_PORT=3000 npx @codespar/mcp-santander

Caveats

  • Pix / Arrecadação / Extrato paths are unverified. See the To do(verify) markers in src/index.ts. Onboarded merchants should validate against their portal-issued OpenAPI spec and open a PR.
  • Cobrança cancel is modelled as a PATCH with status: "BAIXADO"; the covenant-specific cancellation semantics may differ.
  • Arrecadação barcode validation is server-side in this alpha, no client-side mod-10 / mod-11 check yet.

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

Questions about Santander

What is the Santander MCP server?

MCP server for Santander Brasil, Pix, Cobrança (boleto), Arrecadação, Extrato (OAuth2 + mTLS). Santander is maintained by codespar on GitHub at codespar/mcp-dev-latam, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Santander MCP server?

Add Santander to your AI app's MCP config with the command npx -y @codespar/mcp-santander@0.2.0-alpha.3. In Claude Code, run claude mcp add --transport stdio codespar-santander -- npx -y @codespar/mcp-santander@0.2.0-alpha.3. To run Santander this way you need Node.js installed.

Does Santander need an API key?

Yes. Santander expects SANTANDER_CLIENT_ID, SANTANDER_CLIENT_SECRET, SANTANDER_CERT_PATH and SANTANDER_KEY_PATH to be set. Create the key for Santander in the connected service's own settings, give it the smallest permissions the job needs, and keep it out of shared config files.

Is Santander an official MCP server?

No. Santander is a community server maintained by codespar. Community servers can be excellent; read the code and the open issues before you give Santander access to company data.

What license is Santander under?

Santander is released under the MIT license, according to its GitHub repository. The license covers the code of Santander; the service it connects to has its own terms.