Skip to main content
MCP server CX Codex

mcp-braspag — Claude Code MCP server: payments and setup

This MCP server lets an agent work with Braspag payments, recurring billing, card tokens, and marketplace splits.

Install into Claude Code · Platform CLI All methods and platforms ↓
claude mcp add --env BRASPAG_MERCHANT_ID=<BRASPAG_MERCHANT_ID> --env BRASPAG_MERCHANT_KEY=<BRASPAG_MERCHANT_KEY> --env BRASPAG_ENV=<BRASPAG_ENV> --transport stdio braspag -- npx -y @codespar/mcp-braspag
Open on GitHub

What mcp-braspag does

mcp-braspag exposes Braspag Transaction API and Query API operations to the agent. It can create, capture, void, and look up sales, start Pix or Boleto payments, submit 3DS credit transactions, and send standalone antifraud analyses.

The server includes tools for recurring payment schedules, Cartão Protegido vault tokens, marketplace split rules, and zero-dollar card validation. Agents can change recurring amounts and dates, deactivate or reactivate schedules, and remove stored card tokens.

Set BRASPAG_MERCHANT_ID and BRASPAG_MERCHANT_KEY before running it; Braspag checks these values in API headers. Your merchant contract must have Braspag Pagador enabled through Cielo or Braspag, or the server cannot use valid credentials.

What it helps with

  • create a Braspag sale
  • manage a recurring payment schedule
  • store a card in Cartão Protegido
  • split marketplace funds across sub-merchants
  • look up a sale by MerchantOrderId

Example prompts for the agent

  • Use Braspag to create a sale from order.json and return the PaymentId.
  • Look up the payment by MerchantOrderId and explain any decline returned by the API.
  • Create a recurring payment with its amount and next payment date.

How to install mcp-braspag

Platform CLI

claude mcp add --env BRASPAG_MERCHANT_ID=<BRASPAG_MERCHANT_ID> --env BRASPAG_MERCHANT_KEY=<BRASPAG_MERCHANT_KEY> --env BRASPAG_ENV=<BRASPAG_ENV> --transport stdio braspag -- npx -y @codespar/mcp-braspag

Replace <…> with your own values

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about mcp-braspag

How do I install mcp-braspag in Claude Code?

Set BRASPAG_MERCHANT_ID and BRASPAG_MERCHANT_KEY, then run `claude mcp add mcp-braspag -e BRASPAG_MERCHANT_ID=<BRASPAG_MERCHANT_ID> -e BRASPAG_MERCHANT_KEY=<BRASPAG_MERCHANT_KEY> -- npx -y @codespar/mcp-braspag`.

What does mcp-braspag do?

It connects an agent to Braspag for sales, recurring billing, card vault tokens, marketplace splits, Pix, Boleto, and antifraud analysis.

How is mcp-braspag different from the Cielo server?

mcp-braspag orchestrates payments across acquirers with routing, card vaulting, failover, and marketplace splitting. The Cielo server handles direct acquiring.

Similar MCP servers

Everything for Finance and business →

From the same set124

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor