DF-e
io.github.mcp-dir/dfe-mcp
Serveur MCP OK 12 outils
Brazilian SEFAZ e-invoices (NF-e, CT-e) issued against your company. A1 cert, DANFE PDF.
Fiche technique
- Auteur
- mcp-dir (espace de noms du registre)
- Dépôt
- github.com/mcp-dir/dfe-mcp
- Site
- —
- Version
- 0.1.0
- Transport
- Streamable HTTP
- Authentification
- Aucune (constatée par notre test)
- Adresse du serveur
- https://api.mcp.ai/p_dfe Streamable HTTP
- Outils
- 12
- Catégories
- Productivité et documents
- Comparatifs
- Serveurs MCP pour PDF
- Dernière mise à jour
- 30 août 2026
- Publication
- 30 août 2026
Badge pour votre README
Gratuit, pour toute fiche. Il renvoie vers cette fiche et affiche « testé OK » tant que notre dernier test est réussi.
[](https://latlas.dev/mcp/io.github.mcp-dir/dfe-mcp)<a href="https://latlas.dev/mcp/io.github.mcp-dir/dfe-mcp"><img src="https://latlas.dev/badge/fiche/io.github.mcp-dir/dfe-mcp.svg" alt="Référencé sur L’Atlas" height="20"></a>Nos tests
Chaque semaine : initialize puis tools/list, sans identifiant, sans jamais appeler d’outil. Méthode
- Adresse
- https://api.mcp.ai/p_dfe
- Dernier résultat
- OK 28 nov. 2026, 15:08
- Temps de réponse
- 570 ms (initialize + tools/list)
- Version du protocole
- 2025-11-25
- Nom annoncé
- mcp-ai 0.9.518
- Outils
- 12
Historique
| Date | Résultat | Réponse | Outils |
|---|---|---|---|
| 28 nov. 2026, 15:08 | OK | 570 ms | 12 |
Outils exposés (12, réponse à tools/list, 28 nov. 2026)
dfe_list_accounts
Lista os CNPJs conectados neste install (razão social, CNPJ e UF).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| account | string | non |
dfe_sincronizar
Puxa 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_fila` for true. Continuar consultando depois disso é o que a SEFAZ pune com bloqueio de 1 hora no CNPJ. Cada documento vem com `completo`: true = XML íntegro da nota (dá para auditar em auditor_fiscal_auditar_nota); false = apenas RESUMO (chave, emitente, valor), que é o que a SEFAZ entrega enquanto o destinatário não fizer a manifestação. ATENÇÃO: este serviço NÃO devolve as notas que VOCÊ emitiu — só as recebidas. Para auditar a própria emissão, pegue o XML no seu ERP (ex.: omie_get_invoice_xml).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| ult_nsu | string | non | |
| forcar_nsu | boolean | non | |
| account | string | non |
dfe_consultar_nsu
Busca 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).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| nsu | string | oui | |
| account | string | non |
dfe_consultar_chave
Busca 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).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| chave | string | oui | |
| account | string | non |
dfe_gerar_danfe
Gera 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. Se não tiver o XML em mãos, use `chave` ou `nsu` — mas aí gasta uma das consultas da hora. SÓ FUNCIONA com documento `completo: true`. Documento `resumo` não tem os itens, e sem itens não existe DANFE: o XML completo só sai depois da manifestação do destinatário. A resposta traz um link de download em `files[]`, entregue ele ao usuário. Não tente ler o conteúdo do arquivo, é binário.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| xml | string | non | |
| chave | string | non | |
| nsu | string | non | |
| account | string | non |
dfe_orcamento
Quantas 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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| account | string | non |
show_version
Show the current MCP platform and adapter versions.
Aucun paramètre.
report_bug
Report a bug, missing feature, or send feedback. Include the conversation array with recent messages for reproduction.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| message | string | oui | |
| context | string | non | |
| conversation | string | non |
connect
Returns 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.
Aucun paramètre.
toolkit_info
Returns the current toolkit state: installed MCPs, their connection status, the accounts connected to each one, and how many catalog tools each exposes.
Aucun paramètre.
marketplace
The 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 (every tool with its id + params, pricing, auth) so you pick the right tool_id → invoke RUNS that tool. KEY: invoke works even when the MCP is NOT installed — it runs the tool pontualmente (one-off), without adding the MCP to the toolkit and without bloating the tool list. If the MCP needs a credential/login, invoke returns a connect link; if it is paid and the wallet is empty, invoke returns a checkout/top-up link (the user opens it, then you retry). Use install only to make an MCP PERMANENT in the active toolkit (its tools then show up natively in future sessions); prefer invoke for a single/occasional use. list_tools lists what is callable right now. subscribe/cancel handle per-MCP billing; report_bug sends feedback; request_mcp asks us to build a NEW MCP when nothing fits. Search/describe flag installed_in_toolkit vs installed_in_workspace. Writes (install/uninstall/subscribe/cancel and the one-off install behind invoke) require workspace owner/admin. It also carries the mcp.ai PROMPT LIBRARY, which is about ready-made prompt TEXT rather than MCPs: search_prompts finds one, get_prompt returns its full text with {{variables}} filled, and publish_prompt saves a prompt and returns a…
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| action | enum: "search" | "describe" | "install" | "uninstall" | "subscribe" | "cancel" | "resume" | "report_bug" … | non | |
| query | string | non | |
| mcp_id | string | non | |
| limit | number | non | |
| tier_slug | string | non | |
| immediate | boolean | non | |
| cancel_reason | enum: "too_expensive" | "missing_features" | "switched_service" | "unused" | "customer_service" | "too_complex" | "low_quality" | "other" | non | |
| cancel_comment | string | non | |
| message | string | non | |
| report_context | string | non | |
| conversation | string | non | |
| request_name | string | non | |
| request_details | string | non | |
| tool_id | string | non | |
| arguments | string | non | |
| prompt_slug | string | non | |
| prompt_vars | string | non | |
| prompt_category | string | non | |
| prompt_tool | string | non | |
| prompt_title | string | non | |
| prompt_description | string | non | |
| prompt_body | string | non | |
| prompt_targets | array<enum: "claude" | "chatgpt" | "cursor" | "lovable"> | non |
authenticate
MCP.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 ` for a permanent, non-expiring connection. Or paste it here for a session-only login: call with { token: " " } after the user pastes, or with no args to get the link.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| token | string | non |
Compatibilité clients
Selon les transports que chaque client déclare accepter dans sa documentation officielle ; ce n’est pas un essai réel dans le client.
| Client | Transports documentés | Ce serveur | Source |
|---|---|---|---|
| Claude Code | stdio Streamable HTTP SSE | transport accepté | doc |
| Claude (claude.ai, Claude Desktop, Cowork) | stdio Streamable HTTP SSE | transport accepté | doc |
| ChatGPT (serveurs MCP personnalisés / plugins) | Streamable HTTP SSE | transport accepté | doc |
| Cursor | stdio Streamable HTTP SSE | transport accepté | doc |
| VS Code (GitHub Copilot) | stdio Streamable HTTP SSE | transport accepté | doc |
| Windsurf (documentation redirigée vers Devin Local / Devin CLI) | stdio Streamable HTTP SSE | transport accepté | doc |
| Gemini CLI | stdio Streamable HTTP SSE | transport accepté | doc |
| OpenAI Codex (CLI, extension IDE, app) | stdio Streamable HTTP | transport accepté | doc |
Configs prêtes à copier
Adresse distante utilisée : https://api.mcp.ai/p_dfe. Formats repris de la documentation de chaque client.
claude mcp add --transport http dfe-mcp https://api.mcp.ai/p_dfeCustomize > Connectors > + Add > Add custom connector ; Name : dfe-mcp ; URL : https://api.mcp.ai/p_dfechatgpt.com/plugins > + > Add custom MCP server ; Name : dfe-mcp ; Server URL : https://api.mcp.ai/p_dfe ; Create as a plugin{
"mcpServers": {
"dfe-mcp": {
"url": "https://api.mcp.ai/p_dfe"
}
}
}{
"mcpServers": {
"dfe-mcp": {
"type": "http",
"url": "https://api.mcp.ai/p_dfe",
"tools": ["*"]
}
}
}{
"mcpServers": {
"dfe-mcp": {
"url": "https://api.mcp.ai/p_dfe"
}
}
}{
"mcpServers": {
"dfe-mcp": {
"httpUrl": "https://api.mcp.ai/p_dfe"
}
}
}[mcp_servers.dfe-mcp]
url = "https://api.mcp.ai/p_dfe"Citer cette source
Vous rédigez un article ou un comparatif ? Cette fiche distingue les informations du registre et nos mesures. Citez le lien permanent et la date du test ; un résultat OK ne constitue pas un audit de sécurité ni une garantie de disponibilité.
DF-e · L’Atlas · Test du
[DF-e — L’Atlas](https://latlas.dev/mcp/io.github.mcp-dir/dfe-mcp)Source : Registre officiel MCP · relevé le 29 nov. 2026. L’Atlas n’ajoute aucune donnée qui ne vienne de cette source ou de ses propres tests.