chile-invoice
Let AI agents issue Chilean DTE electronic documents (boleta 39 / factura 33) via OpenFactura.
What it can do
- Create Invoice: Issue a Chile electronic tax document (DTE) through OpenFactura (Haulmer): a boleta electrónica (consumer receipt, TipoDTE 39, default) or a factura electrónica (B2B invoice, TipoDTE 3
- Query Invoice: Fetch a DTE you emitted (by document_type + folio) from OpenFactura. Status values: ISSUED (accepted by OpenFactura, awaiting/without an SII acceptance timestamp), ACCEPTED_BY_SII (SII
- Cancel Invoice: Void a Chile DTE by issuing a nota de crédito electrónica (TipoDTE 61) that references the original with CodRef=1 (anula documento) — this is the SII-correct way to cancel; there is no
What data it sees
Do you need an account
No: the server works without sign-in
Let AI agents issue Chilean DTE electronic documents (boleta 39 / factura 33) via OpenFactura. Stateless remote MCP server: bring your own key, it stores nothing. Create, query, and void documents (credit note 61) with SII compliance handled by the provider.
How to connect
How to connect chile-invoice to Claude
The server address to paste into Claude settings:
https://chile-invoice--wishpool.run.tools
- Open Claude (claude.ai or the desktop app).
- Go to Settings → Connectors.
- Click Add custom connector.
- Paste the server address copied below into Remote MCP server URL and click Add.
- In a chat, click + → Connectors and switch the new connector on.
Custom connectors are available on Free, Pro, Max, Team and Enterprise plans (Free is limited to one). On Team and Enterprise an organization Owner adds the connector first under Organization settings → Connectors.
Authorization
After you click Add, a sign-in window for the service opens. Sign in with your own account and approve access. Claude never sees your password.
How to connect chile-invoice to ChatGPT
The server address to paste into ChatGPT settings:
https://chile-invoice--wishpool.run.tools
- Open ChatGPT in a browser (chatgpt.com). A Plus, Pro, Business, Enterprise or Edu plan is required.
- Turn on developer mode once: Settings → Apps → Advanced settings → Developer mode.
- Open Settings → Connectors and click Create.
- Fill in the form: Name (anything), Description (one line about what the service does), MCP server URL (copy it below).
- Under Authentication choose OAuth if the service requires sign-in, otherwise None. Click Create.
- In a new chat open + → Apps/Connectors and enable the connector.
OpenAI has renamed this section before (Connectors → Apps/Plugins). If the label differs, search settings for "developer mode". On Business/Enterprise workspaces an admin must allow custom connectors first.
Authorization
On first use ChatGPT opens the service's sign-in window. Sign in and approve access.
How to connect chile-invoice to Cursor
The server address to paste into Cursor settings:
https://chile-invoice--wishpool.run.tools
Fastest: click Open in Cursor below and confirm the prompt.
Manually:
- In Cursor open Settings → Cursor Settings → MCP and click Add new global MCP server.
- Paste the JSON copied below into
~/.cursor/mcp.json(per project:.cursor/mcp.jsonin the repo root). - Save the file. The server appears in the MCP list; authorize it there if asked.
Authorization
If the service needs sign-in, an authorize button appears next to the server in the MCP list.
Server tool list (3)
Raw names from tools/list. Only developers need these.
| create_invoice | Issue a Chile electronic tax document (DTE) through OpenFactura (Haulmer): a boleta electrónica (consumer receipt, TipoDTE 39, default) or a factura electrónica (B2B invoice, TipoDTE 33), stamped against SII with the merchant's own CAF. Bring your own OpenFactura API key via header x-openfactura-key. Runs against the OpenFactura DEV sandbox by default (no fiscal effect); send header x-openfactura-mode: production to emit real SII documents. The Emisor (your company RUT, razón social, giro, address) is auto-derived from your account — you do not pass it. Amounts are in CLP (Chilean pesos: whole integers, no decimals). IMPORTANT price convention: for a boleta (39) each price is GROSS (IVA 19% already included, as shown to consumers); for a factura (33) each price is NET (IVA 19% is added on top). |
| query_invoice | Fetch a DTE you emitted (by document_type + folio) from OpenFactura. Status values: ISSUED (accepted by OpenFactura, awaiting/without an SII acceptance timestamp), ACCEPTED_BY_SII (SII reception timestamp present). Returns the receptor, net/IVA/total (CLP). Safe to call anytime. (OpenFactura resolves your Emisor RUT from the API key automatically.) |
| cancel_invoice | Void a Chile DTE by issuing a nota de crédito electrónica (TipoDTE 61) that references the original with CodRef=1 (anula documento) — this is the SII-correct way to cancel; there is no delete. Pass the original document_type + folio; the credit note mirrors the original net amount and reverses it. Returns the credit-note folio. Runs in the same mode (dev/production) as the header x-openfactura-mode. |