🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@codespar/mcp-cielo

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codespar/mcp-cielo

MCP server for Cielo — credit card, debit, boleto, recurrent payments

latest
npmnpm
Version
0.2.2
Version published
Maintainers
2
Created
Source

@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

  • Go to Cielo Developer Portal
  • Create a developer account
  • Get your MerchantId and MerchantKey
  • 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.

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

Keywords

mcp

FAQs

Package last updated on 22 Jun 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts