Guide for paying Pix charges using the kobana-mcp-payment MCP server. Use when the user wants to pay Pix invoices, decode QR codes, or manage Pix payments using MCP tools instead of direct API calls.
Pay Pix charges and decode QR codes using the kobana-mcp-payment MCP server tools.
The kobana-mcp-payment MCP server must be configured. See MCP Server Setup below.
| Tool | Description |
|---|---|
list_payment_pix |
List all Pix payments |
create_payment_pix |
Create a new Pix payment |
get_payment_pix |
Get a specific Pix payment |
cancel_payment_pix |
Cancel a pending Pix payment |
| Tool | Description |
|---|---|
decode_pix_emv |
Decode a Pix EMV (QR code/copy-paste) |
| Tool | Description |
|---|---|
list_payment_batches |
List all payment batches |
create_payment_pix_batch |
Create a Pix payment batch |
get_payment_batch |
Get a specific batch |
approve_payment_batch |
Approve a batch |
reprove_payment_batch |
Reprove (cancel) a batch |
| Tool | Description |
|---|---|
list_financial_accounts |
List all financial accounts |
get_financial_account |
Get a specific financial account |
First, list available financial accounts to get the source financial_account_uid:
Use tool: list_financial_accounts
Before paying, decode the QR code to validate the charge data:
Use tool: decode_pix_emv
Parameters: {
"emv": "00020126580014br.gov.bcb.pix0136123e4567-e89b-12d3-a456-426614174000..."
}
This returns the charge details: amount, merchant name, key, description, etc.
Use the create_payment_pix tool with the required parameters:
Payment by EMV (Dynamic Pix):
{
"financial_account_uid": "018df180-7208-727b-...",
"emv": "00020126580014br.gov.bcb.pix0136123e4567-e89b-12d3-a456-426614174000...",
"amount": 150.00,
"external_id": "payment_001"
}
Payment by Pix Key (Static Pix):
{
"financial_account_uid": "018df180-7208-727b-...",
"type": "key",
"key_type": "email",
"key": "recipient@example.com",
"amount": 150.00,
"beneficiary": {
"document_number": "12.345.678/0001-90",
"name": "Company LTDA"
},
"external_id": "payment_002"
}
After creating payments, create a batch to send them to the bank:
Use tool: create_payment_pix_batch
Parameters: {
"financial_account_uid": "018df180-7208-727b-...",
"payments": [
{ "uid": "019c0cbe-f018-717e-..." }
]
}
Or create new payments directly in the batch:
{
"financial_account_uid": "018df180-7208-727b-...",
"payments": [
{
"emv": "00020126580014br.gov.bcb.pix...",
"amount": 150.00
}
]
}
Use tool: get_payment_batch
Parameters: { "uid": "019c0cbe-f018-717e-..." }
If the batch is awaiting_approval, approve it:
Use tool: approve_payment_batch
Parameters: { "uid": "019c0cbe-f018-717e-..." }
| Parameter | Type | Description |
|---|---|---|
financial_account_uid |
string | UUID of source financial account |
amount |
decimal | Payment amount in BRL |
| Parameter | Type | Description |
|---|---|---|
emv |
string | Pix EMV string (from QR code) |
| Parameter | Type | Description |
|---|---|---|
type |
string | Must be key |
key_type |
string | cpf, cnpj, email, phone, random |
key |
string | The Pix key value |
| Parameter | Type | Description |
|---|---|---|
beneficiary.document_number |
string | CPF or CNPJ |
beneficiary.name |
string | Full name or company name |
| Parameter | Type | Description |
|---|---|---|
scheduled_to |
date | Schedule date (YYYY-MM-DD) |
description |
string | Payment description |
external_id |
string | External ID for tracking |
custom_data |
object | Custom metadata (JSON) |
tags |
array | Tags for organization |
pending - Pending (initial)awaiting_approval - Awaiting batch approvalapproved - Approved, processingconfirmed - Confirmed by bankrejected - Rejected by bankreproved - Reproved (canceled)pending - Waiting for registrationrequested - Sent to bankconfirmed - Confirmed at bankrejected / failed - ErrorAdd to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"kobana-payment": {
"command": "npx",
"args": ["-y", "kobana-mcp-payment"],
"env": {
"KOBANA_ACCESS_TOKEN": "your_access_token"
}
}
}
}
{
"mcpServers": {
"kobana-payment": {
"command": "npx",
"args": ["-y", "kobana-mcp-payment"],
"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-payment": {
"command": "npx",
"args": ["-y", "kobana-mcp-payment"],
"env": {
"KOBANA_ACCESS_TOKEN": "your_access_token"
}
}
}
}
{
"mcpServers": {
"kobana-payment": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://mcp.kobana.com.br/payment/mcp",
"--header",
"Authorization: Bearer your_access_token"
]
}
}
}
list_financial_accounts to get available accountsdecode_pix_emv to validate the charge dataget_payment_batch or use webhooksSee references/REFERENCE.md for complete MCP server documentation and all available tools.