Skip to main content
Glama
jlj-treasury

jlj-treasury

by jlj-lab-s

JLJ Treasury — Norma 43, SEPA ISO 20022 (pain.001 / pain.008 / camt.053) & Reconciliation SDK + MCP

npm version PyPI version SDK CI License: MIT Zero Dependencies

Official zero-dependency TypeScript/Node, Python 3 SDK, and Model Context Protocol (MCP) server for JLJ Treasury API (operated by JLJ Lab on Cloudflare Workers with zero payload retention):

  • AEB Cuaderno 43 (Norma 43): Full fixed-width parser (11/22/23/24/33/88) with cent-exact mathematical balance & EOF audit.

  • SEPA Direct Debit Creditor Identifier (AT-02): ISO 7064 Mod 97-10 validator & generator (e.g. Spanish ES<check>000<NIF>).

  • SEPA Credit Transfer (pain.001.001.03 / .09 — Cuaderno 34.14): Bank-ready XML batch generator with IBAN Mod-97 checks & SEPA Latin sanitization.

  • SEPA Direct Debit (pain.008.001.02 / .08 — Cuaderno 19.14 CORE & B2B): Direct debit XML generator with mandate metadata & CtrlSum math.

  • ISO 20022 camt.053 Parser (XXE-Hardened): Normalized to the exact same BankMovement schema as Norma 43.

  • Deterministic Bank-to-Invoice Reconciliation: Transparent cent-exact matching by RF reference, invoice ID, IBAN, and NIF.

Quick Install (0 Dependencies)

# Node.js / TypeScript SDK + MCP CLI
npm install jlj-treasury

# Python 3 SDK
pip install jlj-treasury

# Instant 1-command Stdio MCP Server (no clone required)
npx -y jlj-treasury

Related MCP server: InvoiceOracle

AI Agent Integration — MCP Server (Cursor · Claude Desktop · Windsurf · Antigravity)

{
  "mcpServers": {
    "jlj-treasury": {
      "url": "https://treasury-api.specgrid-api.workers.dev/mcp",
      "headers": {
        "Authorization": "Bearer JLJ-YOUR-POLAR-KEY"
      }
    }
  }
}

Option B: Local Zero-Dependency Stdio MCP (npx -y jlj-treasury)

{
  "mcpServers": {
    "jlj-treasury": {
      "command": "npx",
      "args": ["-y", "jlj-treasury"],
      "env": {
        "JLJ_TREASURY_API_KEY": "JLJ-YOUR-POLAR-KEY"
      }
    }
  }
}

Quickstart — TypeScript / Node 20+

import { JljTreasuryClient } from 'jlj-treasury';

const client = new JljTreasuryClient({ apiKey: process.env.JLJ_TREASURY_API_KEY });
const cid = await client.generateCreditorId('ES', 'B85905495', '000');
console.log(cid);

Quickstart — Python 3

import os
from jlj_treasury import JljTreasuryClient

client = JljTreasuryClient(api_key=os.environ.get("JLJ_TREASURY_API_KEY"))
print(client.generate_creditor_id("ES", "B85905495", "000"))

Quickstart — PHP 8+ (Laravel / WooCommerce / PrestaShop)

<?php
require_once __DIR__ . '/php/JLJTreasuryClient.php';

$client = new \JLJLab\Treasury\JLJTreasuryClient(apiKey: getenv('JLJ_TREASURY_API_KEY') ?: null);
$cid = $client->generateCreditorId('ES', 'B85905495', '000');
echo $cid['normalized'] . PHP_EOL;

No-Code Templates & API Tools (1-Click Import)

Pricing & Instant API Key (Polar.sh MoR)

License

MIT License — Copyright (c) 2026 JLJ Lab.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      MCP server that enables AI agents to parse, validate, and reverse ISO 20022 bank statements, with tools for discovering message types and return reasons.
      24
      58 PyPI
      2
      Apache 2.0
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to parse and analyze PDF invoices, including text, field, and table extraction, OCR for scanned documents, ZUGFeRD support, compliance validation, and batch processing via MCP.
      -
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI agents to parse and validate Spanish Norma 43 bank statement files, convert them to CSV, and reconcile bank movements against invoices with confidence scoring and evidence. It also validates IBAN, CCC, NIF/NIE/CIF, and SEPA creditor identifiers while supporting credit-based hosted or local usage.
      9
      41 PyPI
      1
      Business Source 1.1