Skip to main content
SU

SuperFrete

v0.1.0API Key

serverData.superfrete.description

11 ferramentas2 env vars🇧🇷 Brasilestável no npm

O que seu agente faz

O SuperFrete dá ao seu agente 11 tools que ele chama direto — escolha as que precisar, no Claude, Cursor ou qualquer cliente MCP.

  • calculate_freightCalculate shipping rates across multiple carriers (PAC, SEDEX, JadLog, Loggi, Mini Envios). Returns pricing, delivery time, and carrier details for each available service.
  • create_freightCreate a freight/label order. Returns the order ID, price, protocol, and tracking code. For commercial shipments, invoice details are required.
  • get_freightGet detailed information about a freight order including status, tracking, addresses, pricing, and label print URL.
Exemplo de chamada
// Your agent calls a tool directly — no glue code.
// CodeSpar's managed tier handles OAuth2, token rotation and rate limits.
const result = await session.call("calculate_freight", { /* ... */ });

Instalar

terminal
$ npm install @codespar/mcp-superfrete

Quickstart

Adicione esta entrada ao seu claude_desktop_config.json (ou a config de qualquer cliente compatível com MCP).

claude_desktop_config.json
{
  "mcpServers": {
    "superfrete": {
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-superfrete"
      ],
      "env": {
        "SUPERFRETE_TOKEN": "<your_superfrete_token>"
      }
    }
  }
}

Depois de reiniciar, seu agente pode chamar qualquer uma das 11 ferramentas abaixo — teste calculate_freight primeiro.

Variáveis de ambiente · 2

Necessárias pra autenticar o server. Armazenadas criptografadas ao usar a hospedagem gerenciada da CodeSpar.

SUPERFRETE_TOKEN
obrigatóriosecret

SuperFrete API Bearer token from https://web.superfrete.com/#/integrations

SUPERFRETE_SANDBOX
opcional

Set to 'true' to use the sandbox API (https://sandbox.superfrete.com/). Defaults to production.

Ferramentas disponíveis · 11

Cada ferramenta é independente — seu agente carrega só o que precisa pra reduzir contexto e tempo de resposta.

READcalculate_freight
Calculate shipping rates across multiple carriers (PAC, SEDEX, JadLog, Loggi, Mini Envios). Returns pricing, delivery time, and carrier details for each available service.
WRITEcreate_freight
Create a freight/label order. Returns the order ID, price, protocol, and tracking code. For commercial shipments, invoice details are required.
READget_freight
Get detailed information about a freight order including status, tracking, addresses, pricing, and label print URL.
READcheckout_freight
Purchase/checkout freight orders. Pays for the orders and generates shipping labels. Returns tracking numbers and label print URLs.
DELETEcancel_freight
Cancel a freight order. Provide the order ID and a reason for cancellation.
READget_user_info
Get authenticated user information including name, email, document (CPF/CNPJ), account balance, and shipment limits.
WRITEget_user_addresses
List all saved addresses for the authenticated user.
READget_services
Get available shipping services with detailed restrictions (min/max weight, dimensions) and carrier information.

Frameworks compatíveis

MCP é um protocolo — qualquer framework que o fale pode montar este server.

Claude Agent SDKAnthropic
OpenAI AgentsOpenAI
Vercel AI SDKVercel
LangChainLangChain
LlamaIndexLlamaIndex
CrewAICrewAI
MastraMastra
Qualquer cliente MCPProtocolo

Perguntas frequentes

Rode `npx -y @codespar/mcp-superfrete` e adicione o bloco de config acima ao seu cliente MCP — Claude, Cursor, VS Code ou qualquer cliente compatível com MCP. Sem build, sem SDK. Prefere hospedado? O tier gerenciado da CodeSpar roda pra você, com a auth resolvida.
SuperFrete — MCP server · 11 tools | CodeSpar