Cte Mdfe Mcp

io.github.FAVIOSENGERPublished by GitHub account FAVIOSENGERv0.1.0Updated Oct 24, 2026

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

VerifiedSTDIODesktop onlyFinanceBusiness & Commerce

Overview

AI-generated overview

Issues and queries Brazilian CT-e and MDF-e transport tax documents through Focus NFe, letting an assistant emit, check, cancel or close them.

What you can do
  • Emit, query, cancel and close CT-e transport documents
  • Emit, query and close MDF-e manifests
  • Retrieve status and downloads for issued documents
  • Run against a mock provider for testing without credentials
When to use it
Useful for Brazilian freight and logistics workflows where an assistant should draft, issue, monitor or cancel CT-e and MDF-e fiscal documents through a Focus NFe account, including testing against a mock provider.
Requirements
Runs locally as an npm package via npx, configured in a desktop client such as Claude Desktop. Needs a Focus NFe account token in FOCUS_NFE_TOKEN and the environment selector FOCUS_NFE_AMBIENTE (homologacao by default, or producao). Network access to Focus NFe is implied.
Before you install
The server issues, cancels and closes real fiscal documents; with FOCUS_NFE_AMBIENTE set to producao these actions take legal and financial effect. Keep the FOCUS_NFE_TOKEN secret and prefer the homologacao environment or the mock provider until flows are verified. Document data is sent to the third-party Focus NFe service.

Installation

In SourceWeft

  1. Open Cte Mdfe Mcp in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

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)

json
{  "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

Source: README.md at commit e20141f

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  1. v0.1.0LatestOct 15, 2026

Score

40% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts

    Declare a license in the repository or the registry entry.