Skip to main content
FO

Focus NFe

v0.2.0API Key

NF-e, NFS-e, and NFC-e emission with automatic SEFAZ validation. Simplified fiscal compliance for any Brazilian business.

19 tools1 env vars๐Ÿ‡ง๐Ÿ‡ท Brazilstable on npm

Install

terminal
$ npm install @codespar/mcp-focus-nfe

Quickstart

Add this entry to your claude_desktop_config.json (or any MCP-compatible client config).

claude_desktop_config.json
{
  "mcpServers": {
    "focus-nfe": {
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-focus-nfe"
      ],
      "env": {
        "FOCUS_NFE_TOKEN": "<your_focus_nfe_token>"
      }
    }
  }
}

After restart, your agent can call any of the 19 tools below โ€” try create_nfe first.

Environment variables ยท 1

Required to authenticate the server. Stored encrypted when using CodeSpar managed hosting.

FOCUS_NFE_TOKEN
requiredsecret

API key for focus-nfe

Available tools ยท 19

Each tool is independent โ€” your agent loads only what it needs to reduce context and response time.

WRITEcreate_nfe
Create and emit an NFe (nota fiscal eletronica)
READget_nfe
Get NFe details and status by reference
DELETEcancel_nfe
Cancel an authorized NFe (within 24h of emission)
READget_nfe_pdf
Get NFe PDF (DANFE) download URL
WRITEsend_correction_letter
Send a correction letter (Carta de Correcao / CCe) for an authorized NFe
WRITEcreate_nfse
Create and emit an NFSe (nota fiscal de servico)
READget_nfse
Get NFSe details and status by reference
DELETEcancel_nfse
Cancel an authorized NFSe

Compatible frameworks

MCP is a protocol โ€” any framework that speaks it can mount this server.

Claude Agent SDKAnthropic
OpenAI AgentsOpenAI
Vercel AI SDKVercel
LangChainLangChain
LlamaIndexLlamaIndex
CrewAICrewAI
MastraMastra
Any MCP clientProtocol

Frequently asked questions

All credentials are encrypted at rest in an isolated vault scoped per organization. OAuth2 tokens are automatically refreshed before expiry. Your agent code never sees raw secrets โ€” it receives scoped, short-lived session tokens.
Servers โ€” Every LatAm commerce API your agent needs | CodeSpar