mcp-c6

v0.1.0-alpha.4
io.github.codespar/mcp-c6 Checked 2 days ago Published 2 months ago

DEPRECATED: no live endpoint (baas.c6bank.com.br does not resolve)

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

get_oauth_token

Mint or return a cached OAuth2 client_credentials bearer token for the C6 Developer Portal. Exposed so agents can inspect token freshness; normal tool calls obtain tokens implicitly.

create_pix_cob

Create a Pix immediate charge (cob) with QR code. Returns the txid, copy-paste EMV payload, and location URL per BACEN Pix v2.

ParameterTypeDescription
amount *stringAmount in BRL major units, e.g. '99.90'
additional_infoarrayOptional infoAdicionais — array of { nome, valor }
descriptionstringPayer-visible description (solicitacaoPagador)
expires_innumberQR lifetime in seconds (default 3600)
payerobjectPayer identification (optional for cob, required for cobv)
txidstringOptional merchant-side txid (26-35 alphanumeric chars). Omit to let C6 assign.

get_pix_cob

Retrieve a Pix immediate charge (cob) by its txid.

ParameterTypeDescription
txid *stringBACEN Pix txid

list_pix_cob

List Pix immediate charges (cob) registered by the merchant within a date range. Paginated per BACEN Pix v2.

ParameterTypeDescription
from *stringStart date-time ISO-8601 (inicio)
to *stringEnd date-time ISO-8601 (fim)
cnpjstringOptional payer CNPJ filter (digits only)
cpfstringOptional payer CPF filter (digits only)
pagenumberPage number (paginacao.paginaAtual)
page_sizenumberItems per page (paginacao.itensPorPagina)
statusstringOptional status filter: ATIVA | CONCLUIDA | REMOVIDA_PELO_USUARIO_RECEBEDOR | REMOVIDA_PELO_PSP

create_pix_cobv

Create a Pix charge with due date (cobv) — used for boleto-like Pix where the payer can pay at or after a due date with optional fine/interest. Returns txid, copy-paste EMV payload, and location URL.

ParameterTypeDescription
amount *stringOriginal amount in BRL major units, e.g. '250.00'
due_date *stringDue date ISO-8601 (YYYY-MM-DD)
payer *objectPayer identification (required for cobv)
descriptionstringPayer-visible description
discountobjectDesconto up to due date: { percentage?, amount? }
fineobjectMulta after due date: { percentage?, amount? }
interestobjectJuros (daily) after due date: { percentage?, amount? }
txidstringOptional merchant-side txid. Omit to let C6 assign.
validity_after_due_daysnumberDays after due date the Pix remains payable (default 30)

get_pix_cobv

Retrieve a Pix due-date charge (cobv) by its txid.

ParameterTypeDescription
txid *stringBACEN Pix txid

resolve_dict_key

Resolve a DICT key (CPF, CNPJ, email, phone, EVP) to the owner's account data before sending a Pix. Subject to BCB rate limits per consenting payer.

ParameterTypeDescription
key *stringDICT key — CPF, CNPJ, email, phone (+55...), or EVP UUID
payer_documentstringMerchant / end-payer CPF/CNPJ for BCB audit logging

register_pix_key

Register a DICT key (CPF, CNPJ, email, phone, or EVP) on a C6 account owned by the merchant. Subject to BCB validation flows (e.g. email/SMS confirmation for email/phone keys).

ParameterTypeDescription
account *objectAccount to bind the key to
key_type *stringDICT key type: CPF | CNPJ | EMAIL | PHONE | EVP
keystringThe key value. Omit for EVP (C6 generates the UUID).

delete_pix_key

Delete a DICT key owned by the merchant. Irreversible — the key becomes available for re-registration by any PSP after the BCB lockout window.

ParameterTypeDescription
key *stringDICT key value to delete

create_boleto

Issue a boleto via C6 Cobrança. Returns nosso_numero, linha_digitável, barcode, and PDF URL.

ParameterTypeDescription
amount *stringAmount in BRL major units, e.g. '150.00'
due_date *stringDue date ISO-8601 (YYYY-MM-DD)
payer *objectPayer (sacado) data
fineobjectMulta (fine after due date): { percentage?, amount?, days_after_due? }
instructionsarrayFree-text instructions printed on the boleto
interestobjectJuros (daily interest after due date): { percentage?, amount? }
our_numberstringNosso_numero. Omit to have C6 assign one.

get_boleto

Retrieve a boleto by its C6 identifier (id or nosso_numero).

ParameterTypeDescription
id *stringBoleto id or nosso_numero

cancel_boleto

Cancel (baixa) an outstanding boleto before payment.

ParameterTypeDescription
id *stringBoleto id or nosso_numero
reasonstringCancellation reason code or free text

get_account_balance

Retrieve the current balance snapshot for a merchant account.

ParameterTypeDescription
account *stringAgência-conta identifier of the merchant account

get_statement

Retrieve account statement transactions for a given period. Paginated.

ParameterTypeDescription
account *stringAgência-conta identifier of the merchant account
from *stringStart date ISO-8601 (YYYY-MM-DD)
to *stringEnd date ISO-8601 (YYYY-MM-DD)
pagenumberPage number (1-indexed)
page_sizenumberItems per page (default 50)