Focus Nfe

Finance and commerce

MCP server for Focus NFe, NFe, NFSe, NFCe emission and management.

Your AI app calls the Focus Nfe MCP server, which does the finance and commerce work and sends the result back to the chat.

About Focus Nfe

Focus Nfe is a community MCP server from codespar, filed in our directory under finance and commerce. MCP server for Focus NFe, NFe, NFSe, NFCe emission and management.

Focus Nfe runs on your own machine: your AI app starts it with the command npx -y @codespar/mcp-focus-nfe@0.2.2 and talks to it over standard input and output. It needs FOCUS_NFE_TOKEN set before Focus Nfe starts.

Focus Nfe is listed in the official MCP registry as io.github.codespar/mcp-focus-nfe, version 0.2.2.

At a glance

Publisher
codespar (community)
Runs
Locally on your machine
Install from
Node.js package on npm: @codespar/mcp-focus-nfe
Written in
TypeScript
License
MIT
GitHub stars
278
Official MCP registry
io.github.codespar/mcp-focus-nfe

How to set up Focus Nfe

  1. Install Node.js on the machine that runs your AI app, because Focus Nfe starts with npx and downloads its package on first run.
  2. Create FOCUS_NFE_TOKEN for Focus Nfe in the connected service's own settings, scoped to the smallest permissions the job needs.
  3. Add Focus Nfe to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Focus Nfe tools to confirm the connection.
  5. Run one read-only task with Focus Nfe first, and keep your app asking before each tool call until the results look right.

Focus Nfe compared with similar servers

  • Foxbit by codespar has fewer GitHub stars than Focus Nfe (278 against 278); both are community servers, and both run locally.
  • Flow Cl by codespar has fewer GitHub stars than Focus Nfe (278 against 278); both are community servers, and both run locally.
  • Getnet by codespar has fewer GitHub stars than Focus Nfe (278 against 278); both are community servers, and both run locally.

Before you connect Focus Nfe

  • Give Focus Nfe its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Focus Nfe tool call until you trust what it does with them.
  • Treat text that Focus Nfe fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Focus Nfe on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Focus Nfe

How marketing and sales teams put Focus Nfe to work, by company size. Pick the size closest to yours and start Focus Nfe on one use case.

Small business

  • A small business can ask Focus Nfe which products and customers drive margin, then plan promotions around them.
  • Owners can use Focus Nfe to check refunds, failed payments and churn reasons without opening three dashboards.
  • Focus Nfe runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Ecommerce teams can connect Focus Nfe to tie campaigns to orders and revenue, not just clicks.
  • Marketing and finance can use Focus Nfe to check spend against budget each week and move money to what's working.
  • Start Focus Nfe on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises should keep Focus Nfe read-only for agents, with any money movement handled by people and existing approvals.
  • Large commerce teams can use Focus Nfe to answer revenue questions by channel and region with figures finance signs off on.
  • Focus Nfe is a community server, so have security review the code and pin a version before Focus Nfe touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Focus Nfe README

From codespar/mcp-dev-latam on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

@codespar/mcp-focus-nfe

MCP server for Focus NFe, NFe, NFSe, and NFCe fiscal document emission

Quick Start

Claude Desktop

Add to ~/.config/claude/claude_desktop_config.json:

{
  "mcpServers": {
    "focus-nfe": {
      "command": "npx",
      "args": ["-y", "@codespar/mcp-focus-nfe"],
      "env": {
        "FOCUS_NFE_TOKEN": "your-token",
        "FOCUS_NFE_SANDBOX": "true"
      }
    }
  }
}
Claude Code
claude mcp add focus-nfe -- npx @codespar/mcp-focus-nfe
Cursor / VS Code

Add to .cursor/mcp.json or .vscode/mcp.json:

{
  "servers": {
    "focus-nfe": {
      "command": "npx",
      "args": ["-y", "@codespar/mcp-focus-nfe"],
      "env": {
        "FOCUS_NFE_TOKEN": "your-token",
        "FOCUS_NFE_SANDBOX": "true"
      }
    }
  }
}

Tools (19)

Tool Purpose
create_nfe Create and emit an NFe (nota fiscal eletronica)
get_nfe Get NFe details and status by reference
cancel_nfe Cancel an authorized NFe (within 24h of emission)
get_nfe_pdf Get NFe PDF (DANFE) download URL
send_correction_letter Send a correction letter (Carta de Correcao / CCe) for an authorized NFe
create_nfse Create and emit an NFSe (nota fiscal de servico)
get_nfse Get NFSe details and status by reference
cancel_nfse Cancel an authorized NFSe
create_nfce Create and emit an NFCe (nota fiscal do consumidor eletronica)
get_nfce Get NFCe details and status by reference
cancel_nfce Cancel an authorized NFCe
create_cte Create and emit a CTe (conhecimento de transporte eletronico) for cargo transport
get_cte Get CTe details and status by reference
cancel_cte Cancel an authorized CTe
create_mdfe Create and emit an MDFe (manifesto eletronico de documentos fiscais) for cargo transport manifest
close_mdfe Close/finalize an MDFe (encerramento) after trip completion
register_webhook Register a webhook trigger (gatilho) that notifies your URL when fiscal document events occur
list_webhooks List all registered webhooks (gatilhos)
delete_webhook Delete a registered webhook by ID

Authentication

Focus NFe uses Basic Auth with the API token as username and empty password.

Sandbox / Testing

Focus NFe provides a homologation environment at homologacao.focusnfe.com.br. Set FOCUS_NFE_SANDBOX=true to use it.

Get your credentials
  1. Go to Focus NFe
  2. Create an account
  3. Get your API token from the dashboard
  4. Set the FOCUS_NFE_TOKEN environment variable

Environment Variables

Variable Required Description
FOCUS_NFE_TOKEN Yes API token from Focus NFe
FOCUS_NFE_SANDBOX No Set to "true" for homologation mode

Roadmap

v0.2 (planned)
  • create_cte, Create a CT-e (electronic transport document)
  • get_cte, Get CT-e details by ID
  • correction_letter, Issue a correction letter for an NF-e
  • manifest_recipient, Manifest recipient awareness of an NF-e
  • get_nfse_pdf, Get PDF for a service invoice (NFS-e)
v0.3 (planned)
  • batch_nfe, Create multiple NF-e in a single request
  • batch_nfse, Create multiple NFS-e in a single request

Want to contribute? Open a PR or request a tool.

Links

Enterprise

Need governance, budget limits, and audit trails for agent payments? CodeSpar Enterprise adds policy engine, payment routing, and compliance templates on top of these MCP servers.

License

MIT

Questions about Focus Nfe

What is the Focus Nfe MCP server?

MCP server for Focus NFe, NFe, NFSe, NFCe emission and management. Focus Nfe is maintained by codespar on GitHub at codespar/mcp-dev-latam, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Focus Nfe MCP server?

Add Focus Nfe to your AI app's MCP config with the command npx -y @codespar/mcp-focus-nfe@0.2.2. In Claude Code, run claude mcp add --transport stdio codespar-focus-nfe -- npx -y @codespar/mcp-focus-nfe@0.2.2. To run Focus Nfe this way you need Node.js installed.

Does Focus Nfe need an API key?

Yes. Focus Nfe expects FOCUS_NFE_TOKEN to be set. Create the key for Focus Nfe in the connected service's own settings, give it the smallest permissions the job needs, and keep it out of shared config files.

Is Focus Nfe an official MCP server?

No. Focus Nfe is a community server maintained by codespar. Community servers can be excellent; read the code and the open issues before you give Focus Nfe access to company data.

What license is Focus Nfe under?

Focus Nfe is released under the MIT license, according to its GitHub repository. The license covers the code of Focus Nfe; the service it connects to has its own terms.