DF-e

io.github.mcp-dir/dfe-mcp · v0.1.0 · productivity

DF-e is healthy: it completed an MCP handshake in 385 ms and exposes 12 tools.

Brazilian SEFAZ e-invoices (NF-e, CT-e) issued against your company. A1 cert, DANFE PDF.

Endpoint: https://api.mcp.ai/p_dfe (streamable-http)

Repository · JSON · Add to my inventory

Facts

Users (last 30 days)0
HandshakeHealthy
Auth neededNone
Tool count12
Latency385 ms
Last checked (UTC)2026-12-01T05:30:18.971Z

Health history

Checked (UTC)StatusLatencyError
2026-12-01T05:30:18.971ZHealthy385
2026-11-28T19:30:33.493ZHealthy1027
2026-11-26T11:20:35.984ZHealthy998
2026-11-24T04:50:58.052ZHealthy1041
2026-11-22T00:15:25.092ZHealthy63
2026-11-19T21:25:21.411ZHealthy1685
2026-11-17T19:35:49.184ZFailing9944tools/list: The operation was aborted due to timeout
2026-11-15T19:05:50.752ZDown–The operation was aborted due to timeout
2026-11-13T20:01:27.956ZHealthy3769
2026-11-11T21:55:39.347ZHealthy1014
2026-11-10T01:05:33.295ZHealthy1124
2026-11-08T05:25:22.257ZHealthy463
2026-11-06T10:55:50.526ZHealthy578
2026-11-04T17:11:08.617ZHealthy7466
2026-11-03T00:25:33.408ZHealthy1055
2026-11-01T08:55:20.613ZHealthy56
2026-10-30T18:20:38.931ZHealthy499
2026-10-29T04:26:01.099ZHealthy377
2026-10-27T14:55:11.608ZHealthy512
2026-10-26T02:45:14.466ZHealthy389

Tools (12)

dfe_list_accountsLista os CNPJs conectados neste install (razão social, CNPJ e UF).
dfe_sincronizarPuxa os documentos fiscais NOVOS emitidos contra este CNPJ (nota de fornecedor, evento, CT-e) — NFeDistribuicaoDFe. COMO USAR: chame com `ult_nsu: "0"` na primeira vez. A resposta traz `proximo_nsu` — passe ELE na chamada seguinte, sem alterar. Repita até `fim_da_fila: true`. PARE quando `fim_da_fil
dfe_consultar_nsuBusca UM documento específico pelo NSU. Serve para recuperar um item que falhou na descompactação durante a sincronização — não para varrer a fila (isso é dfe_sincronizar).
dfe_consultar_chaveBusca um documento pela chave de acesso de 44 dígitos. LIMITES: só documentos que chegaram ao Ambiente Nacional nos ÚLTIMOS 90 DIAS, e nunca a nota em que este CNPJ é o EMITENTE (a SEFAZ não devolve a própria emissão).
dfe_gerar_danfeGera o DANFE (o PDF da nota) a partir do XML. A SEFAZ distribui XML, não PDF, então esta é a representação gráfica para imprimir, anexar ou mandar pro cliente. COMO USAR: passe em `xml` o conteúdo do documento que veio em dfe_sincronizar (campo `documentos[].xml`). Assim NÃO gasta consulta na SEFAZ.
dfe_orcamentoQuantas consultas ainda cabem nesta hora para este CNPJ, e se ele está bloqueado. Não consome consulta. Chame isto antes de uma carga grande — o limite da SEFAZ é por CNPJ e conta também o que outros sistemas do cliente consultarem.
show_versionShow the current MCP platform and adapter versions.
report_bugReport a bug, missing feature, or send feedback. Include the conversation array with recent messages for reproduction.
connectReturns connection status and URLs. When all providers are connected, returns authenticated:true and empty pending[]. When credentials are missing, returns connect_url for the toolkit and per-install URLs.
toolkit_infoReturns the current toolkit state: installed MCPs, their connection status, the accounts connected to each one, and how many catalog tools each exposes.
marketplaceThe official mcp.ai marketplace — the in-platform catalog of every MCP/tool, AND the way to run them. Covers capability requests like "find an MCP that does X", "consulta um CPF", "is there a tool for Y". Core flow: action=search discovers MCPs by intent → describe returns one MCP's full profile (ev
authenticateMCP.AI for IDE agents (Cursor, etc.): log in in the browser, copy the access token. Best: add it to this server's config as a header `Authorization: Bearer <token>` for a permanent, non-expiring connection. Or paste it here for a session-only login: call with { token: "<jwt>" } after the user pastes