Nfse Nacional MCP server
MCP Server para consulta de NFSe no portal nacional (nfse.gov.br)
17 stars51 downloads/wk
Reviews
Write oneNobody has reviewed Nfse Nacional yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Nfse Nacional tools (3)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
nfse_buscarBusca notas fiscais de serviço eletrônicas (NFSe) emitidas em um período. Retorna lista com data, destinatário, valor, status e chave de cada nota.
nfse_detalhesObtém os detalhes completos de uma NFSe específica a partir de sua chave. Retorna dados do cabeçalho, emitente, valores, DPS e salva o XML localmente.
nfse_pdfBaixa o PDF (DANFSe) de uma NFSe específica a partir de sua chave. Retorna o caminho do arquivo PDF salvo localmente.
Public scan report
scanner v0.1.10 · 2026-09-28 · same rubric, same numbers if you re-run it
- Code scan12 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitystatic API keys via environment variables6/15
- Maintenancelast push 228 days ago4/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
How Nfse Nacional compares
Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 66/100
- higher than 23% of 48,255 servers
- Tools
- 3
- the typical server has 7
- Tools that change things
- 0%
- typical: 0%. Fewer write tools means less an agent can break
- GitHub stars
- 17
- more than 90% of 28,688 servers
- Downloads a week
- 51
- more than 43% of 12,191 servers with a package
What its tools let an agent do: 3 read
Install Nfse Nacional in Claude Code, Cursor or VS Code
Runs npx -y mcp-nfse-nacional on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add mcp-nfse-nacional -- npx -y mcp-nfse-nacional
What the publisher says
From the Nfse Nacional repository's README, as published. We do not edit it. Read it on GitHub
mcp-nfse-nacional
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.
Ferramentas disponíveis
O servidor expõe três ferramentas via protocolo MCP:
A autenticação é gerenciada automaticamente. O login é realizado na primeira chamada e, caso a sessão expire (erro de autenticação), uma nova tentativa de login é feita de forma transparente.
Variáveis de ambiente
Você pode definir as variáveis em um arquivo .env na raiz do projeto.
Executando via npx
Modo stdio (padrão)
Ideal para integração direta com clientes MCP (Claude Desktop, VS Code, etc.):
CERT_FILE=./certificado.pfx CERT_PASSWORD=sua_senha npx -y mcp-nfse-nacionalExemplo de configuração em um cliente MCP (mcp.json):
{
"servers": {
"nfse-nacional": {
"type": "stdio",
"command": "npx",
"args": ["-y", "mcp-nfse-nacional"],
"env": {
"CERT_FILE": "/caminho/absoluto/para/certificado.pfx",
"CERT_PASSWORD": "sua_senha"
}
}
}
}Modo Streamable HTTP
Ideal para ambientes onde o servidor precisa ficar escutando conexões HTTP:
CERT_FILE=./certificado.pfx CERT_PASSWORD=sua_senha MCP_TRANSPORT=streamable-http MCP_HOST=127.0.0.1 MCP_PORT=3000 npx -y mcp-nfse-nacionalO endpoint MCP ficará disponível em http://127.0.0.1:3000/mcp.
Exemplo de configuração em um cliente MCP (mcp.json):
{
"servers": {
"nfse-nacional": {
"type": "streamable-http",
"url": "http://127.0.0.1:3000/mcp"
}
}
}Executando via Docker (Streamable HTTP)
Build da imagem
docker build -t mcp-nfse-nacional .Execução
docker run -d \
--name mcp-nfse-nacional \
-p 3000:3000 \
-v /caminho/para/certificado.pfx:/app/certificado.pfx:ro \
-v /caminho/para/storage:/app/storage \
-e CERT_FILE=certificado.pfx \
-e CERT_PASSWORD=sua_senha \
mcp-nfse-nacionalO endpoint MCP ficará disponível em http://localhost:3000/mcp.
O Dockerfile já define MCPTRANSPORT=streamable-http, MCPHOST=0.0.0.0 e MCP_PORT=3000 por padrão.
Segurança
⚠️ O certificado digital é um ativo crítico. Ele possui validade jurídica e representa a identidade da sua empresa ou pessoa física perante a Receita Federal e demais órgãos. Trate-o com o mesmo cuidado que trataria uma senha-mestre.
Orientações essenciais
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Nfse Nacional: common questions
- Is Nfse Nacional MCP server safe?
- With care: it is graded C, so read the findings first (66/100). Read the Nfse Nacional safety report
- How do I install Nfse Nacional?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Nfse Nacional need an API key?
- Yes. The registry entry asks for
CERT_PASSWORD. - Is Nfse Nacional maintained?
- The last commit was 265 days ago (2026-02-12). The latest release is v1.0.3.
- How does Nfse Nacional compare with other MCP servers?
- safety score 66/100 (higher than 23% of 48,255 servers); tools 3 (the typical server has 7); tools that change things 0% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.