Getnet

Finance and commerce

MCP server for Getnet, Santander-owned BR acquirer: credit, debit, Pix, boleto, marketplace split.

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

About Getnet

Getnet is a community MCP server from codespar, filed in our directory under finance and commerce. MCP server for Getnet, Santander-owned BR acquirer: credit, debit, Pix, boleto, marketplace split.

Getnet runs on your own machine: your AI app starts it with the command npx -y @codespar/mcp-getnet@0.2.2 and talks to it over standard input and output. It needs GETNET_CLIENT_ID, GETNET_CLIENT_SECRET and GETNET_SELLER_ID set before Getnet starts.

Getnet is listed in the official MCP registry as io.github.codespar/mcp-getnet, version 0.2.2.

At a glance

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

How to set up Getnet

  1. Install Node.js on the machine that runs your AI app, because Getnet starts with npx and downloads its package on first run.
  2. Create GETNET_CLIENT_ID, GETNET_CLIENT_SECRET and GETNET_SELLER_ID for Getnet in the connected service's own settings, scoped to the smallest permissions the job needs.
  3. Add Getnet 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 Getnet tools to confirm the connection.
  5. Run one read-only task with Getnet first, and keep your app asking before each tool call until the results look right.

Getnet compared with similar servers

  • Iniciador by codespar has fewer GitHub stars than Getnet (278 against 278); both are community servers, and both run locally.
  • Foxbit by codespar has fewer GitHub stars than Getnet (278 against 278); both are community servers, and both run locally.
  • Inter Bank by codespar has fewer GitHub stars than Getnet (278 against 278); both are community servers, and both run locally.

Before you connect Getnet

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

Marketing use cases for Getnet

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

Small business

  • A small business can ask Getnet which products and customers drive margin, then plan promotions around them.
  • Owners can use Getnet to check refunds, failed payments and churn reasons without opening three dashboards.
  • Getnet 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 Getnet to tie campaigns to orders and revenue, not just clicks.
  • Marketing and finance can use Getnet to check spend against budget each week and move money to what's working.
  • Start Getnet on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

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

Getnet 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-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)

Tool Purpose
authorize_credit Authorize a credit-card payment on Getnet.
capture_credit Capture a previously authorized credit payment (when delayed=true was used).
cancel_credit Cancel an authorized-but-uncaptured credit payment.
refund_credit Refund a captured credit payment.
create_pix Create a Pix charge.
create_boleto Create a boleto charge.
get_payment Retrieve a payment by Getnet payment_id.
tokenize_card Tokenize a card for PCI-safe reuse.
create_seller Onboard a marketplace seller via Getnet Marketplace Management.
get_seller Retrieve a seller by Getnet seller_id.
list_sellers List marketplace sellers with optional filters.
cancel_debit Cancel a debit-card payment by Getnet payment_id.
query_pix Retrieve a Pix charge by Getnet payment_id.
query_boleto Retrieve a boleto by Getnet payment_id.
cancel_boleto Cancel a boleto that has not yet been paid.
get_payment_by_order Retrieve a payment using the merchant-side order_id (handy when you've lost the Getnet payment_id).
query_installments Query the installment plans Getnet offers for a given amount + card brand (with/without interest, max insta...
create_numtoken Create a numtoken (Getnet card-on-file PAN-level token).
create_split Configure a marketplace split rule that routes part of a payment to a subseller.
get_statement Retrieve 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

Questions about Getnet

What is the Getnet MCP server?

MCP server for Getnet, Santander-owned BR acquirer: credit, debit, Pix, boleto, marketplace split. Getnet 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 Getnet MCP server?

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

Does Getnet need an API key?

Yes. Getnet expects GETNET_CLIENT_ID, GETNET_CLIENT_SECRET and GETNET_SELLER_ID to be set. Create the key for Getnet in the connected service's own settings, give it the smallest permissions the job needs, and keep it out of shared config files.

Is Getnet an official MCP server?

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

What license is Getnet under?

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