mcpField
M
mcp-getnet

mcp-getnet

Local
github.com/codesparFinance275Updated 5w ago

About mcp-getnet

@codespar/mcp-getnet is an MCP server for Getnet, a Brazilian card acquirer owned by Santander. It targets merchants with a Santander commercial contract who integrate directly with the acquirer rather than through a PSP. It covers credit, debit, Pix, boleto and marketplace split flows.

Key features

  1. 01Credit authorization, capture, cancel and refund
  2. 02Pix and boleto charge creation and queries
  3. 03Card tokenization and numtoken creation
  4. 04Marketplace seller onboarding and split rules
  5. 05Statement retrieval by order ID or payment ID

Use cases

  1. 01Accepting credit card and Pix payments through Getnet
  2. 02Onboarding sellers and configuring splits on a marketplace
  3. 03Reviewing a subseller's sales, fees and payouts over a date range

MCP support

The project runs as an MCP server that exposes 20 payment tools to MCP clients, over stdio or HTTP transport.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"codespar-mcp-getnet": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-getnet"
],
"env": {
"GETNET_CLIENT_ID": "<GETNET_CLIENT_ID>",
"GETNET_CLIENT_SECRET": "<GETNET_CLIENT_SECRET>",
"GETNET_SELLER_ID": "<GETNET_SELLER_ID>",
"GETNET_BASE_URL": "<GETNET_BASE_URL>"
}
}
}
}
Run commandnpx -y @codespar/mcp-getnet
Environment variables to set
GETNET_CLIENT_IDGetnet OAuth client_id
GETNET_CLIENT_SECRETSecretGetnet OAuth client_secret
GETNET_SELLER_IDGetnet seller_id issued with your merchant contract
GETNET_BASE_URLGetnet API base URL. Defaults to production (https://api.getnet.com.br). Use https://api-homologacao.getnet.com.br for sandbox.

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@codespar/mcp-getnet0.2.2

Tools

20

Saved tool list · updated 2w ago

ParameterTypeRequiredDescription
amountnumberYesAmount in cents
creditobjectYesCard data (pre-tokenized preferred via number_token)
credit.brandstringYesVisa, Mastercard, Elo, Amex, Hipercard
credit.number_tokenstringYesToken from tokenize_card
credit.security_codestringYes
credit.save_card_databooleanNo
credit.cardholder_namestringYes
credit.expiration_yearstringYes
credit.soft_descriptorstringNo
credit.expiration_monthstringYes
credit.transaction_typeenumNoFULL | INSTALL_NO_INTEREST | INSTALL_WITH_INTEREST
credit.number_installmentsnumberNo
delayedbooleanYestrue = authorize only; false = authorize + capture
currencystringNoISO-4217 currency code (default BRL)
customerobjectYesCustomer identity
customer.namestringNo
customer.emailstringYes
customer.last_namestringYes
customer.first_namestringYes
customer.customer_idstringYesMerchant-side customer id
customer.phone_numberstringNo
customer.document_typeenumYesCPF | CNPJ
customer.document_numberstringYesCPF or CNPJ digits only
order_idstringYesMerchant-side order identifier

Details

From the project README

@codespar/mcp-getnet

MCP server for Getnet — Santander-owned Brazilian card acquirer.

Together with Cielo, Stone, and Efi, Getnet closes three of the "big four" BR acquirer quadrant. Distinct from per-PSP servers (Zoop, Pagar.me, Asaas): Getnet is an acquirer, so merchants with a Santander commercial contract integrate directly instead of going through a PSP.

Tools (20)

ToolPurpose
authorize_creditAuthorize a credit-card payment on Getnet.
capture_creditCapture a previously authorized credit payment (when delayed=true was used).
cancel_creditCancel an authorized-but-uncaptured credit payment.
refund_creditRefund a captured credit payment.
create_pixCreate a Pix charge.
create_boletoCreate a boleto charge.
get_paymentRetrieve a payment by Getnet payment_id.
tokenize_cardTokenize a card for PCI-safe reuse.
create_sellerOnboard a marketplace seller via Getnet Marketplace Management.
get_sellerRetrieve a seller by Getnet seller_id.
list_sellersList marketplace sellers with optional filters.
cancel_debitCancel a debit-card payment by Getnet payment_id.
query_pixRetrieve a Pix charge by Getnet payment_id.
query_boletoRetrieve a boleto by Getnet payment_id.
cancel_boletoCancel a boleto that has not yet been paid.
get_payment_by_orderRetrieve a payment using the merchant-side order_id (handy when you've lost the Getnet payment_id).
query_installmentsQuery the installment plans Getnet offers for a given amount + card brand (with/without interest, max insta...
create_numtokenCreate a numtoken (Getnet card-on-file PAN-level token).
create_splitConfigure a marketplace split rule that routes part of a payment to a subseller.
get_statementRetrieve marketplace statement entries (sales, fees, payouts) for a subseller in a date range.

Install

npm install @codespar/mcp-getnet

Environment

GETNET_CLIENT_ID="..."       # OAuth client_id
GETNET_CLIENT_SECRET="..."   # OAuth client_secret
GETNET_SELLER_ID="..."       # seller_id from your merchant contract
GETNET_BASE_URL="..."        # Optional. Default: https://api.getnet.com.br
                             # Sandbox: https://api-homologacao.getnet.com.br

Authentication

OAuth 2.0 Client Credentials. The server calls POST /auth/oauth/v2/token with Basic auth and caches the bearer token in memory until 60s before expiry. Transparent to callers.

Run

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

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

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

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.