Skip to main content
ME

Melhor Envio

v0.1.3OAuth2

Envío multi-transportista: cotizá Correios, Jadlog, Loggi y más de 10 transportistas. Generá etiquetas, rastreá paquetes y gestioná agencias.

18 herramientas1 env vars🇧🇷 Brasilestable en npm

Qué puede hacer tu agente

Melhor Envio le da a tu agente 18 tools que llama directo — elegí las que necesite, en Claude, Cursor o cualquier cliente MCP.

  • calculate_shippingCalculate shipping rates from multiple carriers
  • create_shipmentCreate a shipment order
  • track_shipmentTrack a shipment by order ID
Ejemplo de llamada
// 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_shipping", { /* ... */ });

Instalar

terminal
$ npm install @codespar/mcp-melhor-envio

Quickstart

Agregá esta entrada a tu claude_desktop_config.json (o a la config de cualquier cliente compatible con MCP).

claude_desktop_config.json
{
  "mcpServers": {
    "melhor-envio": {
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-melhor-envio"
      ],
      "env": {
        "MELHOR_ENVIO_TOKEN": "<your_melhor_envio_token>"
      }
    }
  }
}

Después de reiniciar, tu agente puede llamar cualquiera de las 18 herramientas de abajo — probá calculate_shipping primero.

Variables de entorno · 1

Necesarias para autenticar el server. Almacenadas cifradas al usar el hosting gestionado de CodeSpar.

MELHOR_ENVIO_TOKEN
obligatoriosecret

API key for melhor-envio

Herramientas disponibles · 18

Cada herramienta es independiente — tu agente carga solo lo que necesita para reducir contexto y tiempo de respuesta.

READcalculate_shipping
Calculate shipping rates from multiple carriers
WRITEcreate_shipment
Create a shipment order
WRITEtrack_shipment
Track a shipment by order ID
WRITEgenerate_label
Generate shipping label for an order
READlist_agencies
List carrier pickup agencies near a location
DELETEcancel_shipment
Cancel a shipment order
READget_balance
Get current account balance
WRITEadd_cart
Add shipment orders to cart for batch checkout

Frameworks compatibles

MCP es un protocolo — cualquier framework que lo hable puede montar este server.

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

Preguntas frecuentes

Corré `npx -y @codespar/mcp-melhor-envio` y agregá el bloque de config de arriba a tu cliente MCP — Claude, Cursor, VS Code o cualquier cliente compatible con MCP. Sin build, sin SDK. ¿Preferís hosted? El tier gestionado de CodeSpar lo corre por vos, con la auth resuelta.
Melhor Envio — MCP server · 18 tools | CodeSpar