nota-fiscal-mcp
v0.1.2Emissao, consulta e cancelamento de NF-e e NFS-e no Brasil para agentes de IA, via Focus NFe.
Values you need
| Variable | What it is | |
|---|---|---|
FOCUS_NFE_TOKEN | required secret | Token da conta Focus NFe (homologacao ou producao). |
FOCUS_NFE_AMBIENTE | optional | 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.2Add 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
- Ask the user for: FOCUS_NFE_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
- 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).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: emitir_nfse, consultar_nfse, cancelar_nfse, emitir_nfe, consultar_nfe, cancelar_nfe.
- 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