Guide for creating Pix charges using the kobana-mcp-charge MCP server. Use when the user wants to create instant Pix payments or billing Pix using MCP tools instead of direct API calls.
Create Pix charges using the kobana-mcp-charge MCP server tools.
The kobana-mcp-charge MCP server must be configured. See MCP Server Setup below.
| Tool | Description |
|---|---|
list_charge_pix_accounts |
List all Pix accounts |
create_charge_pix_account |
Create a new Pix account |
get_charge_pix_account |
Get a specific Pix account |
| Tool | Description |
|---|---|
list_charge_pix |
List all Pix charges with filters |
create_charge_pix |
Create a new Pix charge |
get_charge_pix |
Get a specific Pix charge |
update_charge_pix |
Update a Pix charge |
cancel_charge_pix |
Cancel a Pix charge |
First, list available Pix accounts to get the pix_account_uid:
Use tool: list_charge_pix_accounts
Use the create_charge_pix tool with the required parameters:
Instant Pix (e-commerce, delivery):
{
"amount": 150.00,
"pix_account_uid": "018df180-7208-727b-...",
"expire_at": "2026-01-31T12:30:00-03:00",
"registration_kind": "instant",
"payer": {
"document_number": "111.321.322-09",
"name": "João da Silva"
},
"external_id": "order_12345"
}
Billing Pix (invoices, subscriptions):
{
"amount": 500.00,
"pix_account_uid": "018df180-7208-727b-...",
"expire_at": "2026-02-10T23:59:59-03:00",
"registration_kind": "billing",
"payer": {
"document_number": "12.345.678/0001-90",
"name": "Company LTDA"
},
"fine_type": "percentage",
"fine_percentage": 2.0,
"interest_type": "monthly_percentage_calendar",
"interest_percentage": 1.0,
"revoke_days": 30
}
The initial response may not contain the QR Code (asynchronous registration). To get it:
get_charge_pix with the returned UIDregistration_status: When it's confirmed, the qrcode field will be populatedUse tool: get_charge_pix
Parameters: { "uid": "019c0cbe-f018-717e-..." }
| Parameter | Type | Description |
|---|---|---|
amount |
decimal | Value in BRL (minimum 0.01) |
pix_account_uid |
string | UUID of the Pix Account |
expire_at |
string | Expiration date (ISO 8601) |
| Parameter | Type | Description |
|---|---|---|
payer.document_number |
string | CPF or CNPJ |
payer.name |
string | Full name or company name |
payer.email |
string | Email (optional) |
| Parameter | Type | Description |
|---|---|---|
fine_type |
string | percentage or amount |
fine_percentage |
decimal | Fine percentage |
interest_type |
string | See interest types in reference |
interest_percentage |
decimal | Interest percentage |
revoke_days |
integer | Days active after due date (required with fine/interest) |
| Parameter | Type | Description |
|---|---|---|
external_id |
string | External ID for tracking |
custom_data |
object | Custom metadata (JSON) |
tags |
array | Tags for organization |
message |
string | Message to payer (max 140 chars) |
registration_kind: "instant")registration_kind: "billing")revoke_days set)opened - Open (initial)paid - Paidoverdue - Overduecanceled - Canceledpending - Waiting for registrationconfirmed - Ready (has QR Code)rejected / failed - ErrorAdd to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"kobana-charge": {
"command": "npx",
"args": ["-y", "kobana-mcp-charge"],
"env": {
"KOBANA_ACCESS_TOKEN": "your_access_token"
}
}
}
}
{
"mcpServers": {
"kobana-charge": {
"command": "npx",
"args": ["-y", "kobana-mcp-charge"],
"env": {
"KOBANA_ACCESS_TOKEN": "your_sandbox_token",
"KOBANA_API_URL": "https://api-sandbox.kobana.com.br"
}
}
}
}
Add to .mcp.json in your project root:
{
"mcpServers": {
"kobana-charge": {
"command": "npx",
"args": ["-y", "kobana-mcp-charge"],
"env": {
"KOBANA_ACCESS_TOKEN": "your_access_token"
}
}
}
}
{
"mcpServers": {
"kobana-charge": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://mcp.kobana.com.br/charge/mcp",
"--header",
"Authorization: Bearer your_access_token"
]
}
}
}
list_charge_pix_accounts to get available accountsget_charge_pix to check registration statusSee references/REFERENCE.md for complete MCP server documentation and all available tools.