mcp-pagbrasil

v0.1.0
io.github.codespar/mcp-pagbrasil Checked 9 hours ago Published 5 months ago

PagBrasil — cross-border acquiring into Brazil: Pix, Boleto Flash, refunds

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

create_order

Create an order / request a payment (POST /order/add, form-urlencoded). payment_type selects the method (pix | boleto | creditcard). Returns XML: for Pix it carries pix_code (copy-paste) and pix_image; for boleto, the bar code and PDF URL. order_number must be unique per customer_taxid.

ParameterTypeDescription
amount_brl *stringAmount in Brazilian Real, major units as a string (e.g. '125.00')
customer_name *stringBuyer full name
customer_taxid *stringBuyer CPF (individuals) or CNPJ (companies) — must be a valid Brazilian tax id
order_number *stringUnique order reference per customer_taxid (idempotency anchor)
payment_type *stringPayment method
address_citystringBuyer city
address_statestringBuyer state (UF)
address_streetstringBuyer street address
address_zipstringBuyer CEP
customer_emailstringBuyer email
customer_phonestringBuyer phone
product_namestringProduct / charge description

get_order

Request information about an order (POST /order/get). Returns the same XML order shape as create_order, including current payment status — poll this to detect Pix/boleto settlement.

ParameterTypeDescription
order_number *stringThe order_number used at create time

refund_order

Request a refund for a settled order (POST /order/refund). Pass amount_brl for a partial refund; omit for a full refund.

ParameterTypeDescription
order_number *stringThe order_number to refund
amount_brlstringAmount to refund in BRL, major units (e.g. '50.00'). Omit for a full refund.