{
  "markdown": "# EU compliance & on-chain pre-flight tools for AI agents\n\n**Pay per call in USDC. No account, no API key, no subscription, no minimum.**\nAlso an **MCP server**, so an agent can simply use the tools.\n\nAn agent calls an endpoint, gets `HTTP 402 Payment Required` with the exact price,\npays a fraction of a cent in USDC on Base, repeats the call and gets the answer.\nEvery answer carries a signed receipt that verifies offline.\n\nCatalog: **https://eucompliance.tools** ·\n[`/.well-known/x402`](https://api.eucompliance.tools/.well-known/x402) ·\n[`/llms.txt`](https://api.eucompliance.tools/llms.txt)\n\n---\n\n## Add it to your agent (30 seconds)\n\n**Claude Code**\n```bash\nclaude mcp add --transport http eucompliance https://mcp.eucompliance.tools/mcp\n```\n\n**Claude Desktop / Cursor / any MCP client** — add to the config:\n```json\n{\n  \"mcpServers\": {\n    \"eucompliance\": {\n      \"type\": \"http\",\n      \"url\": \"https://mcp.eucompliance.tools/mcp\"\n    }\n  }\n}\n```\n\nNothing to sign up for. Two tools are free (VAT ID and IBAN validation, 5000/day);\nthe rest are paid per call and an agent with a wallet settles them over x402 by\nitself. Ask it *\"validate VAT ID ATU16170006\"* and it works immediately.\n\n---\n\n## What the tools answer\n\n### On-chain pre-flight — for agents that transact\n\n| Tool | What it answers | Price |\n|---|---|---|\n| **Transaction pre-flight** | Will this transaction go through? Gas vs. balance, full simulation with the **revert reason decoded into plain text**, stuck pending nonces, contract-or-wallet recipient, ERC-20 allowance, and a sanctions screen of the counterparty. One call, `send` / `do not send` with every blocking reason | $0.005 |\n| **Token allowance & balance** | Enough allowance and balance for this amount? Live from the chain on Base, Ethereum, Arbitrum, Optimism and Polygon | $0.002 |\n| **Transaction status** | What happened to my transaction — and if it failed, **why**, recovered by replaying the call against its block. The receipt alone does not carry that reason | $0.002 |\n\nA failed transaction costs the full gas of the attempt. These calls cost a fraction of it.\n\n### EU compliance — for agents that onboard, invoice or pay\n\n| Tool | What it answers | Price |\n|---|---|---|\n| **Counterparty check (KYB)** | VAT ID + sanctions + IBAN + GLEIF LEI in one call → traffic light `clear / review / blocked` with reasons | $0.02 |\n| **E-invoice validation** | EN 16931 / XRechnung / ZUGFeRD / Factur-X / Peppol BIS: the **complete official EN 16931 Schematron rule set** (CEN validation artefacts, used unmodified) plus totals arithmetic and VAT category rules — every finding with its official `BR-` code and severity, result signed and independently verifiable. [Runnable example ↓](#validate-an-e-invoice-in-one-call) | $0.10 |\n| **EU VAT rules engine** | Place of supply, reverse charge, intra-Community supply, OSS threshold, with EN 16931 codes (`BT-151` category, `BT-121` exemption reason) | $0.005 |\n| **Sanctions screening** | EU (Commission FSF) + UN Security Council + UK (HM Treasury OFSI) in one call, re-indexed daily, every hit auditable with list, reference and generation date | $0.01 |\n| **Company register lookup** | Official national registers: FR, NO, CZ, FI, SK, PL — normalised | $0.01 |\n| **Agent spend bookkeeping** | What did my agent spend, in EUR at the ECB rate of the payment date, with VAT treatment and CSV export | $0.10 |\n| **VAT ID / IBAN validation** | Format plus live VIES registration check; IBAN mod-97 with bank identification | **free** via MCP |\n\n### General purpose\n\n| Tool | What it answers | Price |\n|---|---|---|\n| **Chat completion** | A model answer per call, no account and no API key. 8k chars in, 1k tokens out | $0.005 |\n| **Chat completion (plus)** | Stronger model, 16k chars in, 2k tokens out | $0.02 |\n| **Web content extraction** | URL in, readable content out as clean markdown or text — title, author, date, main text, tables, links. Direct fetch of the page, no third-party search index resold | $0.003 |\n\n### Market & social data — for agents that trade or monitor\n\n| Tool | What it answers | Price |\n|---|---|---|\n| **Crypto spot price** | Median of Binance, Coinbase and Kraken public tickers — every single quote, the spread and the timestamp disclosed, so the median is verifiable. Refuses to answer from a single source | $0.001 |\n| **Wallet funding QR** | Your human tops you up with Apple Pay: prefilled onramp link (MoonPay) + QR code for any supported asset and destination wallet. Minimums enforced, address validated — funds settle directly with the licensed onramp, never through this service | $0.005 |\n| **Open social search** | Recent public posts from **Bluesky, Hacker News and Mastodon** in one call: author, text, time, engagement, link. Failing sources are named. Twitter/X and TikTok are deliberately out of scope — their terms forbid scraping | $0.002 |\n| **Perp market data** | Mark and oracle price, hourly and annualised funding rate, open interest, 24h volume and max leverage per market, from the Hyperliquid public API, sorted by volume | $0.005 |\n| **Market brief / yield / gas** | Aggregated crypto-market indicators computed from several upstream x402 feeds, scoring rule disclosed; archived time series at `/x402/history` | $0.01 |\n| **Per-coin positioning brief** | One coin, one call: exchange-median spot with disclosed spread, Hyperliquid funding / open interest / premium / volume, and a disclosed positioning score (crowded long / short) with our own 6-hourly archive trend | $0.01 |\n| **Daily market bundle** | Everything above in one scheduled call: market-regime score, Base gas, best observed APY, BTC/ETH/SOL spot, top-5 perp markets — plus the 7-day history of every component from our own purchase archive, a series no upstream provider sells | $0.05 |\n\n---\n\n## Validate an e-invoice in one call\n\nCheck a UBL or CII invoice (XRechnung, ZUGFeRD / Factur-X, Peppol BIS) against the\n**complete official EN 16931 Schematron** — the same rule set the official validators\nuse, run unmodified — plus totals arithmetic and VAT category rules. Every finding\ncomes back with its official `BR-` code and severity, and the result is signed so it\ncan be attached to the document as validation evidence.\n\nNo wallet needed to try it — [`examples/validate_einvoice.py`](examples/validate_einvoice.py)\nruns against the free tier and catches a deliberately broken sample out of the box:\n\n```bash\npip install requests\npython examples/validate_einvoice.py                 # broken sample → BR-02, BR-06, BR-CO-26 …\npython examples/validate_einvoice.py my-invoice.xml  # your UBL/CII XML\npython examples/validate_einvoice.py zugferd.pdf     # or a ZUGFeRD / Factur-X PDF\n```\n\nFor volume it is one x402 call at `/x402/einvoice` ($0.10) — see\n[`examples/pay_and_call.py`](examples/pay_and_call.py).\n\n---\n\n## Try it without paying anything\n\nFree, 5 calls a day per address, no signup:\n\n```bash\ncurl \"https://api.eucompliance.tools/free/vat-rules?supplier=AT&customer=DE&b2b=true&type=service\"\ncurl \"https://api.eucompliance.tools/free/sanctions?name=Some%20Company%20Ltd\"\n```\n\nOr get a key with 100 free calls covering every tool at\n**https://api.eucompliance.tools/kaufen** — email in, key out, no card.\n\n---\n\n## Verify any answer without trusting us\n\nEvery response carries a receipt: the result hash, the issue time and an EIP-191\nsignature. Checking it needs no network and no trust in the issuer:\n\n```bash\npip install eucompliance-verify\n```\n```python\nfrom eucompliance_verify import verify_receipt, PaymentPolicy\n\nresult = verify_receipt(response_json)          # recomputes the hash, recovers the signer\npolicy = PaymentPolicy(max_age_hours=24)\nif not policy.check(response_json).allowed:\n    raise RuntimeError(\"do not release this payment\")\n```\n\nSource: [eucompliance-verify](https://github.com/PatrickPi1312/eucompliance-verify) (MIT).\nConformance fixtures for the VAT engine, public domain:\n[eu-vat-conformance](https://github.com/PatrickPi1312/eu-vat-conformance).\n\n---\n\n## Paying\n\nx402 v2, scheme `exact`, network `eip155:8453` (Base mainnet), asset USDC.\nThe payer needs no ETH — gas is sponsored via EIP-3009, with Coinbase CDP as\nfacilitator. Call any endpoint without payment to receive the challenge containing\nthe exact price and payment address.\n\nPrefer an invoice? The operator holds an Austrian trade licence and a VAT ID and\ncan bill normally — see the signup page.\n\n---\n\n## Who runs this\n\n**eucompliance.tools**, operated from Vienna, Austria.\n\nTwo things about the origin, because they explain why the tools are shaped the way\nthey are:\n\nThe VAT engine was not built for a market — it was built because we issue\nreverse-charge invoices ourselves every week and nothing off the shelf produced the\ncodes our accountant, and from 2026 the EU e-invoicing mandates, require. Every rule\nin it is one we file under. The conformance fixtures are public so you can check that\nclaim rather than believe it.\n\nThe on-chain tooling came out of running an agent wallet and getting tired of\ntransactions that failed for reasons the receipt did not explain. The pre-flight\ncheck is the thing we wanted to exist.\n\nOperator: Patrick Kaufmann, sole proprietor in Vienna, Austria (trade licence,\nAustrian VAT ID) — which is why an ordinary invoice is an option alongside\nper-call USDC.\nOn-chain identity: ERC-8004 agent **#60255** on Base.\n\nMIT licensed. No telemetry, no tracking, no key required to look.\n",
  "bytes": 9432,
  "sha": "ea2e1855ec2dc410c53f7866378032cd1f9064a7c2f08f4b2506dfc9443ae96c",
  "repo_slug": "patrickpi1312/eucompliance-tools",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_patrickpi1312_eu_compliance_7baaf9f9/readme"
}