npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

kobana-mcp-payment

v1.0.0

Published

MCP Server for Kobana Payment API v2 (Bank billets, Pix, DARF, Taxes, Utilities)

Downloads

106

Readme

Kobana MCP Payment Server

MCP (Model Context Protocol) server for the Kobana Payment API v2. This server enables AI assistants to interact with Kobana's payment services for bank billets, Pix, DARF, taxes, and utility bills.

Features

  • Bank Billet Payments: Pay Brazilian bank billets (boletos)
  • Pix Payments: Pay via Brazilian instant payment system (Pix)
  • DARF Payments: Pay federal tax documents (DARF)
  • Tax Payments: Pay various Brazilian taxes (ITBI, ICMS, ISS, IPTU, FGTS, DARE)
  • Utility Payments: Pay utility bills (electricity, water, gas, phone)
  • Batch Operations: Create and manage payment batches for approval workflow

Installation

npm install kobana-mcp-payment

Configuration

Set the following environment variables:

export KOBANA_ACCESS_TOKEN="your-access-token"
export KOBANA_API_URL="https://api.kobana.com.br"  # Optional, defaults to production

Usage

With Claude Desktop

Add to your Claude Desktop configuration file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "kobana-payment": {
      "command": "npx",
      "args": ["kobana-mcp-payment"],
      "env": {
        "KOBANA_ACCESS_TOKEN": "your-access-token"
      }
    }
  }
}

Standalone (stdio)

npx kobana-mcp-payment

HTTP Server Mode

npx kobana-mcp-payment-http

The HTTP server runs on port 3001 by default (configurable via PORT environment variable).

Available Tools

Bank Billet Payments

| Tool | Description | |------|-------------| | list_payment_bank_billets | List all bank billet payments | | create_payment_bank_billet | Create a new bank billet payment | | get_payment_bank_billet | Get details of a bank billet payment |

Pix Payments

| Tool | Description | |------|-------------| | list_payment_pix | List all Pix payments | | create_payment_pix | Create a new Pix payment | | get_payment_pix | Get details of a Pix payment |

DARF Payments

| Tool | Description | |------|-------------| | list_payment_darfs | List all DARF payments | | create_payment_darf | Create a new DARF payment | | get_payment_darf | Get details of a DARF payment |

Tax Payments

| Tool | Description | |------|-------------| | list_payment_taxes | List all tax payments | | create_payment_tax | Create a new tax payment | | get_payment_tax | Get details of a tax payment |

Utility Payments

| Tool | Description | |------|-------------| | list_payment_utilities | List all utility payments | | create_payment_utility | Create a new utility payment | | get_payment_utility | Get details of a utility payment |

Batch Operations

| Tool | Description | |------|-------------| | list_payment_batches | List all payment batches | | get_payment_batch | Get details of a payment batch | | approve_payment_batch | Approve a payment batch | | reprove_payment_batch | Reprove (reject) a payment batch | | create_payment_bank_billet_batch | Create a batch of bank billet payments | | create_payment_pix_batch | Create a batch of Pix payments | | create_payment_darf_batch | Create a batch of DARF payments | | create_payment_tax_batch | Create a batch of tax payments | | create_payment_utility_batch | Create a batch of utility payments |

Examples

Create a Bank Billet Payment

{
  "amount": 150.50,
  "financial_account_uid": "018df180-7208-727b-a10a-ea545e4a75a8",
  "code": "23793.38128 60000.000003 00000.000400 1 84340000010000",
  "scheduled_to": "2024-12-15"
}

Create a Pix Payment

{
  "financial_account_uid": "018df180-7208-727b-a10a-ea545e4a75a8",
  "qrcode": "00020126580014br.gov.bcb.pix0136123e4567-e12b-12d1-a456-426614174000",
  "amount": 100.00
}

Create a Tax Payment

{
  "amount": 250.00,
  "financial_account_uid": "018df180-7208-727b-a10a-ea545e4a75a8",
  "code": "85820000000250000000001234567890123456789012",
  "kind": "iptu"
}

Create a Payment Batch

{
  "financial_account_uid": "018df180-7208-727b-a10a-ea545e4a75a8",
  "payments": [
    {
      "amount": 100.00,
      "code": "23793.38128 60000.000003 00000.000400 1 84340000010000"
    },
    {
      "amount": 200.00,
      "code": "23793.38128 60000.000003 00000.000401 2 84340000020000"
    }
  ]
}

Payment Status

Payments can have the following statuses:

  • pending: Payment is pending
  • rejected: Payment was rejected
  • approved: Payment was approved
  • reproved: Payment was reproved
  • failed: Payment failed
  • confirmed: Payment was confirmed
  • canceled: Payment was canceled
  • awaiting_approval: Payment is waiting for approval
  • scheduled: Payment is scheduled
  • awaiting_scheduled_date: Payment is waiting for scheduled date
  • overdue: Payment is overdue

Batch Status

Batches can have the following statuses:

  • pending: Batch is pending
  • awaiting_approval: Batch is waiting for approval
  • confirmed: Batch was confirmed
  • approved: Batch was approved
  • reproved: Batch was reproved
  • rejected: Batch was rejected
  • scheduled: Batch is scheduled

HTTP Endpoints

When running in HTTP mode:

| Endpoint | Method | Description | |----------|--------|-------------| | / | GET | Server information | | /health | GET | Health check | | /sse | GET | SSE connection for MCP | | /messages | POST | Send messages to MCP |

Development

# Install dependencies
npm install

# Build
npm run build

# Run in development mode
npm run dev

# Start stdio server
npm start

# Start HTTP server
npm run start:http

License

MIT

Support

For issues and feature requests, please visit the GitHub repository.