Back to Browse

Cte Mdfe MCP Server

Developer ToolsModerate7.2MCP RegistryLocal
Free

Server data from the Official MCP Registry

Emissao e consulta de CT-e e MDF-e (transporte) no Brasil via Focus NFe, para agentes de IA

About

Emissao e consulta de CT-e e MDF-e (transporte) no Brasil via Focus NFe, para agentes de IA

Security Report

7.2
Moderate7.2Low Risk

This is a legitimate wrapper for the Focus NFe fiscal API (CT-e and MDF-e), with the token read from an environment variable and sent via HTTPS Basic auth to the vendor's official domains. Main concerns are quality issues: payloads in the dados field are passed through without schema validation, and destructive fiscal operations (cancelar_cte, encerrar_mdfe) have no confirmation gate, so an AI agent could trigger them unintentionally. Supply chain analysis found 1 known vulnerability in dependencies (0 critical, 1 high severity). Package verification found 1 issue.

6 files analyzed · 7 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

HTTP Network Access

Connects to external APIs or services over the internet.

env_vars

Check that this permission is expected for this type of plugin.

What You'll Need

Set these up before or after installing:

Token da conta Focus NFeRequired

Environment variable: FOCUS_NFE_TOKEN

homologacao (padrao) ou producaoOptional

Environment variable: FOCUS_NFE_AMBIENTE

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "io-github-faviosenger-cte-mdfe-mcp": {
      "env": {
        "FOCUS_NFE_TOKEN": "your-focus-nfe-token-here",
        "FOCUS_NFE_AMBIENTE": "your-focus-nfe-ambiente-here"
      },
      "args": [
        "-y",
        "cte-mdfe-mcp"
      ],
      "command": "npx"
    }
  }
}

Documentation

View on GitHub

From the project's GitHub README.

cte-mdfe-mcp

npm version

Emissao e consulta de CT-e e MDF-e (documentos fiscais de transporte) no Brasil para agentes de IA, via Focus NFe.

Instalação (Claude Desktop)

{
  "mcpServers": {
    "cte-mdfe-mcp": {
      "command": "npx",
      "args": ["-y", "cte-mdfe-mcp"],
      "env": {
        "FOCUS_NFE_TOKEN": "...",
        "FOCUS_NFE_AMBIENTE": "..."
      }
    }
  }
}

Teste sem credencial: "env": { "PROVIDER": "mock" }.

Ferramentas

  • emitir_cte — Emite um CT-e (Conhecimento de Transporte eletronico)
  • consultar_cte — Consulta status e downloads de um CT-e
  • cancelar_cte — Cancela um CT-e autorizado
  • emitir_mdfe — Emite um MDF-e (Manifesto de Documentos Fiscais eletronico)
  • consultar_mdfe — Consulta status e downloads de um MDF-e
  • encerrar_mdfe — Encerra um MDF-e autorizado

Licença

MIT © Favio Senger

Reviews

No reviews yet

Be the first to review this server!