# Ecuador Invoice MCP > A remote MCP server that lets any AI agent issue Ecuador electronic invoices — factura electrónica, stamped at the SRI — via Datil (comprobante electrónico). Create and query invoices. Stateless, bring-your-own credentials, never stores anything. - MCP endpoint (Streamable HTTP): https://inv-ec.wishpool.app/mcp - Credentials headers: x-datil-key (your Datil API key from app.datil.co) and x-datil-password (the password of your .p12 signing certificate, uploaded to your Datil account). Your SRI signing certificate stays in your own Datil account; this server forwards the headers and stores/logs nothing. - Environment: create_invoice defaults to the SRI TEST sandbox (ambiente 1, no fiscal effect). Pass environment:"production" (ambiente 2) to emit a real invoice; the owner may also set header x-datil-mode:production. - Flow: create_invoice (returns id + clave_acceso) -> query_invoice(id) to poll the SRI estado until AUTORIZADO. - Amounts in USD (2 decimals). Item prices are NET; IVA (15% standard, or 0%) is added on top. You pass your emisor (RUC, razón social, address, establecimiento/punto de emisión, secuencial); Datil signs with your certificate and transmits to the SRI. ## Tools - create_invoice: Issue a factura electrónica — emisor + buyer (comprador) + items in, id/clave_acceso/estado out. Defaults to TEST; requires environment:"production" for a real SRI invoice. - query_invoice: Fetch an invoice by Datil id — SRI estado (RECIBIDO / ENVIADO / AUTORIZADO / NO AUTORIZADO / DEVUELTO / ERROR), numero_autorizacion, and SRI messages. - Owner policy guardrails: x-agentpay-max-amount (hard cap on invoice total, USD), x-agentpay-approval-above (returns an unsigned draft for human review), x-agentpay-allowed-tools (tool allow-list) — set by the human owner in the MCP client config; the agent cannot relax them. ## Safety Stateless translation layer. The SRI certification burden sits with Datil; the merchant's digital signing certificate (.p12), its password, and API key stay in the merchant's own Datil account. This server never stores credentials, invoices, or customer data, and never logs the certificate password. Privacy policy: https://inv-ec.wishpool.app/privacy ## Sister servers Mexico CFDI 4.0 factura electrónica live: https://inv-mx.wishpool.app/mcp. Chile DTE (boleta/factura electrónica) live: https://inv-cl.wishpool.app/mcp. Same stateless BYO pattern, local payments in 81 countries — full list: https://mcp.wishpool.app/llms.txt (Taiwan e-invoice 電子發票 lives in https://mcp.wishpool.app/mcp). More invoice countries coming: Brazil NF-e, Peru CPE, Colombia DIAN, India GST e-invoicing.