• STATUS
  • VOID
  • LOGS
  • HUMAN

How to cancel and track invoices with your AI

Connect Focus NFe to your agent to manage NFe documents through chat. You can pull up specific invoice details or void them when mistakes happen.

Ask AI about this page

Short answer

Can I track and cancel NFe invoices with my AI?

Yes. Your agent uses Focus NFe to look up document statuses and void authorized invoices. You'll get real-time updates on whether an invoice is valid or already canceled.

Where every action lands.

The outcomes of your requests.

Depending on what you ask, your agent will provide data or execute changes in Focus NFe.

STATUS

Document verification

The AI pulls the current state of an NFe. You'll see if it's authorized, canceled, or pending.

VOID

Invoice cancellation

The agent voids authorized documents. This updates the status in Focus NFe immediately.

LOGS

Audit trail

You get a clear view of the document history. This helps you confirm that a cancellation actually went through.

HUMAN

Manual intervention

If a document is already canceled or blocked, the AI will tell you. You'll need to handle those cases manually in your ERP.

The workflow

What your AI does when you ask about invoices.

The agent acts as a bridge between your chat interface and the Focus NFe system.

  1. Lookup

    The agent searches for the specific NFe you're asking about to find its current status.

    consult_document
  2. Validation

    It checks if the document is in a state that allows for cancellation.

    consult_document
  3. Cancellation

    The agent sends the command to void the authorized invoice.

    cancel_document
  4. Confirmation

    The agent verifies the change was successful by checking the document again.

    consult_document

Try it

Copy these to start.

Use these prompts to trigger actions in Focus NFe.

Starting points

Replace the bracketed info with your actual NFe numbers or client names.

Focus NFe Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_Vu8VDwORqN3itzXZWHiiXsz3NsjwF5EQKPSPFqWU/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat — Focus NFe capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "focus-nfe-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_Vu8VDwORqN3itzXZWHiiXsz3NsjwF5EQKPSPFqWU/mcp"
    }
  }
}
Copy into chat04
  • Check the status of NFe 12345.

  • Can you cancel invoice 67890 for me?

  • Is NFe 55443 still authorized?

  • Find the status of the last invoice issued to Acme Corp.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect Focus NFe once, then ask.

Just link your account once. Your credentials stay encrypted, and you can start managing invoices in any MCP-compatible client.

Connect Focus NFe to your AI

FAQ

How this task behaves.

  • 01

    Can the AI create a new invoice?

    No. This MCP only handles looking up existing documents and canceling authorized ones.

  • 02

    What happens if I try to cancel an already canceled invoice?

    The AI will report that the document cannot be canceled because its status is already set to canceled.

  • 03

    Does the AI delete the invoice from the system?

    No. It only voids authorized invoices. The record remains in the system with a canceled status.

  • 04

    Can the AI change the values on an invoice?

    No. The tools only allow for status consultation and cancellation.

  • 05

    Do I need to stay in the chat to finish the cancellation?

    No. Once the agent executes the command, the change is live in Focus NFe.

  • More questions about Focus NFe? The Connector page answers them. See everything the Focus NFe Connector can do

Connect Focus NFe to Claude, Cursor, ChatGPT & more