# ANAF e-Factura Romania

Stop wrestling with Romania's e-Factura portal. This MCP lets Claude upload, download, validate, and track electronic invoices directly through the ANAF SPV API — no browser required.

## Quick Start

```bash
# Connect this server (installs CLI if needed)
npx -y @smithery/cli@latest mcp add hegetiby-jwao/anaf-efactura-mcp

# Browse available tools
npx -y @smithery/cli@latest tool list hegetiby-jwao/anaf-efactura-mcp

# Get full schema for a tool
npx -y @smithery/cli@latest tool get hegetiby-jwao/anaf-efactura-mcp anaf_auth_start

# Call a tool
npx -y @smithery/cli@latest tool call hegetiby-jwao/anaf-efactura-mcp anaf_auth_start '{}'
```

## Direct MCP Connection

Endpoint: `https://anaf-efactura-mcp--hegetiby-jwao.run.tools`

## Tools (10)

- `anaf_auth_start` — Genereaza URL OAuth2 ANAF.
- `anaf_auth_callback` — Schimba codul pe token.
- `anaf_upload_invoice` — Incarca XML UBL in e-Factura.
- `anaf_create_and_upload_invoice` — Creeaza UBL din date structurate si incarca in ANAF.
- `anaf_upload_status` — Verifica starea unei incarcari.
- `anaf_download` — Descarca ZIP din SPV.
- `anaf_list_messages` — Lista mesaje SPV.
- `anaf_validate_xml` — Valideaza XML offline.
- `anaf_generate_xml` — Genereaza XML fara upload.
- `anaf_company_lookup` — Info firma dupa CIF (public, fara auth).

```bash
# Get full input/output schema for a tool
npx -y @smithery/cli@latest tool get hegetiby-jwao/anaf-efactura-mcp <tool-name>
```

## Resources

- `anaf://config`
