Asaas

Finance and commerceData and AI

MCP server for Asaas, billing automation, Pix, boleto, credit card, subscriptions.

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

About Asaas

Asaas is a community MCP server from codespar, filed in our directory under finance and commerce and data and ai. MCP server for Asaas, billing automation, Pix, boleto, credit card, subscriptions.

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

Asaas is listed in the official MCP registry as io.github.codespar/mcp-asaas, version 0.2.1.

At a glance

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

How to set up Asaas

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

Asaas compared with similar servers

  • Banco Do Brasil by codespar has fewer GitHub stars than Asaas (278 against 278); both are community servers, and both run locally.
  • Ap2 by codespar has fewer GitHub stars than Asaas (278 against 278); both are community servers, and both run locally.
  • Bcra by codespar has fewer GitHub stars than Asaas (278 against 278); both are community servers, and both run locally.

Before you connect Asaas

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

Marketing use cases for Asaas

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

Small business

  • A small business can ask Asaas which products and customers drive margin, then plan promotions around them.
  • Owners can use Asaas to check refunds, failed payments and churn reasons without opening three dashboards.
  • A small team can use Asaas to clean and enrich a lead list or a spreadsheet in one pass, instead of hours of copy and paste.
  • Asaas 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 Asaas to tie campaigns to orders and revenue, not just clicks.
  • Marketing and finance can use Asaas to check spend against budget each week and move money to what's working.
  • Marketing ops can connect Asaas to enrich and score inbound leads, so sales sees fit and intent before the first call.
  • Start Asaas on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

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

Asaas 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-asaas

MCP server for Asaas, billing automation with Pix, boleto, and credit card payments

Quick Start

Claude Desktop

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

{
  "mcpServers": {
    "asaas": {
      "command": "npx",
      "args": ["-y", "@codespar/mcp-asaas"],
      "env": {
        "ASAAS_API_KEY": "your-key",
        "ASAAS_SANDBOX": "true"
      }
    }
  }
}
Claude Code
claude mcp add asaas -- npx @codespar/mcp-asaas
Cursor / VS Code

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

{
  "servers": {
    "asaas": {
      "command": "npx",
      "args": ["-y", "@codespar/mcp-asaas"],
      "env": {
        "ASAAS_API_KEY": "your-key",
        "ASAAS_SANDBOX": "true"
      }
    }
  }
}

Tools (24)

Tool Purpose
create_payment Create a payment in Asaas (Pix, boleto, or credit card); pass installments (>=2) with billingType: CREDIT_CARD to split into equal monthly installments
get_payment Get payment details by ID
list_payments List payments with optional filters
get_pix_qrcode Get Pix QR code for a payment (returns payload and image)
get_boleto Get boleto digitable line and barcode for a payment
create_customer Create a customer in Asaas
list_customers List customers with optional filters
create_subscription Create a recurring subscription
get_balance Get current account balance
list_subscriptions List subscriptions with optional filters
cancel_subscription Cancel a subscription by ID
get_webhook_events List webhook events (payment confirmations, transfers, etc.)
create_subaccount Create a subaccount for payment splitting
get_installments Get installment details for an existing payment by id, OR preview a hypothetical schedule by passing value + installments without an id
create_transfer Create a bank transfer (Pix out or TED)
create_pix_qrcode Generate a static PIX QR code for receiving payments
list_transfers List transfers with optional filters
create_notification Create a webhook notification configuration
list_notifications List webhook notification configurations
get_customer Get customer details by ID
update_payment Update a pending payment
delete_payment Delete a payment by ID
refund_payment Refund a received payment
get_subscription Get subscription details by ID

Authentication

Asaas uses an API key passed via the access_token header. You can generate your key from the Asaas dashboard.

Sandbox / Testing

Asaas provides a full sandbox environment at sandbox.asaas.com. Set ASAAS_SANDBOX=true to use it.

Get your credentials
  1. Go to Asaas
  2. Create an account or sign up for sandbox at sandbox.asaas.com
  3. Navigate to Integracoes > API and generate your API key
  4. Set the ASAAS_API_KEY environment variable

Environment Variables

Variable Required Description
ASAAS_API_KEY Yes (unless in demo mode) API key from Asaas dashboard
ASAAS_SANDBOX No Set to "true" for sandbox mode
MCP_DEMO No Set to "true" (equivalent to passing --demo on the command line) for stateful demo-mode fixtures, no API key required

Demo mode

Pass the --demo flag (or set MCP_DEMO=true) to make every tool return deterministic fixture responses instead of calling the real Asaas API. Useful for building and testing agents without burning sandbox credentials.

The demo handlers for create_payment and get_installments are stateful: create_payment issues distinct ids per call (pay_demo_001, pay_demo_002, ...) and, when called with billingType: CREDIT_CARD + installments >= 2 + value > 0, records the installment schedule in an in-process ledger. A subsequent get_installments({ id }) against that id echoes the recorded schedule back. get_installments also supports a preview path, pass value + installments without an id and it returns a hypothetical schedule (status: "PREVIEW", preview: true) without creating a payment. Other tools return static fixture payloads.

# Start the server in demo mode (no key required):
npx -y @codespar/mcp-asaas --demo

Roadmap

v0.2 (planned)
  • list_subscriptions, List all recurring subscriptions with filters
  • cancel_subscription, Cancel an active subscription
  • get_webhook_events, List webhook events for debugging integrations
  • create_subaccount, Create a subaccount for marketplace splits
  • get_installments, Get installment details for a payment
v0.3 (planned)
  • create_anticipation, Request anticipation of receivables
  • get_fiscal_info, Get fiscal/tax information for payments
  • batch_payments, Create multiple payments in a single request

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 Asaas

What is the Asaas MCP server?

MCP server for Asaas, billing automation, Pix, boleto, credit card, subscriptions. Asaas 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 Asaas MCP server?

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

Does Asaas need an API key?

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

Is Asaas an official MCP server?

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

What license is Asaas under?

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