IBAN, ISIN, VAT/tax ID and GTIN barcode validation plus 29 more pay-per-call utilities for AI agents (x402, no API key). TypeScript + Python clients, MCP configs.
- ✓Open-source license (MIT)
- ✓Actively maintained (<30d)
- ✓Clear description
- ✓Topics declared
- ✓Documented (README)
git clone https://github.com/hiesem/duo-data-utilities{
"mcpServers": {
"duo-data-utilities": {
"command": "node",
"args": ["/path/to/duo-data-utilities/dist/index.js"]
}
}
}Resumen de MCP Servers
IBAN, ISIN, VAT/tax ID and GTIN barcode validation plus 29 more utilities for AI agents. Pay per call ($0.05 USDC on Base via x402), no API key, no signup.
Timezone and DST, geo distance and geohash, hashes and JWT decoding, airport, country, currency and NUTS lookups, money split, base conversion and more. Every call is one HTTP GET, paid per request.
## Install
```sh
npm install duo-data-utilities viem
```
`viem` creates the wallet account that pays. This package also depends on it. Node.js 20 or later.
Python (not on PyPI, install from GitHub):
```sh
pip install "git+https://github.com/hiesem/duo-data-utilities#subdirectory=python"
```
## Quick start
```ts
import { privateKeyToAccount } from "viem/accounts";
import { createClient } from "duo-data-utilities";
// Your wallet holds USDC on Base. Read the key from the environment, never a literal.
const client = createClient({ account: privateKeyToAccount(process.env.DUO_PAYER_KEY as `0x${string}`) });
const iban = await client.iban.validate({ iban: "NL91 ABNA 0417 1643 00" }); // $0.05
console.log(iban.valid, iban.country); // true NL
```
## Counterparty check
`checkCounterparty` runs three checks in one call: IBAN (`/v1/id/iban`), tax ID (`/v1/id/national`) and country (`/v1/ref/country`). It costs $0.15.
```ts
const check = await client.checkCounterparty({
iban: "NL91 ABNA 0417 1643 00",
country: "NL",
taxIdType: "bsn",
taxId: "111222333",
});
console.log(check.verdict, check.reasons); // "pass", "fail" or "review"
```
- `fail`: the IBAN or the tax ID fails its checksum, the country is not an ISO 3166-1 country, or the API rejects an input as malformed.
- `review`: the IBAN country differs from the tax ID country, or the API does not cover that country or tax ID kind.
- `pass`: every check passed.
Structure and checksum only. The check does not query a company register, a bank or a tax authority, and it does not confirm that an account exists. `UK` is read as `GB`.
## Methods
Every method costs $0.05 per call. Each method's JSDoc gives the route and the parameters. `client.call(path, params)` calls any route, and `client.callWithReceipt(path, params)` also returns the settlement receipt.
| Method | Route | What it does |
|---|---|---|
| `iban.validate` | `/v1/id/iban` | IBAN validator: length, mod-97 check digits, bank/branch/account breakdown (89 countries) |
| `iban.generate` | `/v1/id/iban-build` | IBAN generator: build an IBAN from country and BBAN or bank/branch/account, computing check digits |
| `taxId.validate` | `/v1/id/national` | VAT, tax ID and national ID validator: 23 countries, checksum only (VAT formats BE, DE, FR, IT, PL, AT, CH, IE) |
| `isin.validate` | `/v1/id/security` | ISIN validator plus CUSIP, SEDOL and FIGI check-digit validation; builds an ISIN from an NSIN |
| `barcode.validate` | `/v1/id/gs1` | GTIN barcode validator: EAN-13, UPC-A (GTIN-12), GTIN-8/14, GLN and SSCC check digits |
| `timezone.convert` | `/v1/time/zone` | Timezone converter: instant to local time in an IANA time zone and back, with UTC offset and DST state |
| `timezone.dstTransitions` | `/v1/time/dst` | DST transitions: next daylight-saving time changes for an IANA time zone |
| `businessDays.calculate` | `/v1/time/business-days` | Business days calculator: add or count working days with your weekend mask and holiday list |
| `rrule.expand` | `/v1/time/rrule` | RRULE expander: RFC 5545 recurrence rule to concrete occurrence dates |
| `calendar.convert` | `/v1/time/calendar` | Calendar converter: Gregorian to Hijri, Hebrew, Japanese era, Persian and more, plus Easter date |
| `text.similarity` | `/v1/text/similarity` | String similarity: Levenshtein, Jaro-Winkler distance and Soundex/Metaphone phonetic keys |
| `text.slug` | `/v1/text/slug` | Slug generator: Unicode-aware URL slug with transliteration |
| `text.transliterate` | `/v1/text/transliterate` | Cyrillic transliteration to Latin (ISO 9:1995, BGN/PCGN Russian) |
| `text.unicode` | `/v1/text/unicode` | Unicode normalization (NFC/NFKC), script detection and homoglyph/confusable check |
| `hash.generate` | `/v1/code/hash` | Hash generator: SHA-256, SHA-512, SHA-3, Keccak-256, BLAKE2 and HMAC digests |
| `punycode.convert` | `/v1/code/idn` | Punycode converter: IDN domain to ASCII and back, with IDNA2008 label validation |
| `jwt.decode` | `/v1/code/jwt` | JWT decoder: header, claims and expiry state (no signature verification) |
| `semver.compare` | `/v1/code/semver` | Semver parser: parse and compare versions, check range satisfaction |
| `url.parse` | `/v1/code/url` | URL parser: parse, canonicalize and extract the registrable domain (eTLD+1) |
| `geohash.encodeDecode` | `/v1/geo/geohash` | Geohash encoder and decoder with neighbour cells |
| `plusCode.encodeDecode` | `/v1/geo/pluscode` | Plus code (Open Location Code) encoder and decoder |
| `polygon.check` | `/v1/geo/polygon` | Point in polygon check, plus bounding box, centroid and area for GeoJSON |
| `distance.calculate` | `/v1/geo/distance` | Distance calculator: geodesic distance, bearing and destination point on WGS-84 |
| `cryptoAddress.validate` | `/v1/chain/address` | Crypto address validator: detect the blockchain and verify the checksum (EVM, Bitcoin, Solana and more) |
| `solidity.selector` | `/v1/chain/selector` | Solidity function selector: Keccak-256, 4-byte selector and event topic from a signature |
| `airport.lookup` | `/v1/ref/airport` | Airport lookup by IATA or ICAO code: name, coordinates, elevation, time zone; nearest airports |
| `country.lookup` | `/v1/ref/country` | Country lookup: ISO 3166 codes, currency, TLD, UN region and ISO 3166-2 subdivisions |
| `currency.lookup` | `/v1/ref/currency` | Currency lookup: ISO 4217 codes, names, minor units and cash rounding |
| `nuts.lookup` | `/v1/ref/nuts` | NUTS region lookup: EU statistical region codes, names and hierarchy |
| `money.split` | `/v1/num/allocate` | Money split: allocate an amount into shares with no rounding loss |
| `base.convert` | `/v1/num/radix` | Base converter: integers between number bases 2 to 36 (hex, binary, octal) |
| `statistics.calculate` | `/v1/num/stats` | Statistics calculator: mean, median, standard deviation, quartiles and percentiles |
| `numberWords.convert` | `/v1/num/words` | Number to words in 12 languages, with ordinal and currency forms |
## MCP
The MCP server is at `https://api.duoleads.com/mcp` (Streamable HTTP). `tools/list` is free. Each `tools/call` costs $0.05 and needs an x402-capable client or wallet bridge. See [mcp/README.md](mcp/README.md) for Claude Code, Claude Desktop, Cursor, VS Code and AgentCash.
## Python
Python 3.10 or later. The client is typed (`py.typed`) and uses `requests` with x402's EVM signer. Routes and method names match the TypeScript client, in snake_case.
```python
import os
from eth_account import Account
from duo_data_utilities import DuoClient
client = DuoClient(Account.from_key(os.environ["DUO_PAYER_KEY"])) # your wallet, never a literal key
print(client.iban.validate(iban="NL91 ABNA 0417 1643 00")["valid"])
check = client.check_counterparty(iban="NL91 ABNA 0417 1643 00", country="NL", tax_id_type="bsn", tax_id="111222333")
print(check.verdict, check.reasons)
```
`DuoClient(account, *, max_price_usd=0.05, timeout=None, pay_to=<service address>)` applies the same price guard. Pass `session=` with a `requests.Session` that already pays to skip the guard. `from_` is the Python name for the `from` query parameter.
## Pricing and the price guard
- Every route costs $0.05 per call, paid in USDC on Base (`eip155:8453`) with x402 v2.
- `maxPriceUsd` defaults to `0.05`. Before anything is signed, the client refuses a payment requirement that asks for more than that, a network other than Base, an asset other than Base USDC, or another payee. A refused call makes no payment and throws `PriceGuardError`.
- The client only signs payments to the service's public address `0xCD673f7e1daD254347AEab6be0DEFe8b9C6b3A39` (`payTo` option; `pay_to` in Python). Set it if you point `baseUrl` at another deployment.
- The client never retries a paid call on its own.
- Plain `http://` is refused except for loopback addresses (`localhost`, `127.0.0.1`, `[::1]`).
- With `fetch` instead of `account`, you pass a fetch that already pays. The price guard cannot check payments made inside it, so use `account` to keep the guard.
## What this is not
- Not a registry lookup. IBAN, tax ID and VAT checks are structure and checksum only.
- Not financial, legal or tax advice. Each response carries a disclaimer.
## Links
- API docs: https://api.duoleads.com/docs
- OpenAPI: https://api.duoleads.com/openapi.json
- Machine-readable index: https://api.duoleads.com/llms.txt
- Terms: https://api.duoleads.com/terms
- Privacy: https://api.duoleads.com/privacy
The HTTP routes also work without this SDK. An unpaid `GET` returns `402 Payment Required` with a `PAYMENT-REQUIRED` header, and any x402 v2 client can pay that challenge.
## Development
```sh
npm install
npm run generate # rebuild src/generated.ts from spec/ (npm test checks it is current)
npm run typecheck
npm test
npm run build
```
`spec/` holds the snapshots the code is generated from. See `spec/README.md`.
## License
MIT. See [LICENSE](LICENSE).
Lo que la gente pregunta sobre duo-data-utilities
¿Qué es hiesem/duo-data-utilities?
+
hiesem/duo-data-utilities es mcp servers para el ecosistema de Claude AI. IBAN, ISIN, VAT/tax ID and GTIN barcode validation plus 29 more pay-per-call utilities for AI agents (x402, no API key). TypeScript + Python clients, MCP configs. Tiene 0 estrellas en GitHub y su última actualización registrada es del 2026-10-09.
¿Cómo se instala duo-data-utilities?
+
Puedes instalar duo-data-utilities clonando el repositorio (https://github.com/hiesem/duo-data-utilities) o siguiendo las instrucciones del README en GitHub. ClaudeWave también te ofrece bloques de instalación rápida en esta misma página.
¿Es seguro usar hiesem/duo-data-utilities?
+
Nuestro agente de seguridad ha analizado hiesem/duo-data-utilities y le ha asignado un Trust Score de 95/100 (tier: Verified). Revisa el desglose completo de comprobaciones superadas y flags en esta página.
¿Quién mantiene hiesem/duo-data-utilities?
+
hiesem/duo-data-utilities es mantenido por hiesem. La última actividad registrada en GitHub es del 2026-10-09, con 0 issues abiertos.
¿Hay alternativas a duo-data-utilities?
+
Sí. En ClaudeWave puedes explorar mcp servers similares en /categories/mcp, ordenados por popularidad o actividad reciente.
Despliega duo-data-utilities en tu cloud
Lleva este repo a producción en minutos. Cada plataforma genera su propio entorno con variables de entorno editables.
¿Mantienes este repo? Añade un badge a tu README
Pega el badge en tu README de GitHub para mostrar que está auditado por ClaudeWave. Cada badge enlaza de vuelta a esta página y muestra el Trust Score actual.
[](https://claudewave.com/repo/hiesem-duo-data-utilities)<a href="https://claudewave.com/repo/hiesem-duo-data-utilities"><img src="https://claudewave.com/api/badge/hiesem-duo-data-utilities" alt="Featured on ClaudeWave: hiesem/duo-data-utilities" width="320" height="64" /></a>Más MCP Servers
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
An open-source AI agent that brings the power of Gemini directly into your terminal.
Real-time global intelligence dashboard. AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface
🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev
The fastest path to AI-powered full stack observability, even for lean teams.