HiveCloud CT-e / MDF-e

io.github.mcp-dirPublished by GitHub account mcp-dirv0.1.0Updated Oct 28, 2026

Transportation fiscal-document issuer from Bsoft by nstech (HiveCloud). Query CT-e (freight bill of

VerifiedStreamable HTTPWeb executableFinanceData & AnalyticsBusiness & Commerce

Overview

AI-generated overview

HiveCloud (Bsoft/nstech) MCP server for Brazilian transport fiscal documents: query, print, export and issue CT-e and MDF-e via SEFAZ.

What you can do
  • List connected HiveCloud accounts, issuing companies and SEFAZ service status
  • List and detail CT-e, DC-e and numbering voids, with pagination and date filters
  • Fetch NF-e data by access key and create CT-e drafts from one or more keys
  • Generate DACTE and DAMDFE PDFs and export CT-e/MDF-e XML as temporary download links
  • List MDF-e, vehicles and drivers, and build consolidated trip reports by month, plate and driver
  • Issue, cancel, delete, averbar and correct CT-e, and issue, close or cancel MDF-e
When to use it
Useful for Brazilian freight carriers and logistics teams that already issue CT-e and MDF-e in HiveCloud and want an assistant to look up documents, pull PDFs and XML, prepare drafts from NF-e keys, or run trip reports. Only enable the write tools when you actually intend fiscal transmissions.
Requirements
Remote streamable HTTP endpoint; no local package. Requires a HiveCloud account connected to the install, with issuing companies registered. MDF-e tools additionally need an mdfe_tenant_id on the connection, and write tools need allow_writes enabled. NF-e lookups consume the plan's query allowance.
Before you install
Several tools are real fiscal acts sent to SEFAZ: issuing, cancelling, closing and correcting CT-e/MDF-e, plus deleting documents and averbar; cancellation and deletion are irreversible and all require allow_writes. NF-e lookups count against the plan quota. Download links for PDFs and XML are temporary. The authenticate tool asks for a bearer token or pasted JWT, and report_bug sends recent conversation messages.

Installation

In SourceWeft

  1. Open HiveCloud CT-e / MDF-e in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.

Use with an agent

Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.

Read https://sourceweft.com/mcp/io.github.mcp-dir%2Fhivecloud-mcp/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.

Read the install guide the agent follows

Other MCP clients

Add this to your client's mcpServers config.

{
  "mcpServers": {
    "hivecloud-ct-e-mdf-e": {
      "type": "http",
      "url": "https://api.mcp.ai/p_hivecloud"
    }
  }
}

README

This repository has no README.

Tools

33

hivecloud_list_accounts

Lista as contas HiveCloud conectadas a este install (cada usuário+ambiente = uma conta).

Parametersaccount

hivecloud_list_empresas

Lista as empresas emitentes do ambiente (id, nome, cnpj). O `id` é o `empresa_id` exigido nas demais tools (passo de seleção da empresa).

Parametersaccount

hivecloud_list_ctes

Lista os CT-e (Conhecimento de Transporte eletrônico) da empresa, paginado, com filtro por data de emissão. Retorna número, série, UF inicial/final, valor do frete, remetente/destinatário, status, datas e status de averbação. Bulk support: accepts empresa_ids for batched execution.

ParametersaccountpageSizedata_finalempresa_idpageNumberempresa_idsdata_inicial

hivecloud_get_cte

Detalha um CT-e específico pelo id. Bulk support: accepts ids, empresa_ids for batched execution.

Parametersidrequiredidsaccountempresa_idempresa_ids

hivecloud_cte_dacte

Gera o PDF do DACTE de um ou mais CT-e autorizados e devolve a URL de download (temporária). Mesma ação do botão Imprimir DACTe do emissor, não altera o documento.

Parametersidsrequiredaccountempresa_id

hivecloud_cte_xml

Exporta o XML de um ou mais CT-e (zip) e devolve a URL de download (temporária). Mesma ação do botão Exportar XML do emissor, não altera o documento.

Parametersidsrequiredaccountempresa_id

hivecloud_nfe_info

Consulta os dados de uma NF-e pela chave de acesso (44 dígitos) via emissor: remetente e destinatário (já resolvidos no cadastro), valor da carga, pesos, volumes e produto predominante. É o passo antes de criar o CT-e. A consulta conta na franquia de consultas de NF-e do plano do emissor. Bulk support: accepts empresa_ids for batched execution.

Parameterschaverequiredaccountempresa_idempresa_ids

hivecloud_cte_criar_de_nfe

Cria um RASCUNHO de CT-e a partir de uma ou mais chaves de NF-e (mesmo remetente e destinatário). Importa os dados da nota, usa o último CT-e autorizado da empresa como base de imposto/CFOP/local de emissão e preenche carga, valores e envolvidos. NÃO transmite à SEFAZ: o documento fica em digitação pra revisão e emissão. Exige allow_writes na conexão. Bulk support: accepts template_cte_ids, empresa_ids for batched execution.

Parametersaccounttomadorempresa_idnfe_chavesrequiredobservacaocfop_codigoempresa_idsvalor_freterequiredcfop_naturezatemplate_cte_idtemplate_cte_idsresponsavel_frete+1 more

hivecloud_list_dces

Lista as DC-e (Declaração de Conteúdo eletrônica) da empresa, paginado. Bulk support: accepts empresa_ids for batched execution.

ParametersaccountpageSizeempresa_idpageNumberempresa_ids

hivecloud_list_inutilizacoes

Lista as inutilizações de numeração de CT-e da empresa, paginado. Bulk support: accepts empresa_ids for batched execution.

ParametersaccountpageSizeempresa_idpageNumberempresa_ids

hivecloud_sefaz_status

Status do serviço da SEFAZ para a empresa (se o servidor da Fazenda está em operação). Bulk support: accepts empresa_ids for batched execution.

Parametersaccountempresa_idempresa_ids

hivecloud_mdfe_empresas

Lista as empresas emitentes do ambiente de MDF-e (o MDF-e tem ambiente e empresas PRÓPRIOS, distintos do CT-e). O `id` é o `empresa_id` das tools de MDF-e. Exige mdfe_tenant_id na conexão.

Parametersaccount

hivecloud_list_mdfes

Lista os MDF-e (Manifesto Eletrônico de Documentos Fiscais) da empresa, paginado (número, série, dataEmissao, statusMdfe, UF de carregamento/descarregamento, CIOT). Exige mdfe_tenant_id na conexão (ambiente do MDF-e, distinto do CT-e). Bulk support: accepts empresa_ids for batched execution.

ParametersaccountpageSizedata_finalempresa_idpageNumberempresa_idsdata_inicial

hivecloud_get_mdfe

Detalha um MDF-e pelo id: placa do veículo (dadosVeiculo), condutores (nome/CPF), CIOT, documentos vinculados (chaves de CT-e/NF-e), UFs, valor e peso da carga, status e protocolos. A listagem não traz esses campos, só o detalhe. Exige mdfe_tenant_id na conexão. Bulk support: accepts ids, empresa_ids for batched execution.

Parametersidrequiredidsaccountempresa_idempresa_ids

hivecloud_mdfe_damdfe

Gera o PDF do DAMDFE de um ou mais MDF-e e devolve a URL de download (temporária). Mesma ação do botão de impressão do emissor, não altera o documento. Exige mdfe_tenant_id na conexão.

Parametersidsrequiredaccountempresa_id

hivecloud_mdfe_xml

Exporta o XML de um ou mais MDF-e (zip) e devolve a URL de download (temporária). Não altera o documento. Exige mdfe_tenant_id na conexão.

Parametersidsrequiredaccountempresa_id

hivecloud_relatorio_viagens

Relatório consolidado de viagens (MDF-e) por período: contagem por mês, ranking por placa e por motorista, com filtros por placa e/ou motorista (CPF ou nome) e faturamento opcional (soma do valorTotalFrete dos CT-e vinculados a cada MDF-e). Consolida N empresas numa chamada (empresa_ids; omitido = todas). Resolve tudo server-side (lista o período e detalha cada MDF-e). Cancelados ficam fora por padrão. Exige mdfe_tenant_id na conexão. Responde perguntas como: quantas cargas a placa X fez no trimestre e quanto faturou.

Parametersplacaaccountmotoristadata_finalempresa_idsdata_inicialincluir_canceladosincluir_faturamento

hivecloud_list_veiculos

Lista os veículos cadastrados (placa, motorista, reboque, tara), usados no MDF-e, paginado. Exige mdfe_tenant_id na conexão. Bulk support: accepts empresa_ids for batched execution.

ParametersaccountpageSizeempresa_idpageNumberempresa_ids

hivecloud_list_motoristas

Lista os motoristas/condutores cadastrados (nome, cpf, cnh), usados no MDF-e, paginado. Exige mdfe_tenant_id na conexão. Bulk support: accepts empresa_ids for batched execution.

ParametersaccountpageSizeempresa_idpageNumberempresa_ids

hivecloud_cte_emitir

ATO FISCAL REAL: transmite um ou mais CT-e à SEFAZ (por id). Opera sobre documentos já criados/em digitação. Exige allow_writes habilitado na conexão.

Parametersidsrequiredaccountempresa_id

hivecloud_cte_cancelar

ATO FISCAL REAL: cancela um ou mais CT-e autorizados (por id) junto à SEFAZ. Irreversível. Exige allow_writes.

Parametersidsrequiredaccountempresa_id

hivecloud_cte_excluir

Exclui um ou mais CT-e (rascunhos/rejeitados, por id). Irreversível. Exige allow_writes.

Parametersidsrequiredaccountempresa_id

hivecloud_cte_averbar

Averba (registra o seguro de carga) um ou mais CT-e (por id). Exige allow_writes.

Parametersidsrequiredaccountempresa_id

hivecloud_cte_carta_correcao

ATO FISCAL REAL: emite uma carta de correção (CC-e) para um CT-e autorizado. `correcoes` é um objeto só com os campos a corrigir (ex.: {caracteristicaAdicionalTransporte, tipoServico, finalidadeEmissao, localEmissao, remetente, destinatario, ...}). Exige allow_writes. Bulk support: accepts cte_ids, empresa_ids for batched execution.

Parameterscte_idrequiredaccountcte_idscorrecoesrequiredempresa_idempresa_ids

hivecloud_mdfe_emitir

ATO FISCAL REAL: transmite um ou mais MDF-e à SEFAZ (por id). Exige allow_writes + mdfe_tenant_id.

Parametersidsrequiredaccountempresa_id

hivecloud_mdfe_encerrar

ATO FISCAL REAL: encerra um ou mais MDF-e (por id) após o fim da viagem. Exige allow_writes + mdfe_tenant_id.

Parametersidsrequiredaccountempresa_id

hivecloud_mdfe_cancelar

ATO FISCAL REAL: cancela um ou mais MDF-e (por id) junto à SEFAZ. Irreversível. Exige allow_writes + mdfe_tenant_id.

Parametersidsrequiredaccountempresa_id

show_version

Show Version

Show the current MCP platform and adapter versions.

Takes no parameters.

report_bug

Report Bug

Report a bug, missing feature, or send feedback. Include the conversation array with recent messages for reproduction.

Parameterscontextmessagerequiredconversation

connect

Connection Status

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.

Takes no parameters.

toolkit_info

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.

Takes no parameters.

marketplace

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 shareable mcp.ai/p/<slug> link that opens without login.

Parameterslimitqueryactionmcp_idmessagetool_idargumentsimmediatetier_slugprompt_bodyprompt_slugprompt_tool+11 more

authenticate

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 <token>` for a permanent, non-expiring connection. Or paste it here for a session-only login: call with { token: "<jwt>" } after the user pastes, or with no args to get the link.

Parameterstoken

Version history

1
  1. v0.1.0LatestSep 16, 2026

Score

75% 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 daysRequired25 pts
  • Auth declaredRequired10 pts
  • Tools listedRequired15 pts
  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts

    Declare a GitHub repository with a README, or serve resource_documentation in the OAuth protected-resource metadata.

  • License10 pts

    Declare a license in the repository or the registry entry.