# Bitrovas L402 Services

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

- name: io.github.bitrovas/mcp
- version: 0.1.2
- connection class: R0 (autonomous)
- trust: 97/100
- quality: 89/100 (new)
- owner: not claimed
- descriptor: https://api.protogrid.dev/v1/servers/io.github.bitrovas%2Fmcp
- tools: https://api.protogrid.dev/v1/servers/io.github.bitrovas%2Fmcp/tools

**An agent can connect right now, no human step.** Remote endpoint, no authentication, reachable on the last probe.

## Connection (mcpServers)

```json
{
  "mcpServers": {
    "bitrovas": {
      "type": "http",
      "url": "https://api.bitrovas.ch/mcp"
    }
  }
}
```


## Trust

- hygiene: 100
- liveness: 100
- freshness: 100
- provenance: 90
- drivers: +repository +namespace-matches-repo +website +reachable +uptime-100% +updated-3d-ago
- Derived from observable signals (official registry feed and our own credential-free probes); no code audit performed.

## Quality 89/100 (new)

### protocol: 75 (weight 25)

- warn `protocol.modern`: newest supported version is 2025-11-25; 2026-07-28 not supported, older versions are deprecated until 2027-07-28
- n/a `protocol.stateless`: only applies to 2026-07-28 servers
- pass `protocol.transport`: streamable HTTP
- n/a `protocol.list_ttl`: only applies to 2026-07-28 servers

### authorization: n/a (weight 15)

- n/a `auth.prm`, `auth.as_metadata`, `auth.cimd`: no remote uses OAuth
- n/a `auth.secret_in_url`: no templated URL

### tool hygiene: 100 (weight 30)

- pass `tools.descriptions`: every tool has a description
- pass `tools.description_length`: descriptions are concise
- pass `tools.schemas`: every tool has an object input schema
- pass `tools.annotations`: 19 of 19 tools declare readOnlyHint or destructiveHint
- pass `tools.directory_hints`: every tool declares readOnlyHint, destructiveHint, idempotentHint and openWorldHint
- pass `tools.token_cost`: about 5,206 tokens to load every tool
- pass `tools.api_dump`: tools are not a one-to-one API dump
- pass `tools.hidden_text`: no hidden text in tool names, descriptions, schemas or annotations
- pass `tools.poisoning`: no instructions aimed at the model in tool definitions

### stability: n/a (weight 15)

- n/a `stability.changes`, `stability.rug_pull`, `stability.new_links`: tool history recorded for 4 of the 7 days needed

### dependencies: n/a (weight 15)

- n/a `deps.known_vulns`, `deps.mcp_sdk_version`, `deps.resolvable`: no npm or PyPI package

- tools: 19, about 5,206 tokens to load them all
- tool set hash: 8c7f664f592eff03403627165fb7fcf2
- tools last changed: 2026-11-26T19:00:23.533Z
- badge: [![protogrid quality](https://protogrid.dev/badge/io.github.bitrovas/mcp.svg)](https://protogrid.dev/servers/io.github.bitrovas/mcp)
- Checks run on what our credential-free, read-only probes observe; tools are never called and no code audit is performed.

### Definition changes

- 2026-11-26 `bitrovas_utxoplan` changed (inputSchema) no new version (still 0.1.0)
- 2026-11-26 `bitrovas_utxoplan_preview` changed (description, inputSchema) no new version (still 0.1.0)
  - before: Free endpoint (POST /v1/utxoplan/preview): counts the UTXOs of a watch-only wallet (xpub/ypub/zpub, descriptor 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.
  - after: 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.
- 2026-11-26 `bitrovas_utxoplan` added
  - 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.
- 2026-11-26 `bitrovas_utxoplan_preview` added
  - Free endpoint (POST /v1/utxoplan/preview): counts the UTXOs of a watch-only wallet (xpub/ypub/zpub, descriptor 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.

Full history: https://api.protogrid.dev/v1/servers/io.github.bitrovas%2Fmcp/changes

## Remotes

- https://api.bitrovas.ch/mcp (streamable-http, auth none, reachable true, uptime30d 1)

## Packages

_none_

## Tools (19)

- `bitrovas_adresswaechter_info`: 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`: 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).
- `bitrovas_adresswaechter_subscribe`: 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.
- `bitrovas_formatcheck`: 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).
- `bitrovas_formatcheck_quote`: 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.
- `bitrovas_jsonrepair`: 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).
- `bitrovas_markdown`: 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.
- `bitrovas_markdown_quote`: 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.
- `bitrovas_poisoncheck`: 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.
- `bitrovas_poisoncheck_ai_status`: Free endpoint (GET /v1/poisoncheck/ai/<ticket>): retrieves a supplementary AI explanation once if a PoisonCheck review result included ai_explanation.poll.
- `bitrovas_psbtcheck`: 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.
- `bitrovas_psbtcheck_quote`: 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.
- `bitrovas_qrbill`: 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).
- `bitrovas_services_status`: 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_timestamp`: 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.
- `bitrovas_timestamp_status`: 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.
- `bitrovas_utxoplan`: 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.
- `bitrovas_utxoplan_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.
- `bitrovas_walletaddr`: 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).
