brazil-invoice
Let AI agents issue Brazilian NFS-e service invoices (nota fiscal de servico) via Focus NFe.
What it can do
- Create Invoice: Issue a Brazil NFS-e (nota fiscal de serviço eletrônica — the electronic service invoice municipalities/prefeituras require) via Focus NFe. Bring your own Focus NFe API token via heade
- Query Invoice: Check a Brazil NFS-e created by create_invoice, using its ref. Status values: PROCESSING (prefeitura is still authorizing — poll again shortly), AUTHORIZED (nota autorizada — numero and
- Cancel Invoice: Cancel (void) an authorized Brazil NFS-e at the prefeitura, using its ref. Requires a justificativa (cancellation reason) of 15 to 255 characters. Only an AUTHORIZED NFS-e can be cance
What data it sees
Do you need an account
No: the server works without sign-in
Let AI agents issue Brazilian NFS-e service invoices (nota fiscal de servico) via Focus NFe. Stateless remote MCP server: bring your own key, it stores nothing. Create, query, and cancel invoices with async issuance polling built in.
How to connect
How to connect brazil-invoice to Claude
The server address to paste into Claude settings:
https://brazil-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 brazil-invoice to ChatGPT
The server address to paste into ChatGPT settings:
https://brazil-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 brazil-invoice to Cursor
The server address to paste into Cursor settings:
https://brazil-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 Brazil NFS-e (nota fiscal de serviço eletrônica — the electronic service invoice municipalities/prefeituras require) via Focus NFe. Bring your own Focus NFe API token via header x-focusnfe-token — a free homologação (sandbox) token issues test NFS-e with no fiscal effect; the produção token issues real ones (send header x-focusnfe-mode: production to switch; default is the safer sandbox). The merchant's digital certificate and municipal registration live in their own Focus NFe account; this server never sees or stores them. ISSUANCE IS ASYNCHRONOUS: this returns status PROCESSING plus a ref — poll query_invoice with that ref until the prefeitura authorizes (AUTHORIZED) or rejects (ERROR). This is for service invoices (serviços); NF-e for physical goods is on the v2 roadmap. |
| query_invoice | Check a Brazil NFS-e created by create_invoice, using its ref. Status values: PROCESSING (prefeitura is still authorizing — poll again shortly), AUTHORIZED (nota autorizada — numero and codigo_verificacao are populated, url links the official NFS-e), ERROR (authorization was rejected — see message for the reason), CANCELED (voided). Safe to call anytime. |
| cancel_invoice | Cancel (void) an authorized Brazil NFS-e at the prefeitura, using its ref. Requires a justificativa (cancellation reason) of 15 to 255 characters. Only an AUTHORIZED NFS-e can be canceled; cancellation is permanent. |