mcpField
M
mcp-stark-bank

mcp-stark-bank

Local
github.com/codesparFinance275Updated 4w ago

About mcp-stark-bank

mcp-stark-bank is an MCP server for Stark Bank, a digital bank, providing transfers, boletos, invoices, Pix and balance queries. It is aimed at developers and finance teams working with Brazilian banking operations, and it supports a sandbox mode for testing.

Key features

  1. 01Create and query Pix and TED transfers
  2. 02Issue and manage boleto receivables
  3. 03Generate invoices with Pix QR codes
  4. 04Manage Pix keys and incoming deposits
  5. 05Pay BR Codes, taxes and utility bills
  6. 06List workspaces for multi-tenant subaccounts

Use cases

  1. 01Test AI-assisted payment flows in the sandbox environment
  2. 02Issue boletos and track their payment status
  3. 03Check account balance and incoming deposits

MCP support

This project is an MCP server that exposes 27 tools to MCP clients for transfers, receivables, Pix and account operations through the Stark Bank API.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"codespar-mcp-stark-bank": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-stark-bank"
],
"env": {
"STARK_BANK_ACCESS_TOKEN": "<STARK_BANK_ACCESS_TOKEN>"
}
}
}
}
Run commandnpx -y @codespar/mcp-stark-bank
Environment variables to set
STARK_BANK_ACCESS_TOKENSecretAPI key for stark-bank

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@codespar/mcp-stark-bank0.2.2

Tools

27

Saved tool list · updated 2w ago

ParameterTypeRequiredDescription
namestringYesRecipient name
tagsarrayNoTags for organization
taxIdstringYesRecipient CPF or CNPJ
amountnumberYesAmount in cents (e.g. 1000 = R$10.00)
bankCodestringYesBank code (e.g. '20018183' for Stark Bank)
branchCodestringYesBranch code
accountTypeenumNoAccount typechecking | savings | salary | payment
accountNumberstringYesAccount number with digit

Details

From the project README

@codespar/mcp-stark-bank

MCP server for Stark Bank — digital banking with transfers, boletos, invoices, and Pix

npm License: MIT

Quick Start

Claude Desktop

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

{
  "mcpServers": {
    "stark-bank": {
      "command": "npx",
      "args": ["-y", "@codespar/mcp-stark-bank"],
      "env": {
        "STARK_BANK_ACCESS_TOKEN": "your-token",
        "STARK_BANK_SANDBOX": "true"
      }
    }
  }
}
Claude Code
claude mcp add stark-bank -- npx @codespar/mcp-stark-bank
Cursor / VS Code

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

{
  "servers": {
    "stark-bank": {
      "command": "npx",
      "args": ["-y", "@codespar/mcp-stark-bank"],
      "env": {
        "STARK_BANK_ACCESS_TOKEN": "your-token",
        "STARK_BANK_SANDBOX": "true"
      }
    }
  }
}

Tools (27)

ToolPurpose
create_transferCreate a bank transfer (Pix or TED)
get_transferGet transfer details by ID
list_transfersList transfers with optional filters
create_boletoCreate a boleto payment
get_balanceGet current account balance
create_invoiceCreate an invoice (generates Pix QR code)
get_invoiceGet invoice details by ID
list_invoicesList invoices with optional filters
create_pix_requestCreate a Pix payment request
get_webhook_eventsGet webhook events (payment confirmations, transfers, etc.)
create_payment_requestCreate a payment request for approval workflow
get_payment_requestGet payment request details by ID
list_payment_requestsList payment requests with optional filters
create_brcode_paymentPay a BR Code (Pix QR code / copia-e-cola)
get_depositGet deposit details by ID (incoming Pix or TED)
create_boleto_issueIssue a boleto receivable (generates barcode/digitable line to collect payment)
get_boletoGet an issued boleto by ID
list_boletosList issued boletos with optional filters
delete_boletoCancel an issued boleto (only allowed while unpaid / in 'created' or 'registered' state)
create_pix_keyRegister a Pix key (CPF/CNPJ, email, phone, or EVP/random)
get_pix_keyGet Pix key details by ID
list_pix_keysList registered Pix keys with optional filters
delete_pix_keyCancel / deregister a Pix key
list_depositsList deposits (incoming Pix or TED) with optional filters
create_utility_paymentPay a utility bill (e.g.
create_tax_paymentPay a tax (DARF, GPS, GRU, etc.) by barcode / digitable line
list_workspacesList workspaces the organization has access to (multi-tenant subaccounts)

Authentication

Stark Bank uses a Bearer token for API authentication.

Sandbox / Testing

Stark Bank provides a sandbox at sandbox.api.starkbank.com. Set STARK_BANK_SANDBOX=true to use it.

Get your credentials
  1. Go to Stark Bank
  2. Create an account
  3. Generate an API access token from the dashboard
  4. Set the environment variables

Environment Variables

VariableRequiredDescription
STARK_BANK_ACCESS_TOKENYesAPI access token
STARK_BANK_SANDBOXNoSet to "true" for sandbox mode

Roadmap

v0.2 (planned)
  • create_payment_request — Create a payment request
  • get_payment_request — Get payment request details
  • list_payment_requests — List payment requests with filters
  • create_brcode_payment — Create a BR Code (Pix) payment
  • get_deposit — Get deposit details
v0.3 (planned)
  • create_workspace — Create a new workspace
  • tax_payment — Create a tax payment (DAS, DARF, etc.)
  • utility_payment — Create a utility payment (boleto, bills)

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

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.