kobana-mcp-data
v1.0.0
Published
MCP Server for Kobana Data API v2 (Bank Billet Queries)
Maintainers
Readme
Kobana MCP Data Server
MCP (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.
Features
- 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
Installation
npm install kobana-mcp-dataOr install globally:
npm install -g kobana-mcp-dataConfiguration
Set the following environment variables:
KOBANA_ACCESS_TOKEN(required): Your Kobana API access tokenKOBANA_API_URL(optional): API base URL (defaults tohttps://api.kobana.com.br)
Usage
Stdio Transport (for Claude Desktop)
KOBANA_ACCESS_TOKEN=your_token kobana-mcp-dataHTTP Transport
KOBANA_ACCESS_TOKEN=your_token kobana-mcp-data-httpOr with custom port:
PORT=8080 KOBANA_ACCESS_TOKEN=your_token kobana-mcp-data-httpClaude Desktop Configuration
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-data": {
"command": "npx",
"args": ["kobana-mcp-data"],
"env": {
"KOBANA_ACCESS_TOKEN": "your_access_token_here"
}
}
}
}Available Tools
list_data_bank_billet_queries
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:
{
"status": "success",
"page": 1,
"per_page": 10
}create_data_bank_billet_query
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:
{
"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
HTTP Endpoints
When running in HTTP mode:
GET /- Server informationGET /health- Health checkGET /sse- SSE connection for MCP protocolPOST /messages?sessionId=<id>- Send messages to MCP server
Authentication
For HTTP transport, you can authenticate in two ways:
- Environment variable: Set
KOBANA_ACCESS_TOKEN - HTTP header: Send
Authorization: Bearer <token>
Optionally, you can override the API URL with the X-Kobana-Api-Url header.
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:httpLicense
MIT
