MCP Server for Kobana Data API v2 (Bank Billet Queries)
npm install kobana-mcp-dataMCP (Model Context Protocol) server for the Kobana Data API v2. This server provides tools for querying bank billet (boleto) information using the typeable line (linha digitavel) or barcode.
- Query bank billet information by typeable line or barcode
- Get detailed information including amounts, expiration date, beneficiary, payer, fine, interest, and discount
- List all bank billet queries with filtering and pagination
- Support for both stdio and HTTP transports
- Bearer token authentication
``bash`
npm install kobana-mcp-data
Or install globally:
`bash`
npm install -g kobana-mcp-data
Set the following environment variables:
- KOBANA_ACCESS_TOKEN (required): Your Kobana API access tokenKOBANA_API_URL
- (optional): API base URL (defaults to https://api.kobana.com.br)
`bash`
KOBANA_ACCESS_TOKEN=your_token kobana-mcp-data
`bash`
KOBANA_ACCESS_TOKEN=your_token kobana-mcp-data-http
Or with custom port:
`bash`
PORT=8080 KOBANA_ACCESS_TOKEN=your_token kobana-mcp-data-http
Add to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json
Windows:
`json`
{
"mcpServers": {
"kobana-data": {
"command": "npx",
"args": ["kobana-mcp-data"],
"env": {
"KOBANA_ACCESS_TOKEN": "your_access_token_here"
}
}
}
}
List all bank billet queries with optional filters.
Parameters:
- page (optional): Page number (default: 1)per_page
- (optional): Items per page (default: 50, max: 50)status
- (optional): Filter by status (pending, success, error)external_id
- (optional): Filter by external IDtags
- (optional): Filter by tags (comma-separated)created_from
- (optional): Filter by minimum creation date (ISO 8601)created_to
- (optional): Filter by maximum creation date (ISO 8601)
Example:
`json`
{
"status": "success",
"page": 1,
"per_page": 10
}
Create a new bank billet query using the typeable line (linha digitavel) or barcode.
Parameters:
- line_or_barcode (required): Typeable line or barcode of the bank billetexternal_id
- (optional): External ID in your system for internal controlcustom_data
- (optional): Custom data as a JSON object with key-value pairstags
- (optional): Tags associated with the query
Example:
`json`
{
"line_or_barcode": "34191.79001 01043.510047 91020.150008 7 75870000001000",
"external_id": "my-internal-id-123",
"tags": ["payment", "monthly"]
}
Response includes:
- Query status (pending, success, error)
- Bank billet details (when successful):
- Amounts (current, minimum, maximum, original)
- Expiration date
- Beneficiary information
- Payer information
- Fine, interest, and discount information
When running in HTTP mode:
- GET / - Server informationGET /health
- - Health checkGET /sse
- - SSE connection for MCP protocolPOST /messages?sessionId=
- - Send messages to MCP server
For HTTP transport, you can authenticate in two ways:
1. Environment variable: Set KOBANA_ACCESS_TOKENAuthorization: Bearer
2. HTTP header: Send
Optionally, you can override the API URL with the X-Kobana-Api-Url header.
`bashInstall dependencies
npm install
MIT