MCP Server para consulta de NFSe no portal nacional (nfse.gov.br)
Most developer tooling work still happens through a UI a human drives. MCP Nfse Nacional MCP server moves it into the conversation instead. MCP Server para consulta de NFSe no portal nacional (nfse.gov.br).
MCP Server para consulta de Notas Fiscais de Serviço Eletrônicas (NFSe) no portal nacional (nfse.gov.br). Permite que agentes de IA autentiquem-se com certificado digital e-CNPJ/e-CPF e consultem, detalhem e baixem PDFs de NFSe emitidas.
mcp-nfse-nacional on npm is all you need. Most clients run it directly, so configuration is a few lines and a restart.
The server publishes 10 tools. What each one is for:
Ferramenta — Descriçãonfse_buscar — Busca NFSe emitidas em um período. Retorna lista com data, destinatário, valor, status e chave de cada notanfse_detalhes — Obtém os detalhes completos de uma NFSe a partir da sua chave. Retorna cabeçalho, emitente, valores, DPS e salva o XML localmentenfse_pdf — Baixa o PDF (DANFSe) de uma NFSe a partir da sua chave. Retorna o caminho do arquivo PDF salvo localmenteCERT_FILE — SimCERT_PASSWORD — SimMCP_TRANSPORT — NãoMCP_HOST — NãoMCP_PORT — NãoSTORAGE_PATH — NãoConfiguration is passed through the environment: CERT_FILE, CERT_PASSWORD, STORAGE_PATH. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.
Plenty of developer tooling servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. MCP Nfse Nacional's toolset — Ferramenta, nfse_buscar, nfse_detalhes and 7 more — is a fair guide to whether it matches your workflow. It is maintained by samuelmoraesf; worth a glance at recent repository activity before you build anything load-bearing on it.
SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.
| Tool | What it does |
|---|---|
| Ferramenta | Descrição |
| nfse_buscar | Busca NFSe emitidas em um período. Retorna lista com data, destinatário, valor, status e chave de cada nota. |
| nfse_detalhes | Obtém os detalhes completos de uma NFSe a partir da sua chave. Retorna cabeçalho, emitente, valores, DPS e salva o XML localmente. |
| nfse_pdf | Baixa o PDF (DANFSe) de uma NFSe a partir da sua chave. Retorna o caminho do arquivo PDF salvo localmente. |
| CERT_FILE | **Sim** |
| CERT_PASSWORD | **Sim** |
| MCP_TRANSPORT | Não |
| MCP_HOST | Não |
| MCP_PORT | Não |
| STORAGE_PATH | Não |
{
"mcpServers": {
"nfse-nacional": {
"command": "npx",
"args": ["-y", "mcp-nfse-nacional"],
"env": {
"CERT_FILE": "your-value",
"CERT_PASSWORD": "your-value",
"STORAGE_PATH": "your-value"
}
}
}
}Add to claude_desktop_config.json, then restart Claude Desktop.
| Variable | Description | Required |
|---|---|---|
| CERT_FILE | Configuration value read at startup. | Optional |
| CERT_PASSWORD | Configuration value read at startup. | Optional |
| STORAGE_PATH | Filesystem location the server is allowed to use. | Optional |
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.