Skip to main content
CI

Cielo Acquirer

v0.2.1API Key

Brazil's largest card acquirer — authorization, capture, boleto, and recurrent payments on Cielo's rails. For enterprise orchestration, tokenization vault, and marketplace onboarding, use Braspag (Cielo's orchestration arm) separately.

22 tools1 env vars🇧🇷 Brazilstable on npm

What your agent can do

Cielo Acquirer gives your agent 22 tools it calls directly — pick the ones it needs, in Claude, Cursor, or any MCP client.

  • create_saleCreate a credit/debit card sale in Cielo
  • get_saleGet sale details by PaymentId
  • capture_saleCapture a pre-authorized sale
Example call
// Your agent calls a tool directly — no glue code.
// CodeSpar's managed tier handles OAuth2, token rotation and rate limits.
const result = await session.call("create_sale", { /* ... */ });

Install

terminal
$ npm install @codespar/mcp-cielo

Quickstart

Add this entry to your claude_desktop_config.json (or any MCP-compatible client config).

claude_desktop_config.json
{
  "mcpServers": {
    "cielo": {
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-cielo"
      ],
      "env": {
        "CIELO_API_KEY": "<your_cielo_api_key>"
      }
    }
  }
}

After restart, your agent can call any of the 22 tools below — try create_sale first.

Environment variables · 1

Required to authenticate the server. Stored encrypted when using CodeSpar managed hosting.

CIELO_API_KEY
requiredsecret

API key for cielo

Available tools · 22

Each tool is independent — your agent loads only what it needs to reduce context and response time.

WRITEcreate_sale
Create a credit/debit card sale in Cielo
READget_sale
Get sale details by PaymentId
WRITEcapture_sale
Capture a pre-authorized sale
DELETEcancel_sale
Cancel/void a sale (full or partial)
WRITEcreate_recurrent
Create a recurrent (recurring) credit card payment
READget_recurrent
Get recurrent payment details
WRITEtokenize_card
Tokenize a credit card for future use
WRITEcreate_boleto
Create a boleto payment in Cielo

Compatible frameworks

MCP is a protocol — any framework that speaks it can mount this server.

Claude Agent SDKAnthropic
OpenAI AgentsOpenAI
Vercel AI SDKVercel
LangChainLangChain
LlamaIndexLlamaIndex
CrewAICrewAI
MastraMastra
Any MCP clientProtocol

Frequently asked questions

Run `npx -y @codespar/mcp-cielo` and add the config block above to your MCP client — Claude, Cursor, VS Code, or any MCP-compatible client. No build step, no SDK required. Prefer hosted? CodeSpar's managed tier runs it for you with auth handled.
Cielo Acquirer — MCP server · 22 tools | CodeSpar