Bitrovas L402 Services

v0.1.2
io.github.bitrovas/mcp Checked 23 hours ago Published 7 days ago

Lightning-paid (L402) Bitcoin & data tools: PSBT, PoisonCheck, FormatCheck, QR-Bill, Timestamps.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

bitrovas_services_status Bitrovas API Status & Service Directory

Free endpoint: checks api.bitrovas.ch readiness and returns the live machine-readable list of Bitrovas L402 services, pricing in sats, quote endpoints, and input schemas.

bitrovas_psbtcheck Bitrovas PSBT-Check (L402: 21 sats)

Pre-sign check of an unsigned Bitcoin PSBT (21 sats via L402). Inspects recipients, amounts, change, fee/sat-vB, RBF, sighash, missing UTXO info, dust, and address-poisoning lookalikes. Returns verdict ok|warn|danger + JSON + DE/EN text. Invalid PSBTs are rejected free (HTTP 400) before an invoice is issued. Call without l402_macaroon/l402_preimage to get the BOLT11 invoice, then retry with the preimage after paying.

ParameterTypeDescription
psbt *stringUnsigned PSBT v0 in base64 or hex (required).
expected_addressstringOptional expected recipient address to verify against outputs.
expected_amount_satsintegerOptional expected output amount in satoshis (>= 0).
l402_macaroonstringL402 macaroon/token returned from an HTTP 402 response on a prior call to this tool.
l402_preimagestring64-character hex Lightning preimage obtained after paying the BOLT11 invoice from the 402 response.
networkstringOptional Bitcoin network: mainnet, testnet, signet, or regtest.

bitrovas_psbtcheck_quote Bitrovas PSBT-Check Free Quote & Pre-Check

Free endpoint (POST /v1/psbtcheck/quote): returns the PSBT-Check price in sats and optionally validates an unsigned PSBT without issuing an invoice or revealing the verdict.

ParameterTypeDescription
expected_addressstringOptional expected recipient address.
expected_amount_satsintegerOptional expected amount in sats.
networkstringOptional Bitcoin network.
psbtstringOptional unsigned PSBT v0 (base64 or hex) to pre-validate.

bitrovas_poisoncheck Bitrovas PoisonCheck (L402: 21 sats single / batch)

Address-poisoning check for Bitcoin, EVM, and Tron addresses (21 sats single; 21 + 5 sats per address for batches up to 50). Compares the address you are about to send to (used) against the known address (expected) to detect lookalike/vanity poisoning patterns. Identical addresses or mismatched networks are answered free (HTTP 400) before invoicing.

ParameterTypeDescription
expected *Known correct address (string), or for batch either one string or a list matching the length of used.
used *Address to check (string) or list of up to 50 addresses for batch checking.
l402_macaroonstringL402 macaroon/token returned from an HTTP 402 response on a prior call to this tool.
l402_preimagestring64-character hex Lightning preimage obtained after paying the BOLT11 invoice from the 402 response.

bitrovas_poisoncheck_ai_status Bitrovas PoisonCheck AI Explanation Poll (Free)

Free endpoint (GET /v1/poisoncheck/ai/<ticket>): retrieves a supplementary AI explanation once if a PoisonCheck review result included ai_explanation.poll.

ParameterTypeDescription
ticket *stringTicket ID or /v1/poisoncheck/ai/<ticket> path from ai_explanation.poll.

bitrovas_formatcheck Bitrovas FormatCheck (L402: 10 + 1 sat/KB)

Validate CSV, YAML, XML, TOML, or JSON (up to 1 MiB / 1M elements), optionally validate against a JSON Schema (2020-12, local $ref only), or convert to JSON / flat JSON to CSV. Price: 10 sats + 1 sat per started KB (use bitrovas_formatcheck_quote for exact free price). Invalid input is rejected free (HTTP 400).

ParameterTypeDescription
data *stringInput text to validate or convert (UTF-8, max 1 MiB).
format *stringInput format: csv, yaml (or yml), xml, toml, or json.
actionstringOptional action: validate (default), to_json, or to_csv (requires format=json).
json_schemaOptional JSON Schema 2020-12 object (local $ref only, max 8000 bytes).
l402_macaroonstringL402 macaroon/token returned from an HTTP 402 response on a prior call to this tool.
l402_preimagestring64-character hex Lightning preimage obtained after paying the BOLT11 invoice from the 402 response.

bitrovas_formatcheck_quote Bitrovas FormatCheck Free Price Quote & Pre-Check

Free endpoint (POST /v1/formatcheck/quote): calculates exact byte/KB price (10 + ceil(bytes/1024) sats) and optionally pre-checks syntax/schema without issuing an invoice.

ParameterTypeDescription
data *stringInput text to measure and optionally pre-check.
actionstringOptional action for pre-validation.
formatstringOptional format for pre-validation.
json_schemaOptional JSON Schema 2020-12 for pre-validation.

bitrovas_jsonrepair Bitrovas JSON Validate & Repair (L402: 10 sats)

Validate, syntax-repair (trailing commas, markdown code fences, Python literals), normalize whitespace/NULLs, deduplicate, and optionally JSON-Schema-validate a JSON array of flat records (max 1000 rows, 10 sats via L402).

ParameterTypeDescription
data *JSON array of flat objects, {records: [...]}, or raw JSON/Python-literal text to repair (max 1000 rows).
json_schemaOptional JSON Schema 2020-12 applied per row.
json_schema_actionstringOptional action for rows failing json_schema: flag (default) or drop.
l402_macaroonstringL402 macaroon/token returned from an HTTP 402 response on a prior call to this tool.
l402_preimagestring64-character hex Lightning preimage obtained after paying the BOLT11 invoice from the 402 response.
optionsobjectOptional DataCleanBot options (operations, dedupe_keys, dedupe_keep, schema, email_columns, etc.).

bitrovas_qrbill Bitrovas Swiss QR-Bill Check (L402: 10 sats)

Technical offline check of a Swiss QR-bill SPC payload or CH/LI IBAN + reference (10 sats via L402): IBAN checksum, QR-IBAN vs QRR/SCOR/NON, Mod10/ISO-11649 reference, amount/currency, mandatory fields, lengths, character set, and optional expected supplier IBAN comparison (plain or SHA-256).

ParameterTypeDescription
amountstringOptional invoice amount (e.g. '125.50').
currencystringOptional currency: CHF or EUR.
expected_ibanOptional expected supplier IBAN or list (max 20) to compare against.
expected_iban_sha256Optional SHA-256 hex of normalized supplier IBAN (uppercase, no spaces) or list (max 20).
ibanstringCH/LI IBAN when checking without full SPC payload.
l402_macaroonstringL402 macaroon/token returned from an HTTP 402 response on a prior call to this tool.
l402_preimagestring64-character hex Lightning preimage obtained after paying the BOLT11 invoice from the 402 response.
payloadstringFull Swiss QR-bill SPC payload text (all lines). Required unless iban is given.
referencestringOptional QRR (27 digits) or SCOR (RF...) reference.

bitrovas_timestamp Bitrovas Zeitstempel / OpenTimestamps (L402: 21 sats)

Create a Bitcoin OpenTimestamps proof for a SHA-256 hash or Nostr event ID (21 sats via L402). Returns a pending .ots proof (base64) and an id to poll free via bitrovas_timestamp_status until Bitcoin confirmation (1-12h). Only the hash is sent, never the file.

ParameterTypeDescription
event_idstringNostr event ID (64-hex, note1..., or nevent1...). Required unless hash is given.
hashstring64-character SHA-256 hex digest of the file. Required unless event_id is given.
l402_macaroonstringL402 macaroon/token returned from an HTTP 402 response on a prior call to this tool.
l402_preimagestring64-character hex Lightning preimage obtained after paying the BOLT11 invoice from the 402 response.

bitrovas_timestamp_status Bitrovas Zeitstempel Status & Proof Upgrade (Free)

Free endpoint (GET /v1/timestamp/<id>): checks whether an OpenTimestamps proof is pending or confirmed on Bitcoin and returns the upgraded .ots proof (base64) and bitcoin_block_height.

ParameterTypeDescription
id *string32-character hex timestamp ID returned by bitrovas_timestamp.

bitrovas_adresswaechter_subscribe Bitrovas Adress-Waechter Subscribe (L402: 2100 sats / 90d)

Watch-only Bitcoin mainnet address or account xpub/ypub/zpub monitoring for 90 days (2100 sats via L402). Every incoming/outgoing transaction (incl. unconfirmed) and address-poisoning dust triggers an encrypted Nostr DM (NIP-17) to npub. Max 5 entries per npub; re-ordering extends by 90 days. Never send seeds or private keys.

ParameterTypeDescription
npub *stringNostr public key (npub1... or 64-hex) to receive encrypted NIP-17 DM alarms.
target *stringBitcoin mainnet address (bc1..., 1..., 3...) or account-level xpub/ypub/zpub (depth <= 3).
l402_macaroonstringL402 macaroon/token returned from an HTTP 402 response on a prior call to this tool.
l402_preimagestring64-character hex Lightning preimage obtained after paying the BOLT11 invoice from the 402 response.
labelstringOptional short label (max 40 characters).

bitrovas_adresswaechter_info Bitrovas Adress-Waechter Info (Free)

Free endpoint (GET /v1/adresswaechter/info): returns Adress-Waechter pricing, limits (max 5 entries per npub, mainnet only), alert format, and L402 flow.

bitrovas_adresswaechter_status Bitrovas Adress-Waechter Status & Recovery (Free)

Free endpoint: check an Adress-Waechter subscription by subscription_id (GET /v1/adresswaechter/<id>), or recover an order if the initial response was lost by passing l402_macaroon and l402_preimage (GET /v1/adresswaechter/status).

ParameterTypeDescription
l402_macaroonstringL402 macaroon/token returned from an HTTP 402 response on a prior call to this tool.
l402_preimagestring64-character hex Lightning preimage obtained after paying the BOLT11 invoice from the 402 response.
subscription_idstring32-character hex subscription_id returned when subscribing.

bitrovas_walletaddr Bitrovas Wallet-Adressen (L402: 21 sats)

Watch-only Bitcoin address derivation from xpub/ypub/zpub/tpub/upub/vpub or an output descriptor (21 sats via L402). Derives receive (0/i) and change (1/i) addresses and optionally checks ownership/derivation path for up to 50 addresses. Private keys/seeds are rejected free (HTTP 400).

ParameterTypeDescription
addressesarrayOptional list of up to 50 Bitcoin addresses to verify against derived chains.
descriptorstringOutput descriptor with wildcard * (e.g. wpkh([fp/84h/0h/0h]xpub/<0;1>/*)).
gapintegerOptional addresses per chain to derive (default 20, max 1000).
l402_macaroonstringL402 macaroon/token returned from an HTTP 402 response on a prior call to this tool.
l402_preimagestring64-character hex Lightning preimage obtained after paying the BOLT11 invoice from the 402 response.
scriptstringOptional script override (only with xpub): p2pkh, p2wpkh, p2sh-p2wpkh, or p2tr.
xpubstringAccount-level extended public key (xpub/ypub/zpub/tpub/upub/vpub).

bitrovas_utxoplan_preview Bitrovas UTXO-Planer Free Preview

Free endpoint (POST /v1/utxoplan/preview): counts the UTXOs of a watch-only wallet (xpub/ypub/zpub, descriptor, Bitcoin mainnet addresses or own UTXO list) and returns total balance, current fee rates, what spending everything costs at several fee rates and the estimated consolidation cost today, plus the price of the full plan. No outpoints or addresses in the answer. Data source: public Esplora API (mempool.space) queried per address; the xpub itself is never sent there. Scans can take up to about 2 minutes. Private keys/seeds are rejected.

ParameterTypeDescription
addressesstringOne or more Bitcoin mainnet addresses (bc1…, 1…, 3…), one per line or comma-separated. Gap limit is ignored. Counts toward the address cap (preview 80, plan 300).
descriptorstringPublic output descriptor with wildcard *, also multisig (e.g. wpkh([fp/84h/0h/0h]xpub/<0;1>/*)).
gapintegerOptional gap limit per chain (default 20, max 100). Only with xpub or descriptor.
utxosstringOwn UTXO list instead of a key: Sparrow CSV export (Output, Address, Label, Value) or lines 'txid:vout value' (sats, or BTC with a dot). No address lookups are made in this mode.
xpubstringAccount-level extended public key, mainnet (xpub/ypub/zpub). Watch-only.

bitrovas_utxoplan Bitrovas UTXO-Planer (L402: 1200 sats)

Watch-only UTXO plan for fees and privacy (1200 sats via L402): fee scenarios (now, 10/50/100/300 sat/vB), every UTXO classified as consolidate / freeze / keep separate / do not touch (possible dust attack), consolidation batches per label with outpoints for coin control, fee today and break-even, next unused receive address, and the plan as Markdown (plan_markdown). Bitrovas never signs or broadcasts. Invalid input and private keys/seeds are rejected free (HTTP 400). Use bitrovas_utxoplan_preview first; the paid call within 15 minutes reuses that scan.

ParameterTypeDescription
addressesstringOne or more Bitcoin mainnet addresses (bc1…, 1…, 3…), one per line or comma-separated. Gap limit is ignored. Counts toward the address cap (preview 80, plan 300).
descriptorstringPublic output descriptor with wildcard *, also multisig (e.g. wpkh([fp/84h/0h/0h]xpub/<0;1>/*)).
gapintegerOptional gap limit per chain (default 20, max 100). Only with xpub or descriptor.
l402_macaroonstringL402 macaroon/token returned from an HTTP 402 response on a prior call to this tool.
l402_preimagestring64-character hex Lightning preimage obtained after paying the BOLT11 invoice from the 402 response.
utxosstringOwn UTXO list instead of a key: Sparrow CSV export (Output, Address, Label, Value) or lines 'txid:vout value' (sats, or BTC with a dot). No address lookups are made in this mode.
xpubstringAccount-level extended public key, mainnet (xpub/ypub/zpub). Watch-only.

bitrovas_markdown Bitrovas Document to Markdown (L402: 100 sats)

Convert a document (PDF, DOCX, XLSX, PPTX, HTML, or UTF-8 CSV; max 5 MB) into clean Markdown for AI agents (100 sats via L402). Sandboxed, no OCR/LLM, never stored. Use bitrovas_markdown_quote for a free type/size/price pre-check.

ParameterTypeDescription
content_base64 *stringDocument bytes encoded as base64 (PDF, DOCX, XLSX, PPTX, HTML, or CSV).
filenamestringOptional filename (extension must match detected file type).
l402_macaroonstringL402 macaroon/token returned from an HTTP 402 response on a prior call to this tool.
l402_preimagestring64-character hex Lightning preimage obtained after paying the BOLT11 invoice from the 402 response.

bitrovas_markdown_quote Bitrovas Document to Markdown Free Quote & Pre-Check

Free endpoint (POST /v1/markdown/quote): checks supported file types, max document size, 100-sat price, and optionally validates content_base64 or filename/size_bytes metadata without converting.

ParameterTypeDescription
content_base64stringOptional base64 document bytes to validate magic type and size.
filenamestringOptional filename for extension check or type validation.
size_bytesintegerOptional byte size metadata to check against limit.