
Security News
Ruby's Bundler 4.0.18 Extends Cooldown to bundle lock and bundle cache
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.
@codespar/mcp-focus-nfe
Advanced tools
MCP server for Focus NFe — NFe, NFSe, NFCe, CTe, MDFe emission, correction letters, and webhooks
MCP server for Focus NFe — NFe, NFSe, and NFCe fiscal document emission
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 mcp add focus-nfe -- npx @codespar/mcp-focus-nfe
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"
}
}
}
}
| 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 |
Focus NFe uses Basic Auth with the API token as username and empty password.
Focus NFe provides a homologation environment at homologacao.focusnfe.com.br. Set FOCUS_NFE_SANDBOX=true to use it.
FOCUS_NFE_TOKEN environment variable| Variable | Required | Description |
|---|---|---|
FOCUS_NFE_TOKEN | Yes | API token from Focus NFe |
FOCUS_NFE_SANDBOX | No | Set to "true" for homologation mode |
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)batch_nfe — Create multiple NF-e in a single requestbatch_nfse — Create multiple NFS-e in a single requestWant to contribute? Open a PR or request a tool.
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.
MIT
FAQs
MCP server for Focus NFe — NFe, NFSe, NFCe, CTe, MDFe emission, correction letters, and webhooks
We found that @codespar/mcp-focus-nfe demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.

Company News
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.