Serveur MCP

DF-e

io.github.mcp-dir/dfe-mcp

Serveur MCP OK 12 outils

Faire examiner Voir les tarifs

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

Référencé sur L’Atlas

Gratuit, pour toute fiche. Il renvoie vers cette fiche et affiche « testé OK » tant que notre dernier test est réussi.

MarkdownREADME.md
[![Référencé sur L’Atlas](https://latlas.dev/badge/fiche/io.github.mcp-dir/dfe-mcp.svg)](https://latlas.dev/mcp/io.github.mcp-dir/dfe-mcp)
HTML
<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

DateRésultatRéponseOutils
28 nov. 2026, 15:08OK570 ms12

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ètreTypeRequisDescription
accountstringnon

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ètreTypeRequisDescription
ult_nsustringnon
forcar_nsubooleannon
accountstringnon

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ètreTypeRequisDescription
nsustringoui
accountstringnon

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ètreTypeRequisDescription
chavestringoui
accountstringnon

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ètreTypeRequisDescription
xmlstringnon
chavestringnon
nsustringnon
accountstringnon

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ètreTypeRequisDescription
accountstringnon

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ètreTypeRequisDescription
messagestringoui
contextstringnon
conversationstringnon

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ètreTypeRequisDescription
actionenum: "search" | "describe" | "install" | "uninstall" | "subscribe" | "cancel" | "resume" | "report_bug" …non
querystringnon
mcp_idstringnon
limitnumbernon
tier_slugstringnon
immediatebooleannon
cancel_reasonenum: "too_expensive" | "missing_features" | "switched_service" | "unused" | "customer_service" | "too_complex" | "low_quality" | "other"non
cancel_commentstringnon
messagestringnon
report_contextstringnon
conversationstringnon
request_namestringnon
request_detailsstringnon
tool_idstringnon
argumentsstringnon
prompt_slugstringnon
prompt_varsstringnon
prompt_categorystringnon
prompt_toolstringnon
prompt_titlestringnon
prompt_descriptionstringnon
prompt_bodystringnon
prompt_targetsarray<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ètreTypeRequisDescription
tokenstringnon

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.

ClientTransports documentésCe serveurSource
Claude Codestdio Streamable HTTP SSEtransport acceptédoc
Claude (claude.ai, Claude Desktop, Cowork)stdio Streamable HTTP SSEtransport acceptédoc
ChatGPT (serveurs MCP personnalisés / plugins)Streamable HTTP SSEtransport acceptédoc
Cursorstdio Streamable HTTP SSEtransport acceptédoc
VS Code (GitHub Copilot)stdio Streamable HTTP SSEtransport acceptédoc
Windsurf (documentation redirigée vers Devin Local / Devin CLI)stdio Streamable HTTP SSEtransport acceptédoc
Gemini CLIstdio Streamable HTTP SSEtransport acceptédoc
OpenAI Codex (CLI, extension IDE, app)stdio Streamable HTTPtransport 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 Code
claude mcp add --transport http dfe-mcp https://api.mcp.ai/p_dfe
Claude (claude.ai, Claude Desktop, Cowork)
Customize > Connectors > + Add > Add custom connector ; Name : dfe-mcp ; URL : https://api.mcp.ai/p_dfe
ChatGPT (serveurs MCP personnalisés / plugins)
chatgpt.com/plugins > + > Add custom MCP server ; Name : dfe-mcp ; Server URL : https://api.mcp.ai/p_dfe ; Create as a plugin
Cursor.cursor/mcp.json (projet) ou ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "dfe-mcp": {
      "url": "https://api.mcp.ai/p_dfe"
    }
  }
}
VS Code (GitHub Copilot).mcp.json à la racine du workspace, ou ~/.copilot/mcp-config.json ($COPILOT_HOME/mcp-config.json)
{
  "mcpServers": {
    "dfe-mcp": {
      "type": "http",
      "url": "https://api.mcp.ai/p_dfe",
      "tools": ["*"]
    }
  }
}
Windsurf (documentation redirigée vers Devin Local / Devin CLI).devin/mcp_config.json (projet), .devin/mcp_config.local.json (local), ~/.config/devin/mcp_config.json (utilisateur)
{
  "mcpServers": {
    "dfe-mcp": {
      "url": "https://api.mcp.ai/p_dfe"
    }
  }
}
Gemini CLI~/.gemini/settings.json (utilisateur) ou .gemini/settings.json (projet)
{
  "mcpServers": {
    "dfe-mcp": {
      "httpUrl": "https://api.mcp.ai/p_dfe"
    }
  }
}
OpenAI Codex (CLI, extension IDE, app)~/.codex/config.toml (ou .codex/config.toml pour un projet de confiance)
[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

Markdown
[DF-e — L’Atlas](https://latlas.dev/mcp/io.github.mcp-dir/dfe-mcp)
Méthode et limites des tests

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.