Cielo

Finance and commerce

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

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

About Cielo

Cielo is a community MCP server from codespar, filed in our directory under finance and commerce. MCP server for Cielo, credit card, debit, boleto, recurrent payments.

Cielo runs on your own machine: your AI app starts it with the command npx -y @codespar/mcp-cielo@0.2.2 and talks to it over standard input and output. It needs CIELO_API_KEY set before Cielo starts.

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

At a glance

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

How to set up Cielo

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

Cielo compared with similar servers

  • Circle by codespar has fewer GitHub stars than Cielo (278 against 278); both are community servers, and both run locally.
  • Chargebee by codespar has fewer GitHub stars than Cielo (278 against 278); both are community servers, and both run locally.
  • Clearsale by codespar has fewer GitHub stars than Cielo (278 against 278); both are community servers, and both run locally.

Before you connect Cielo

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

Marketing use cases for Cielo

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

Small business

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

Enterprise

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

Cielo 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-cielo

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

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)

Tool Purpose
create_sale Create a credit/debit card sale in Cielo
get_sale Get sale details by PaymentId
capture_sale Capture a pre-authorized sale
cancel_sale Cancel/void a sale (full or partial)
create_recurrent Create a recurrent (recurring) credit card payment
get_recurrent Get recurrent payment details
tokenize_card Tokenize a credit card for future use
create_boleto Create a boleto payment in Cielo
create_pix Create a Pix payment in Cielo (generates QR code)
get_pix Get Pix payment details and QR code by PaymentId
create_debit Create a debit card sale in Cielo (requires 3DS authentication)
create_ewallet Create a digital wallet payment (Google Pay, Samsung Pay, Apple Pay)
get_antifraud Get anti-fraud analysis details for a payment
create_sale_with_token Create a credit card sale using a previously stored CardToken (avoids re-entering card data)
update_recurrent_amount Update the amount of an existing recurrent payment
update_recurrent_next_date Update the next charge date of an existing recurrent payment
deactivate_recurrent Deactivate (pause) a recurrent payment so it stops charging
reactivate_recurrent Reactivate a previously deactivated recurrent payment
create_payment_link Create a Cielo Link de Pagamento (shareable checkout URL)
get_payment_link Get a Cielo Link de Pagamento by its id
zero_auth Zero-dollar authorization to validate a card without charging (card or CardToken)
create_sale_with_3ds Create 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

Variable Required Description
CIELO_MERCHANT_ID Yes Merchant ID from Cielo
CIELO_MERCHANT_KEY Yes Merchant Key from Cielo
CIELO_SANDBOX No Set 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

Questions about Cielo

What is the Cielo MCP server?

MCP server for Cielo, credit card, debit, boleto, recurrent payments. Cielo 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 Cielo MCP server?

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

Does Cielo need an API key?

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

Is Cielo an official MCP server?

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

What license is Cielo under?

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