servers / costa-rica-invoices-hacienda-comprobante-electronico-v4-4
Costa Rica Invoices (Hacienda comprobante electronico v4.4) MCP server
communitystreamable_httpremotewrite capablehealthy
Costa Rica Hacienda v4.4: AI agents submit and query electronic invoices, stateless BYO.
01Tools · 3
How to read this: tool names here are observed from a live tools/list handshake. The Risk label is a heuristic inferred from the tool name (write/destructive verbs), not from executing the tool — a conservative guess, not a verified capability. We never escalate risk from a description. Found one that's wrong? Tell us — we fix on report.
| Tool | Risk | Side effects | Approval |
|---|---|---|---|
| submit_invoice Submit an ALREADY-SIGNED Costa Rica electronic invoice (comprobante electronico v4.4) to the Ministerio de Hacienda reception gateway — the /recepcion call. You build the v4.4 XML (FacturaElectronica / TiqueteElectronico / NotaCredito etc.), sign it with YOUR Hacienda certificate (llave criptografica), and pass { clave, fecha, emisor, receptor?, comprobante_xml(base64 signed XML) }. This server does NOT sign and does NOT hold your certificate — it exchanges your ATV API user/password for an OAuth token and forwards the bytes untouched. Hacienda accepts the document for ASYNCHRONOUS processing: a successful call returns HTTP 202 with ind_estado "recibido"/"procesando" — you then poll query_invoice to get the final ind_estado "aceptado" (accepted) or "rechazado" (rejected). Required credential headers (set once in your MCP client, per-request, never stored): x-hacienda-username (your ATV API user) + x-hacienda-password (its password) — exchanged for a short-lived OAuth token at the Hacienda IdP. Optional header x-hacienda-mode: stag (default, sandbox, no fiscal effect) | prod (production, real fiscal effect). Optional owner-policy headers x-agentpay-max-amount / x-agentpay-approval-above / x-agentpay-allowed-tools. | write | true | unknown |
| query_invoice Query the processing status of a previously submitted Costa Rica comprobante by its 50-digit clave — the GET /recepcion/{clave} call. Returns ind_estado: "recibido" (queued) / "procesando" (in process) / "aceptado" (ACCEPTED — fiscally valid, hand respuesta_xml to the buyer) / "rechazado" (REJECTED — read respuesta_xml for the reason, fix and resubmit) / "error". respuesta_xml (base64) is the Hacienda "Mensaje Hacienda" response document. Poll this after submit_invoice until ind_estado is aceptado or rechazado. Required credential headers (set once in your MCP client, per-request, never stored): x-hacienda-username (your ATV API user) + x-hacienda-password (its password) — exchanged for a short-lived OAuth token at the Hacienda IdP. Optional header x-hacienda-mode: stag (default, sandbox, no fiscal effect) | prod (production, real fiscal effect). Optional owner-policy headers x-agentpay-max-amount / x-agentpay-approval-above / x-agentpay-allowed-tools. | write | true | unknown |
| build_clave Assemble a Costa Rica 50-digit clave numerica from its parts — a PURE LOCAL helper (no network, no credentials, no fiscal effect). Structure: 506 + DD + MM + YY + cedula(12) + consecutivo(20) + situacion(1) + codigoSeguridad(8). Provide either the ready-made 20-digit consecutivo, or its parts (sucursal, terminal, tipoComprobante, numeroConsecutivo). tipoComprobante codes: 01=Factura, 02=Nota Debito, 03=Nota Credito, 04=Tiquete, 08=Factura de Compra, 09=Factura de Exportacion, 10=Recibo de Pago. situacion: 1=normal, 2=contingencia, 3=sin internet. Pass codigoSeguridad (8 digits) for a reproducible clave, or omit to auto-generate one. Returns the clave plus a labelled breakdown. Does NOT sign or submit. | unknown | unknown | unknown |
02Install & source
https://inv-cr.wishpool.app/mcp
remote_url- repohttps://github.com/junter1989k-ai/costa-rica-invoice-mcp
- homepagehttps://inv-cr.wishpool.app/mcp
- licenseMIT
- adoption0 stars · 0 forks
03Access granted
Process payments · write
The access this server can exercise, inferred from its verified tools — not a declared OAuth scope.
05Provenance & freshness
sourcesOfficial MCP Registry [p1]
last_checked2026-07-10 09:21Z
next_check2026-07-11 14:08Z
cadenceevery 29h
verifiedtools_list:passed handshake:passed metadata:passed
index_statusindex — 9 unique facts >= 5
06Badge
Add the “as seen on MCPExplorer” badge to your README.
[](https://mcpexplorer.com/servers/costa-rica-invoices-hacienda-comprobante-electronico-v4-4)
Next step
This is one server. A loadout combines the right servers, governance, and proven plays for a whole job — assembled deliberately, not tool-dumped.
Explore loadouts →