DF E logo

DF E

Reads inbound Brazilian SEFAZ fiscal documents with an A1 certificate, syncs NSUs, looks up invoices, and renders DANFE PDFs.

Install DF E

Pick your client, then add it in one click or paste the config.

Streamable HTTP (Remote)
Server URL
https://api.mcp.ai/p_dfe

Remote servers are added in the app, not the config file: Customize → Connectors → Add custom connector, then paste this URL.

Hosted endpointLive · 2d agoLive Remote EndpointOur automated health check connected to this remote MCP endpoint successfully.Last checked 2d ago · Nov 27, 2026, 12:00 UTC

Clients with native remote MCP support can connect directly to this URL.

Remote endpoint
https://api.mcp.ai/p_dfe

Overview

The DF-e MCP server connects to Brazil’s official NFeDistribuicaoDFe service using your company’s A1 e-CNPJ certificate. It retrieves supplier NF-e, CT-e freight documents, and related events issued against a connected CNPJ, then supports lookups and DANFE PDF generation from XML. Incremental NSU synchronization and a query-budget tool help avoid exceeding SEFAZ limits. Use it for inbound invoice monitoring and retrieval, not for documents your company issued.

Use cases

  • Sync new supplier invoices for a company CNPJ
  • Review inbound NF-e and CT-e documents
  • Find an invoice by NSU or access key
  • Generate DANFE PDFs from complete XML
  • Check remaining SEFAZ query capacity

Key features

  • Incremental NSU synchronization
  • Supplier NF-e, CT-e, and event retrieval
  • Lookup by NSU or 44-digit access key
  • DANFE PDF generation from XML
  • SEFAZ query-budget reporting
  • A1 e-CNPJ certificate authentication

Tools12

What DF E lets your agent do. Expand a tool for its parameters.

Verified live~1.9k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

15/21 checks healthy over the last 78d

What it can do

From the 12 tools this server returned when we ran it.

Can delete or modify data · 1Handles credentials · 3Makes network requests · 1Read-only tools · 11

Observed 2026-10-16 in an isolated sandbox. A description of reach, not a security audit.

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

Last commit3mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Tools exposed12Callable tools this server registers over MCP.

How DF E works

What DF-e does

The DF-e MCP server retrieves electronic fiscal documents that Brazilian suppliers and carriers issued against a company’s CNPJ. Its coverage includes supplier NF-e, CT-e freight bills, and fiscal events delivered through SEFAZ’s official NFeDistribuicaoDFe web service. The service is read-only: it does not alter records at SEFAZ or acknowledge documents on the recipient’s behalf.

The DF-e MCP server is intended for inbound-document workflows. It does not provide invoices issued by your own company, because the distribution service is designed to return documents addressed to the recipient. Your ERP remains the source for the company’s outgoing XML.

Some results may be summaries rather than complete XML. Until the recipient acknowledges an invoice, SEFAZ may provide only the access key, issuer, and amount. Without the full XML and line items, a DANFE cannot be rendered and line-by-line review is not possible.

How it works

The service uses the connected company’s own A1 digital certificate for the TLS exchange with SEFAZ. The certificate holder must match the CNPJ being queried; an accountant’s certificate cannot be substituted for the company’s certificate. Certificate data is encrypted at rest and used for the SEFAZ connection.

Synchronization follows the NSU queue. Each sync retrieves new documents, up to 50 per call, and resumes from the last position on a later call. The process stops when the queue is exhausted instead of continuing to poll unnecessarily. SEFAZ permits 20 queries per hour per tax ID, and polling beyond the end of the queue can result in a one-hour block. That limit is shared with other systems, including an ERP or accountant’s software.

DANFE output is generated locally from available invoice XML because SEFAZ distributes XML rather than the printable PDF. The generated document is returned as a download link. Access-key lookups are available for documents that entered the national environment within the previous 90 days.

Setup and configuration

Connect the hosted endpoint at https://api.mcp.ai/p_dfe through an MCP client that supports MCP over HTTP. The README provides installation paths for Claude Web and Desktop, Cursor, and VS Code, and states that the endpoint also works with ChatGPT, Manus, OpenClaw, and other compatible clients.

A connected account requires the company’s own A1 e-CNPJ certificate. Accounts are billed per connected tax ID, and the certificate must correspond to that tax ID. The repository documentation does not specify environment variables for running the hosted endpoint.

Tools and capabilities

The DF-e MCP server exposes six tools:

  • dfe_list_accounts lists connected CNPJs with company name and state.
  • dfe_sincronizar retrieves new NF-e, CT-e, and event documents from the incremental queue.
  • dfe_consultar_nsu finds one document by NSU, including a previously missed item.
  • dfe_consultar_chave searches by a 44-digit invoice access key.
  • dfe_gerar_danfe creates a DANFE PDF from XML.
  • dfe_orcamento reports remaining hourly query capacity and whether the tax ID is blocked, without spending a query.

Limitations and notes

The DF-e MCP server is independent and is not affiliated with SEFAZ or Brazil’s Federal Revenue Service. Its data is returned to the selected LLM host, which acts as a subprocesser outside the server operator’s control. The server states that captured XML is not retained beyond operational logs.

Recipient acknowledgement is not currently performed by the MCP. Documents without acknowledgement may remain summaries, preventing PDF generation and detailed auditing. The SEFAZ query budget is per CNPJ and shared across every system using that tax ID, so this server cannot account for queries made elsewhere.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about DF E

DF-e is an MCP server that connects to Brazil’s SEFAZ NFeDistribuicaoDFe service using a company’s A1 e-CNPJ certificate. Its main tools sync inbound NF-e, CT-e, and events, look up documents by NSU or access key, report query budget, list connected CNPJs, and generate DANFE PDFs from XML.

Connect the hosted MCP endpoint at `https://api.mcp.ai/p_dfe` in an MCP-over-HTTP client. The README provides installation links for Claude, Cursor, and VS Code. You also need the connected company’s own A1 e-CNPJ certificate; an accountant’s certificate does not match the queried tax ID.

Yes, DF-e provides a Cursor installation link. Cursor connects to the hosted endpoint at `https://api.mcp.ai/p_dfe`, and the server requires an MCP-over-HTTP connection plus the company’s matching A1 e-CNPJ certificate.

No, DF-e retrieves documents issued against the connected company, such as supplier NF-e, CT-e, and events. SEFAZ’s distribution service excludes documents issued by the queried company, so outgoing invoice XML must come from your ERP.

SEFAZ may provide only a summary until the recipient acknowledges the document. That summary includes the access key, issuer, and amount but not the complete XML or line items. DF-e does not perform recipient acknowledgement, so it cannot generate a DANFE or line-by-line audit from an incomplete result.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewDF E AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/df-e?style=directory)](https://allmcps.com/mcp/df-e)
HTML Embed
<a href="https://allmcps.com/mcp/df-e"><img src="https://allmcps.com/api/badge/df-e?style=directory" alt="DF E on AllMCPs" /></a>