Skip to main content

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

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.

Metadata

Release files for jlj-treasury 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jlj-treasury 1.1.0
File Size Uploaded Provenance Actions
jlj_treasury-1.1.0.tar.gz 5.0 kB Without provenance Details for jlj_treasury-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for jlj-treasury 1.1.0
File Interpreter ABI Platform Actions
jlj_treasury-1.1.0-py3-none-any.whl Python 3 none any Details for jlj_treasury-1.1.0-py3-none-any.whl

Total release size: 10.1 kB

Release files / jlj_treasury-1.1.0.tar.gz

Download URL jlj_treasury-1.1.0.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
6a3af4f68e8a7829700354c28890fb329cf8c35e1e321034f5a7055d1d64e0fc
BLAKE2b-256 checksum
How to use checksums
653e492f30ee0b236e3a0608bbf54fceb0ad4171688f05a1f87db6f92fdd6dec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.14

Release files / jlj_treasury-1.1.0-py3-none-any.whl

Download URL jlj_treasury-1.1.0-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eb1e5da5636aed7f10e5d17b068b0a4c3eff06e742da8306f228ab699fa63dc7
BLAKE2b-256 checksum
How to use checksums
2ca7ef6d2ce8372d6292a7fc09c5bca4d754f42fa3b7c716e5413f6232c27b55
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.14

Security for jlj-treasury 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page