Skip to main content
M

Malga

@codespar/mcp-malga Β· v0.1.0

πŸ‡§πŸ‡· BrazilPaymentsAuth Β· API Keybeta24 tools3 env vars

Brazilian payments orchestrator: one API across Cielo, Rede, Stone and Adyen, with card, Pix and boleto. Your agent creates charges, tokenizes cards, and routes them between acquirers.

Get started Β· freeView docs

MIT Β· runs locally with your own credentials

Limitations

  • The server does not start without its environment variables set, not even to list its tools.
Package
@codespar/mcp-malga
Version
0.1.0
npm dist-tag
latest
Category
Payments
Auth
API Key
Country
πŸ‡§πŸ‡· Brazil
License
MIT
Transport
stdio

Quickstart

Install, set the credentials, make the first call.

Pick your client. The server runs locally over stdio, with your own credentials.

Add the server to your clientOne config entry. No build step, no SDK required.
Set the environment variables3 variables read by this server's code, listed below.
Restart and make the first callThe agent can call any of the 24 tools. Try create_charge first.
terminal
# Claude Code claude mcp add malga -e MALGA_API_KEY=… -e MALGA_CLIENT_ID=… -e MALGA_SANDBOX=… -- npx -y @codespar/mcp-malga@0.1.0 # then: /mcp to confirm the server is connected
Environment variables3 variables
MALGA_API_KEYSecret key sent as X-Api-Key header on every request.requiredsecret
MALGA_CLIENT_IDTenant identifier sent as X-Client-Id header on every request.required
MALGA_SANDBOXDefaults to sandbox (https://sandbox-api.malga.io). Set to "false" for production (https://api.malga.io).optional

Names read from the package code (@codespar/mcp-malga@0.1.0). Descriptions and flags come from its manifest. Self-hosted, you hold the credentials.

First call democreate_charge

"Create a new charge in Malga. Supports credit card"

tools/callcreate_chargeresult returned

Tools

What your agent can call.

24 tools, as the package's tools/list returns them.

create_charge

Create a new charge in Malga. Supports credit card (one-shot or saved), token, Pix, and boleto. The `capture` field defaults to `false` in the API β€” pass `true` for automatic capture. SANDBOX antifraud β€” the last digit of the document in fraudAnalysis determines the status: 0 = Pending | 1 = Approved | 2 = Failed | other = Rejected. Use get_sandbox_guide for all simulation rules.

get_charge

Get charge details by ID.

list_charges

List charges with optional filters.

capture_charge

Capture a pre-authorized charge (created with capture: false). If amount is omitted, uses the full charge amount.

refund_charge

Void/refund an authorized or captured charge. If amount is omitted, uses the full charge amount.

create_customer

Create a new customer in Malga. Email and document are unique per account.

get_customer

Get customer details by ID.

list_customers

List customers with optional pagination.

create_card

Save a card linked to a customer for reuse in future charges. Pass `tokenId` (from create_token) or raw card data β€” in the latter case tokenization is performed automatically before saving.

get_card

Get saved card details by ID.

list_customer_cards

List all saved cards for a customer.

get_merchant

Get merchant (sub-account) details by ID.

Names and descriptions come from the package's tools/list (@codespar/mcp-malga@0.1.0). A kind (read, write, delete) is shown only when the package annotates its tools or each tool was verified one by one; neither exists for this server yet.

Compatibility

MCP is a protocol. Any client that speaks it can mount this server.

The CodeSpar runtime does not route this server. Mount it in your client over stdio.

Protocol

Any MCP client

stdio

Questions

Before you install.

How do I install the Malga MCP server?

Run npx -y @codespar/mcp-malga@0.1.0 and add the config block above to your MCP client: Claude Code, Cursor, Claude Desktop, VS Code, or any MCP-compatible client. No build step, no SDK required.

What can my agent do with Malga?

Malga exposes 24 tools for payments. Your agent calls them directly; the full list is above.

How does Malga authenticate, and how are credentials stored?

Malga uses API Key. Self-hosted, you hold the credentials: the server reads them from its environment variables.

How does Malga handle upstream API changes?

Every server is versioned independently on npm. The command on this page pins 0.1.0, the version whose tools are listed here; your agent keeps running it until you change the version.

Is Malga open source? How do I report a bug?

Yes. Malga is MIT-licensed and published on npm as @codespar/mcp-malga, source on GitHub (link in the Details panel). Report issues on the package repository; security issues go to security@codespar.dev, and we respond within 24 hours.

Start in seconds.

Add the config above, set the variables, and your agent calls the tools.

Start in seconds demo
Add the server to your client with the config above.
Set the environment variables listed above.
Ask your agent for the first call.
Malga β€” MCP server Β· 24 tools | CodeSpar