Skip to main content
MCP server CX Codex

mcp-rede — Claude Code MCP server: Rede payments from an agent

Wires 22 tools of Brazilian acquirer Rede into your AI agent: authorizations, captures, refunds, card tokens, recurrences, 3DS and boleto.

Install into Claude Code · Platform CLI All methods and platforms ↓
claude mcp add --env REDE_PV=<REDE_PV> --env REDE_TOKEN=<REDE_TOKEN> --env REDE_ENV=<REDE_ENV> --transport stdio rede -- npx -y @codespar/mcp-rede
Open on GitHub

What mcp-rede does

The server exposes eRede to the agent. authorize_transaction runs a card charge, capture_transaction settles one that was authorized with capture off, and two more calls void or refund it. Separate tools validate a card with no charge (zero_auth), store a reusable token (tokenize_card, plus get_token and delete_token), and manage subscriptions through create_recurrence, update_recurrence, disable_recurrence. You also get transaction listings by date range, 3DS authentication, and boleto issuing.

Every request carries HTTP Basic credentials built from PV and token, so the agent never touches the header itself. You supply REDE_PV and REDE_TOKEN from a Rede merchant contract; REDE_ENV picks sandbox or production and defaults to sandbox. No working pair means no live calls, so confirm the contract before wiring anything into an app.

It runs with npx over stdio. Set MCP_HTTP=true and MCP_PORT to switch to HTTP.

What it helps with

  • charge a card through Rede without leaving the chat
  • refund a payment that has already been captured
  • store a card token instead of keeping the number in code
  • start a subscription and pause it later
  • issue a boleto and cancel it if unpaid

Example prompts for the agent

  • Authorize a 150 BRL payment for order 4821 and give me the tid
  • List Rede transactions from last week that were never captured
  • Create a recurrence of 59.90 BRL using customer 7712's card token

How to install mcp-rede

Platform CLI

claude mcp add --env REDE_PV=<REDE_PV> --env REDE_TOKEN=<REDE_TOKEN> --env REDE_ENV=<REDE_ENV> --transport stdio rede -- npx -y @codespar/mcp-rede

Replace <…> with your own values

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about mcp-rede

How do I install mcp-rede in Claude Code?

Run claude mcp add mcp-rede -e REDE_PV=<REDE_PV> -e REDE_TOKEN=<REDE_TOKEN> -- npx -y @codespar/mcp-rede. Put your own credentials in place of the placeholders. A second form adds --env REDE_ENV=<REDE_ENV> and --transport stdio when you need another environment.

What does mcp-rede do?

It gives an AI agent the Rede payment toolkit: authorizations, captures, refunds, card tokens, recurrences, 3DS and boleto. The agent calls those tools directly, with no glue code in between.

What does the server need to run?

A REDE_PV and REDE_TOKEN pair from your Rede contract, which the server turns into a Basic auth header. REDE_ENV chooses sandbox or production.

Similar MCP servers

All MCP servers for Backend and APIs →

From the same set124

mcp-sendgrid Connects SendGrid to an AI agent for transactional and marketing email, templates, contacts, suppression data, and delivery stats. CX Codex +1 ★ 274repo stars mcp-santander Wires Santander Brasil's banking API into your coding agent: Pix payments, boletos, account statement, balance. Built for projects that settle with the bank directly instead of a PSP. CX Codex +1 ★ 274repo stars mcp-safrapay Connects coding agents to Safrapay Brazilian payment infrastructure for Pix, boleto, card operations, and dispute tracking. CX Codex +1 ★ 274repo stars mcp-rinne Connect an AI agent to Rinne for merchants, card and PIX payments, balances, payouts, and access management. CX Codex +1 ★ 274repo stars mcp-rd-station Connects RD Station CRM and marketing automation to your AI assistant. Useful for managing contacts, tracking deals, and triggering conversion webhooks from code. CX Codex +1 ★ 274repo stars mcp-rapyd Connects Rapyd to AI coding clients for payments, payouts, refunds, and managed wallets. Useful for global collection, cash pickup, and marketplace balances. CX Codex +1 ★ 274repo stars mcp-quickbooks Wires QuickBooks Online into your agent with 22 tools for customers, invoices, payments, items, bills and a P&L report. Handy when the books sit in QuickBooks and you would rather stay in the terminal. CX Codex +1 ★ 274repo stars mcp-pomelo Connects your agent to Pomelo card issuing API across Latin America. It creates user identities, issues virtual or physical cards, and tracks transactions. CX Codex +1 ★ 274repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor