npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@envia/envia-mcp

v0.1.0

Published

MCP server for Envia shipping APIs — quote rates, create labels, track packages, and more from your AI assistant.

Readme

@envia/envia-mcp

MCP server for Envia shipping APIs. Quote rates, create labels, track packages, schedule pickups, and more — directly from your AI assistant.

Quick start

# Run with npx (no install needed)
npx @envia/envia-mcp

Set your API key as an environment variable:

export ENVIA_API_KEY="your_jwt_token_here"

# Optional: use production (default is sandbox)
# export ENVIA_ENVIRONMENT="production"

Get your API key:

  • Sandbox: https://app.envia.com → Settings → API Keys
  • Production: https://app-production.envia.com → Settings → API Keys

IDE setup

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "envia": {
      "command": "npx",
      "args": ["@envia/envia-mcp"],
      "env": {
        "ENVIA_API_KEY": "your_jwt_token_here"
      }
    }
  }
}

Cursor

Add to .cursor/mcp.json in your project root:

{
  "mcpServers": {
    "envia": {
      "command": "npx",
      "args": ["@envia/envia-mcp"],
      "env": {
        "ENVIA_API_KEY": "your_jwt_token_here"
      }
    }
  }
}

VS Code

Add to .vscode/mcp.json in your project root:

{
  "servers": {
    "envia": {
      "type": "stdio",
      "command": "npx",
      "args": ["@envia/envia-mcp"],
      "env": {
        "ENVIA_API_KEY": "your_jwt_token_here"
      }
    }
  }
}

Available tools

| Tool | Description | |------|-------------| | envia_validate_address | Validate postal codes and look up cities | | envia_list_carriers | List available carriers and services for a country | | envia_get_shipping_rates | Compare rates across carriers for a route | | envia_create_label | Purchase a shipping label (charges balance) | | envia_track_package | Track one or more shipments | | envia_cancel_shipment | Void a label and reclaim balance | | envia_schedule_pickup | Schedule carrier pickup | | envia_get_shipment_history | List shipments by month | | envia_classify_hscode | Classify product HS code for customs | | envia_create_commercial_invoice | Generate customs invoice PDF |

Example conversations

Domestic shipment (Mexico)

You: Ship a 2kg box (30x20x15cm) from postal code 64000 in Monterrey
     to 03100 in Mexico City. Compare DHL and Estafeta rates.

AI:  [validates both postal codes with envia_validate_address]
     [fetches rates with envia_get_shipping_rates for dhl,estafeta]

     Here are your options:
       DHL Economy:    $185.20 MXN — 3-5 business days
       Estafeta Express: $210.00 MXN — 1-2 business days

     Would you like me to create a label with one of these?

You: Yes, go with DHL Economy.

AI:  [creates label with envia_create_label]

     Label created!
       Tracking: 7520610403
       Label PDF: https://...
       Price: $185.20 MXN

International shipment

You: I need to ship handmade ceramic mugs from Mexico to the US.
     What HS code should I use?

AI:  [classifies with envia_classify_hscode]

     Recommended HS code: 6912.00 — Ceramic tableware
     This code is required for customs when creating the label.

Environment variables

| Variable | Required | Default | Description | |----------|----------|---------|-------------| | ENVIA_API_KEY | Yes | — | Your Envia JWT token | | ENVIA_ENVIRONMENT | No | sandbox | sandbox or production |

Development

git clone https://github.com/envia-ep/envia-mcp-server.git
cd envia-mcp-server
npm install
npm run build
npm test

License

MIT