# com.einvoicewiz/einvoicewiz

> Generate & validate EN 16931 e-invoices (Factur-X, ZUGFeRD, XRechnung); verification certificates

- name: com.einvoicewiz/einvoicewiz
- version: 1.0.0
- connection class: R0 (autonomous)
- trust: 80/100 flags: no-repository
- quality: 79/100 (good)
- owner: not claimed
- descriptor: https://api.protogrid.dev/v1/servers/com.einvoicewiz%2Feinvoicewiz
- tools: https://api.protogrid.dev/v1/servers/com.einvoicewiz%2Feinvoicewiz/tools

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

## Connection (mcpServers)

```json
{
  "mcpServers": {
    "einvoicewiz": {
      "type": "http",
      "url": "https://einvoicewiz.com/mcp",
      "headers": {
        "X-API-Key": "${X_API_KEY}"
      }
    }
  }
}
```

Placeholders to fill: `${X_API_KEY}`.

## Trust

- hygiene: 80
- liveness: 100
- freshness: 85
- provenance: 55
- drivers: +dns-namespace +website +reachable +uptime-100% ~updated-50d-ago -no-repository
- Derived from observable signals (official registry feed and our own credential-free probes); no code audit performed.

## Quality 79/100 (good)

### 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: 71 (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
- fail `tools.annotations`: no tool declares readOnlyHint or destructiveHint, so clients cannot tell safe calls from risky ones
- fail `tools.directory_hints`: no tool declares all four of readOnlyHint, destructiveHint, idempotentHint and openWorldHint; missing: validate_einvoice (readOnlyHint, destructiveHint, idempotentHint, openWorldHint); signup (readOnlyHint, destructiveHint, idempotentHint, openWorldHint); lookup_certificate (readOnlyHint, destructiveHint, idempotentHint, openWorldHint); …
- pass `tools.token_cost`: about 775 tokens to load every tool
- pass `tools.api_dump`: tools are not a one-to-one API dump

### stability: 100 (weight 15)

- pass `stability.changes`: no tool changes in 30 days
- pass `stability.rug_pull`: no tool changed its meaning under the same name

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

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

- tools: 7, about 775 tokens to load them all
- tool set hash: 5af2f8d439a528f458280a94bca7609f
- badge: [![protogrid quality](https://protogrid.dev/badge/com.einvoicewiz/einvoicewiz.svg)](https://protogrid.dev/servers/com.einvoicewiz/einvoicewiz)
- Checks run on what our credential-free, read-only probes observe; tools are never called and no code audit is performed.

### Tool changes

_No tool definition changes recorded._

## Remotes

- https://einvoicewiz.com/mcp (streamable-http, auth none, reachable true, uptime30d 1)

## Packages

_none_

## Tools (7)

- `check_credits`: Credits remaining and calls used for an API key.
- `create_facturx_pdf`: Your existing PDF invoice + invoice JSON → Factur-X / ZUGFeRD PDF/A-3 with embedded XML (1 credit).

    pdf_base64: the original PDF, base64-encoded (max 15 MB). Returns {pdf_base64, cert_id, verify_url,
    credits_left}. The output is validated (EN 16931 + PDF/A-3) before delivery; failures are not charged.
- `generate_einvoice_xml`: Invoice JSON → validated EN 16931 CII XML (1 credit; failures free).

    profile: "en16931" (Factur-X/ZUGFeRD data, B2B) or "xrechnung" (German public sector; needs
    invoice.buyer_reference = Leitweg-ID and seller contact_email/contact_phone).
    Invoice schema: see https://einvoicewiz.com/openapi.json  (required: invoice_number, issue_date,
    currency, seller{name,country}, buyer{name,country}, lines[{name,qty,unit_price,vat_rate}]).
    Returns {xml, validation, verify:{id,url}, credits_left}. On 422 the body lists the violated rules.
- `lookup_certificate`: Look up a verification certificate (EIW-…) — free, no key. Confirms which file hashes passed validation and when.
- `signup`: Create an einvoicewiz API key with 20 free credits (no card). The key is shown once — store it.
- `validate_einvoice`: Validate a Factur-X / ZUGFeRD / XRechnung file (PDF or XML, base64) against EN 16931 + KOSIT + PDF/A (1 credit).

    Returns the rule-level report {result:{status, errors[], warnings[], profile}, verify, credits_left}.
    verify is set only when the file passed.
- `which_format_do_i_need`: Decision helper (free, no key): which e-invoice format a recipient needs and whether a plain PDF is still acceptable.
