Skip to main content
FO

Focus NFe

v0.2.1API 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

What your agent can do

Focus NFe gives your agent 19 tools it calls directly β€” pick the ones it needs, in Claude, Cursor, or any MCP client.

  • 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)
Example call
// Your agent calls a tool directly β€” no glue code.
// CodeSpar's managed tier handles OAuth2, token rotation and rate limits.
const result = await session.call("create_nfe", { /* ... */ });

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

Run `npx -y @codespar/mcp-focus-nfe` and add the config block above to your MCP client β€” Claude, Cursor, VS Code, or any MCP-compatible client. No build step, no SDK required. Prefer hosted? CodeSpar's managed tier runs it for you with auth handled.
Focus NFe β€” MCP server Β· 19 tools | CodeSpar