nota-fiscal-mcp

v0.1.2
io.github.FAVIOSENGER/nota-fiscal-mcp Checked 1 day ago Published 1 month ago

Emissao, consulta e cancelamento de NF-e e NFS-e no Brasil para agentes de IA, via Focus NFe.

Values you need

VariableWhat it is
FOCUS_NFE_TOKENrequired secret Token da conta Focus NFe (homologacao ou producao).
FOCUS_NFE_AMBIENTEoptional Ambiente: 'homologacao' (padrao) ou 'producao'.

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add nota-fiscal-mcp -e 'FOCUS_NFE_TOKEN=<FOCUS_NFE_TOKEN>' -- npx -y nota-fiscal-mcp@0.1.2
Add to claude_desktop_config.json
{
  "mcpServers": {
    "nota-fiscal-mcp": {
      "args": [
        "-y",
        "nota-fiscal-mcp@0.1.2"
      ],
      "command": "npx",
      "env": {
        "FOCUS_NFE_TOKEN": "<FOCUS_NFE_TOKEN>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "nota-fiscal-mcp": {
      "args": [
        "-y",
        "nota-fiscal-mcp@0.1.2"
      ],
      "command": "npx",
      "env": {
        "FOCUS_NFE_TOKEN": "<FOCUS_NFE_TOKEN>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "FOCUS_NFE_TOKEN",
      "id": "focus-nfe-token",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "nota-fiscal-mcp": {
      "args": [
        "-y",
        "nota-fiscal-mcp@0.1.2"
      ],
      "command": "npx",
      "env": {
        "FOCUS_NFE_TOKEN": "${input:focus-nfe-token}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.nota-fiscal-mcp]
command = "npx"
args = ["-y", "nota-fiscal-mcp@0.1.2"]
env = { "FOCUS_NFE_TOKEN" = "<FOCUS_NFE_TOKEN>" }

For AI agents

  1. Ask the user for: FOCUS_NFE_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: emitir_nfse, consultar_nfse, cancelar_nfse, emitir_nfe, consultar_nfe, cancelar_nfe.
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json