mcpField
M
mcp-inter-bank

mcp-inter-bank

Local
github.com/codesparFinance275Updated 5w ago

About mcp-inter-bank

@codespar/mcp-inter-bank is an MCP server for Banco Inter, a Brazilian digital bank. It is aimed at applications that handle boletos, Pix, transfers and account reconciliation through the bank's API. Access uses the OAuth2 client credentials flow with scoped permissions per API.

Key features

  1. 01Create, read, list and cancel boletos
  2. 02Pix immediate and due charges with returns
  3. 03Balance, statement and PDF statement retrieval
  4. 04TED and internal transfer creation
  5. 05Webhook registration for boleto and Pix events

Use cases

  1. 01Generating boleto and Pix payment charges for customers
  2. 02Checking account balance and exporting statements
  3. 03Receiving Pix and boleto status notifications through webhooks

MCP support

The project runs as an MCP server that exposes 22 banking tools to MCP clients, covering charges, transfers, statements and webhooks.

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-inter-bank": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-inter-bank"
],
"env": {
"INTER_CLIENT_ID": "<INTER_CLIENT_ID>"
}
}
}
}
Run commandnpx -y @codespar/mcp-inter-bank
Environment variables to set
INTER_CLIENT_IDSecretAPI key/token for inter-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-inter-bank0.2.2

Tools

22

Saved tool list · updated 2w ago

ParameterTypeRequiredDescription
amountnumberYesBoleto amount in BRL
due_datestringYesDue date (YYYY-MM-DD)
payer_zipstringNoPayer ZIP code (CEP)
payer_citystringNoPayer city
payer_namestringYesPayer full name
descriptionstringNoBoleto description
payer_statestringNoPayer state (UF)
payer_addressstringNoPayer street address
payer_cpf_cnpjstringYesPayer CPF or CNPJ

Details

From the project README

@codespar/mcp-inter-bank

MCP server for Banco Inter, a Brazilian digital bank with a full developer API for boletos, PIX, transfers, and banking

npm License: MIT

Quick Start

# Set your credentials
export INTER_CLIENT_ID="your-client-id"
export INTER_CLIENT_SECRET="your-client-secret"

# Run via stdio
npx -y @codespar/mcp-inter-bank

# Run via HTTP
MCP_HTTP=true MCP_PORT=3000 npx -y @codespar/mcp-inter-bank

Environment Variables

VariableRequiredDescription
INTER_CLIENT_IDYesOAuth2 client ID
INTER_CLIENT_SECRETYesOAuth2 client secret
MCP_HTTPNoSet to "true" to enable HTTP transport
MCP_PORTNoHTTP port (default: 3000)

Tools (22)

ToolPurpose
create_boletoCreate a boleto bancario (bank slip)
get_boletoGet boleto details by ID
list_boletosList boletos with filters
cancel_boletoCancel (write-off) a boleto
get_boleto_pdfDownload boleto PDF (returns base64 payload)
create_pixCreate a PIX payment
get_pixGet PIX transaction details by ID
list_pixList PIX transactions
create_pix_cobCreate PIX immediate charge (cob) with txid — returns BR Code/copia-e-cola
get_pix_cobRetrieve PIX immediate charge by txid
list_pix_cobList PIX immediate charges within a time range (with optional end_to_end_id filters)
create_pix_cobvCreate PIX due charge (cobv) with dueDate — boleto-like PIX with expiration date
get_pix_cobvRetrieve PIX due charge (cobv) by txid
create_pix_devolucaoCreate PIX return (devolução) for a received transaction
list_pix_keysList PIX keys (chaves) registered to the Inter account
get_balanceGet account balance
get_statementGet account statement for a date range
get_statement_enrichedGet enriched statement with detailed transaction info (counterparty, category, Pix details)
get_statement_pdfDownload account statement as PDF (base64 payload) for a date range
create_transferCreate a TED or internal transfer
get_webhookGet configured webhooks
create_webhookRegister a webhook for notifications

Auth

Uses OAuth2 client credentials flow. The token endpoint is /oauth/v2/token with scoped permissions per API:

  • Boletos: boleto-cobranca.read, boleto-cobranca.write
  • PIX: pix.read, pix.write
  • Banking: extrato.read, pagamento-ted.write
  • Webhooks: webhook-boleto.read, webhook-boleto.write, webhook-pix.read, webhook-pix.write

Register your application at the Banco Inter Developer Portal.

API Reference

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.

Authentication

Set these environment variables before launching the server:

  • INTER_CLIENT_ID (required, secret) — API key/token for inter-bank

Issue credentials at the provider's developer portal: https://developers.inter.co.

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.