
Mcp Focus Nfe
io.github.codesparPublished by GitHub account codesparv0.2.2Updated Oct 24, 2026
MCP server for Focus NFe — NFe, NFSe, NFCe emission and management
Overview
Local MCP server for Focus NFe that lets an assistant issue, query and cancel Brazilian electronic fiscal documents (NFe, NFSe, NFCe, CTe, MDFe) and manage webh
- What you can do
- Create, query and cancel NFe invoices, including PDF (DANFE) links and correction letters (CCe). Create, query and cancel NFSe service invoices and NFCe consumer invoices. Create, query and cancel CTe transport documents and create or close MDFe cargo manifests. Register, list and delete webhooks that notify a URL on fiscal document events.
- When to use it
- Useful when an assistant should help a Brazilian business issue or track electronic fiscal documents through Focus NFe, or wire document events to a webhook, without leaving the chat. Test in the homologation sandbox before touching real documents.
- Requirements
- Runs locally via npx from the npm package @codespar/mcp-focus-nfe, so Node.js is needed. A Focus NFe account and API token are required, supplied through the FOCUS_NFE_TOKEN environment variable; the optional FOCUS_NFE_SANDBOX variable set to true switches to the homologation environment. Network access to Focus NFe is required.
Installation
In SourceWeft
- Open Mcp Focus Nfe in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
@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:
Claude Code
Cursor / VS Code
Add to .cursor/mcp.json or .vscode/mcp.json:
Tools (19)
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
- Go to Focus NFe
- Create an account
- Get your API token from the dashboard
- Set the
FOCUS_NFE_TOKENenvironment variable
Environment Variables
Roadmap
v0.2 (planned)
create_cte— Create a CT-e (electronic transport document)get_cte— Get CT-e details by IDcorrection_letter— Issue a correction letter for an NF-emanifest_recipient— Manifest recipient awareness of an NF-eget_nfse_pdf— Get PDF for a service invoice (NFS-e)
v0.3 (planned)
batch_nfe— Create multiple NF-e in a single requestbatch_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
Source: packages/fiscal/focus-nfe/README.md at commit d0a519a
Tools
0Version history
1- v0.2.2LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts