Skip to main content
SU

SuperFrete

v0.1.0API Key

serverData.superfrete.description

11 tools2 env varsπŸ‡§πŸ‡· Brazilstable on npm

What your agent can do

SuperFrete gives your agent 11 tools it calls directly β€” pick the ones it needs, in Claude, Cursor, or any MCP client.

  • calculate_freight β€” Calculate shipping rates across multiple carriers (PAC, SEDEX, JadLog, Loggi, Mini Envios). Returns pricing, delivery time, and carrier details for each available service.
  • create_freight β€” Create a freight/label order. Returns the order ID, price, protocol, and tracking code. For commercial shipments, invoice details are required.
  • get_freight β€” Get detailed information about a freight order including status, tracking, addresses, pricing, and label print URL.
Example call
// 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", { /* ... */ });

Install

terminal
$ npm install @codespar/mcp-superfrete

Quickstart

Add this entry to your claude_desktop_config.json (or any MCP-compatible client config).

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

After restart, your agent can call any of the 11 tools below β€” try calculate_freight first.

Environment variables Β· 2

Required to authenticate the server. Stored encrypted when using CodeSpar managed hosting.

SUPERFRETE_TOKEN
requiredsecret

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

SUPERFRETE_SANDBOX
optional

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

Available tools Β· 11

Each tool is independent β€” your agent loads only what it needs to reduce context and response time.

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.

Compatible frameworks

MCP is a protocol β€” any framework that speaks it can mount this server.

Claude Agent SDKAnthropic
OpenAI AgentsOpenAI
Vercel AI SDKVercel
LangChainLangChain
LlamaIndexLlamaIndex
CrewAICrewAI
MastraMastra
Any MCP clientProtocol

Frequently asked questions

Run `npx -y @codespar/mcp-superfrete` and add the config block above to your MCP client β€” Claude, Cursor, VS Code, or any MCP-compatible client. No build step, no SDK required. Prefer hosted? CodeSpar's managed tier runs it for you with auth handled.
SuperFrete β€” MCP server Β· 11 tools | CodeSpar