mcpField
M
mcp-cielo

mcp-cielo

Local
github.com/codesparFinance275Updated 4w ago

About mcp-cielo

mcp-cielo is an MCP server for Cielo, a Brazilian card acquiring provider. It offers 22 tools for card sales, Pix, boleto, recurring payments and payment links. It is aimed at merchants and developers handling online payments in Brazil.

Key features

  1. 0122 MCP tools for cards, Pix and boleto
  2. 02Creation, amount and date updates for recurring payments
  3. 03Support for CardToken and 3DS 2.0 authentication data
  4. 04Anti-fraud analysis and payment link lookup

Use cases

  1. 01Creating, capturing or cancelling sales through an agent
  2. 02Managing recurring payment amounts, next dates and status
  3. 03Generating Pix QR codes or Cielo payment links

MCP support

This project is an MCP server that exposes Cielo payment, recurring payment, Pix, boleto, anti-fraud and payment link operations as tools for MCP clients.

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-cielo": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-cielo"
],
"env": {
"CIELO_API_KEY": "<CIELO_API_KEY>"
}
}
}
}
Run commandnpx -y @codespar/mcp-cielo
Environment variables to set
CIELO_API_KEYSecretAPI key for cielo

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-cielo0.2.2

Tools

22

Saved tool list · updated 2w ago

ParameterTypeRequiredDescription
brandenumYesCard brandVisa | Master | Elo | Amex | Hipercard
amountnumberYesAmount in cents (e.g., 15700 = R$157.00)
holderstringYesCardholder name
capturebooleanNoAuto-capture (true for immediate capture)
cardNumberstringYesCredit card number
customerNamestringYesCustomer name
installmentsnumberNoNumber of installments (1 for full payment)
securityCodestringYesCVV
expirationDatestringYesExpiration date (MM/YYYY)
merchantOrderIdstringYesMerchant order reference

Details

From the project README

@codespar/mcp-cielo

MCP server for Cielo — card acquiring, boleto, and recurrent payments

npm License: MIT

Quick Start

Claude Desktop

Add to ~/.config/claude/claude_desktop_config.json:

{
  "mcpServers": {
    "cielo": {
      "command": "npx",
      "args": ["-y", "@codespar/mcp-cielo"],
      "env": {
        "CIELO_MERCHANT_ID": "your-merchant-id",
        "CIELO_MERCHANT_KEY": "your-merchant-key",
        "CIELO_SANDBOX": "true"
      }
    }
  }
}
Claude Code
claude mcp add cielo -- npx @codespar/mcp-cielo
Cursor / VS Code

Add to .cursor/mcp.json or .vscode/mcp.json:

{
  "servers": {
    "cielo": {
      "command": "npx",
      "args": ["-y", "@codespar/mcp-cielo"],
      "env": {
        "CIELO_MERCHANT_ID": "your-merchant-id",
        "CIELO_MERCHANT_KEY": "your-merchant-key",
        "CIELO_SANDBOX": "true"
      }
    }
  }
}

Tools (22)

ToolPurpose
create_saleCreate a credit/debit card sale in Cielo
get_saleGet sale details by PaymentId
capture_saleCapture a pre-authorized sale
cancel_saleCancel/void a sale (full or partial)
create_recurrentCreate a recurrent (recurring) credit card payment
get_recurrentGet recurrent payment details
tokenize_cardTokenize a credit card for future use
create_boletoCreate a boleto payment in Cielo
create_pixCreate a Pix payment in Cielo (generates QR code)
get_pixGet Pix payment details and QR code by PaymentId
create_debitCreate a debit card sale in Cielo (requires 3DS authentication)
create_ewalletCreate a digital wallet payment (Google Pay, Samsung Pay, Apple Pay)
get_antifraudGet anti-fraud analysis details for a payment
create_sale_with_tokenCreate a credit card sale using a previously stored CardToken (avoids re-entering card data)
update_recurrent_amountUpdate the amount of an existing recurrent payment
update_recurrent_next_dateUpdate the next charge date of an existing recurrent payment
deactivate_recurrentDeactivate (pause) a recurrent payment so it stops charging
reactivate_recurrentReactivate a previously deactivated recurrent payment
create_payment_linkCreate a Cielo Link de Pagamento (shareable checkout URL)
get_payment_linkGet a Cielo Link de Pagamento by its id
zero_authZero-dollar authorization to validate a card without charging (card or CardToken)
create_sale_with_3dsCreate a credit card sale using 3DS 2.0 authentication data (from 3DS flow)

Authentication

Cielo uses MerchantId and MerchantKey headers for authentication.

Sandbox / Testing

Cielo provides a sandbox at apisandbox.cieloecommerce.cielo.com.br. Set CIELO_SANDBOX=true to use it.

Get your credentials
  1. Go to Cielo Developer Portal
  2. Create a developer account
  3. Get your MerchantId and MerchantKey
  4. Set the environment variables

Environment Variables

VariableRequiredDescription
CIELO_MERCHANT_IDYesMerchant ID from Cielo
CIELO_MERCHANT_KEYYesMerchant Key from Cielo
CIELO_SANDBOXNoSet to "true" for sandbox mode

Roadmap

v0.2 (planned)
  • create_pix — Create a Pix payment
  • get_pix — Get Pix payment details
  • create_debit — Create a debit card payment
  • create_ewallet — Create an e-wallet payment (Apple Pay, Google Pay)
  • get_antifraud — Get anti-fraud analysis for a transaction
v0.3 (planned)
  • batch_captures — Capture multiple pre-authorized transactions
  • velocity_rules — Configure velocity/anti-fraud rules

Want to contribute? Open a PR or request a tool.

Links

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.