Celcoin

Finance and commerce

MCP server for Celcoin, Pix, boleto, transfers, bill payments, top-ups.

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

About Celcoin

Celcoin is a community MCP server from codespar, filed in our directory under finance and commerce. MCP server for Celcoin, Pix, boleto, transfers, bill payments, top-ups.

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

Celcoin is listed in the official MCP registry as io.github.codespar/mcp-celcoin, version 0.2.4.

At a glance

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

How to set up Celcoin

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

Celcoin compared with similar servers

  • Certta by codespar has fewer GitHub stars than Celcoin (278 against 278); both are community servers, and both run locally.
  • Caixa by codespar has fewer GitHub stars than Celcoin (278 against 278); both are community servers, and both run locally.
  • Chargebee by codespar has fewer GitHub stars than Celcoin (278 against 278); both are community servers, and both run locally.

Before you connect Celcoin

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

Marketing use cases for Celcoin

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

Small business

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

Enterprise

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

Celcoin 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-celcoin

MCP server for Celcoin, BaaS infrastructure for Pix, boleto, transfers, and top-ups

Quick Start

Claude Desktop

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

{
  "mcpServers": {
    "celcoin": {
      "command": "npx",
      "args": ["-y", "@codespar/mcp-celcoin"],
      "env": {
        "CELCOIN_CLIENT_ID": "your-client-id",
        "CELCOIN_CLIENT_SECRET": "your-client-secret",
        "CELCOIN_SANDBOX": "true"
      }
    }
  }
}
Claude Code
claude mcp add celcoin -- npx @codespar/mcp-celcoin
Cursor / VS Code

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

{
  "servers": {
    "celcoin": {
      "command": "npx",
      "args": ["-y", "@codespar/mcp-celcoin"],
      "env": {
        "CELCOIN_CLIENT_ID": "your-client-id",
        "CELCOIN_CLIENT_SECRET": "your-client-secret",
        "CELCOIN_SANDBOX": "true"
      }
    }
  }
}

Tools (18)

Tool Purpose
create_pix_payment Create a Pix payment via Celcoin
get_pix_payment Get Pix payment details by transaction ID
create_pix_cob Create a Pix immediate charge (cob), generates QR code / copia-e-cola for payer
get_pix_cob Get a Pix immediate charge by transactionId or txid
create_pix_cobv Create a Pix due charge (cobv), boleto-like Pix with due date
lookup_pix_dict Lookup a Pix DICT key, resolves a Pix key to account holder + bank info
create_pix_devolution Create a Pix devolução (refund), refund a received Pix transaction
cancel_boleto Cancel a boleto issued via the bill-issuance product by id
read_barcode Authorize (consult) a boleto / concessionária barcode before paying, returns transactionId, amount, totalUpdated, dueDate
pay_bill Confirm payment of a previously authorized bill, pass the read_barcode transactionId as transactionIdAuthorize
get_statement Get account statement (extrato) for a date range
list_topup_providers List telecom top-up providers (operadoras) available for recargas
create_boleto Issue a boleto via the bill-issuance product
get_boleto Get an issued boleto's details by id
create_transfer Create a bank transfer (TED/DOC) via Celcoin
get_balance Get account balance at Celcoin
list_banks List available banks in Brazil (ISPB codes)
create_topup Create a mobile/service top-up (recarga) via Celcoin

Authentication

Celcoin uses OAuth2 client credentials. The server automatically manages token refresh.

Sandbox / Testing

Celcoin provides a sandbox at sandbox.openfinance.celcoin.dev. Set CELCOIN_SANDBOX=true to use it.

Without CELCOIN_SANDBOX, the server calls Celcoin production at api.openfinance.celcoin.com.br (up to 0.2.3 the default was api-sec.celcoin.com.br, a host that does not exist). Celcoin accepts production calls only over mTLS, with a certificate Celcoin issues, and only from IPs you registered with them in advance (Celcoin docs). From any other IP the token call answers 401 "O seu IP ou certificado digital nao foi reconhecido". This server does not present a client certificate, so in production point CELCOIN_BASE_URL at a proxy that holds the certificate and terminates the mTLS; called directly, production answers that 401.

Get your credentials
  1. Go to Celcoin Documentation
  2. Create a developer account
  3. Register an application to get OAuth2 credentials
  4. Set the environment variables

Environment Variables

Variable Required Description
CELCOIN_CLIENT_ID Yes OAuth2 client ID
CELCOIN_CLIENT_SECRET Yes OAuth2 client secret
CELCOIN_SANDBOX No Set to "true" for sandbox mode
CELCOIN_BASE_URL No Override the API host. Defaults: https://api.openfinance.celcoin.com.br (production), https://sandbox.openfinance.celcoin.dev (sandbox)

Roadmap

v0.2 (planned)
  • get_pix_key, Get Pix key details (DICT lookup)
  • create_bill_payment, Create a bill/utility payment
  • get_bill_payment, Get bill payment details
  • create_scheduled_transfer, Create a scheduled transfer
  • list_providers, List available service providers
v0.3 (planned)
  • batch_topups, Process multiple mobile top-ups
  • detailed_reports, Generate detailed transaction reports

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 Celcoin

What is the Celcoin MCP server?

MCP server for Celcoin, Pix, boleto, transfers, bill payments, top-ups. Celcoin 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 Celcoin MCP server?

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

Does Celcoin need an API key?

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

Is Celcoin an official MCP server?

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

What license is Celcoin under?

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