Rede

Finance and commerce

MCP server for Rede, Itaú-owned BR acquirer: authorize/capture/refund, zero-auth, card tokens.

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

About Rede

Rede is a community MCP server from codespar, filed in our directory under finance and commerce. MCP server for Rede, Itaú-owned BR acquirer: authorize/capture/refund, zero-auth, card tokens.

Rede runs on your own machine: your AI app starts it with the command npx -y @codespar/mcp-rede@0.2.0-alpha.3 and talks to it over standard input and output. It needs REDE_PV and REDE_TOKEN set before Rede starts.

Rede is listed in the official MCP registry as io.github.codespar/mcp-rede, version 0.2.0-alpha.3.

At a glance

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

How to set up Rede

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

Rede compared with similar servers

  • Rinne by codespar has fewer GitHub stars than Rede (278 against 278); both are community servers, and both run locally.
  • Rd Station by codespar has fewer GitHub stars than Rede (278 against 278); both are community servers, and both run locally.
  • Safrapay by codespar has fewer GitHub stars than Rede (278 against 278); both are community servers, and both run locally.

Before you connect Rede

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

Marketing use cases for Rede

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

Small business

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

Enterprise

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

Rede 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-rede

MCP server for Rede, Itaú-owned Brazilian card acquirer.

Rede closes the "big four" BR acquirer quadrant alongside Cielo, Stone, and Getnet. Merchants with an Itaú commercial contract integrate directly via eRede instead of going through a PSP.

Tools (22)

Tool Purpose
authorize_transaction Authorize a credit card transaction on Rede.
capture_transaction Capture a previously authorized transaction (when capture=false was used).
cancel_transaction Cancel an authorized-but-uncaptured transaction (void).
refund_transaction Refund a captured transaction.
get_transaction Retrieve a transaction by Rede tid OR by merchant reference.
zero_auth Validate a card without charging (zero-auth / account verification).
tokenize_card Tokenize a card for PCI-safe reuse.
delete_token Delete a previously created card token.
create_recurrence Create a native Rede recurrence (subscription).
get_recurrence Retrieve a recurrence by Rede recurrence id.
disable_recurrence Disable (cancel) an active recurrence.
authorize_debit Authorize a debit card transaction on Rede.
list_transactions List transactions in a date range.
get_token Retrieve metadata for a previously stored card token (brand, last 4, expiration).
update_recurrence Update an existing recurrence, change amount, card (storageCard), end date, or pause/resume.
get_recurrence_transactions List transactions generated by a recurrence (one row per billing cycle executed).
authenticate_3ds Initiate a 3DS (EMV 3-D Secure) authentication for a card charge.
get_3ds_status Check the current status of a 3DS authentication by its reference id.
authorize_with_3ds Authorize a transaction after a successful 3DS authentication, attaching the 3DS reference for liability sh...
create_boleto Issue a boleto registrado via Rede.
get_boleto Retrieve a boleto by Rede boleto id or by merchant reference.
cancel_boleto Cancel an unpaid boleto.

Install

npm install @codespar/mcp-rede@alpha

Environment

REDE_PV="..."       # Merchant filiação (PV)
REDE_TOKEN="..."    # Security token (paired with PV)
REDE_ENV="sandbox"  # Optional. 'sandbox' (default) or 'production'

Authentication

HTTP Basic auth with base64(PV:TOKEN). The server builds the Authorization header on every request, transparent to callers.

Base URLs

  • Production: https://api.userede.com.br/erede/v1
  • Sandbox: https://sandbox-erede.useredecloud.com.br/v1

Run

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

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

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 Rede

What is the Rede MCP server?

MCP server for Rede, Itaú-owned BR acquirer: authorize/capture/refund, zero-auth, card tokens. Rede 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 Rede MCP server?

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

Does Rede need an API key?

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

Is Rede an official MCP server?

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

What license is Rede under?

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