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

@subsolution/mcp-server

v1.0.0

Published

MCP server for the Logistics Aggregator External Shipment API

Readme

Logistics Aggregator MCP Server

An MCP server that exposes the Logistics Aggregator External Shipment API as tools, so an assistant can quote, book, track, edit and cancel shipments directly.

Getting credentials

In the portal, go to Developers → API Credentials and create a credential. You get a clientId (lgk_live_…) and a clientSecret (sk_live_…). The secret is shown once — store it somewhere safe.

The credential is bound to a single outlet: everything this server does happens as that outlet, scoped to that outlet's shipments.

Setup

Add the server to your MCP client's configuration.

Claude Desktopclaude_desktop_config.json:

{
  "mcpServers": {
    "logistics": {
      "command": "npx",
      "args": ["-y", "@subsolution/mcp-server"],
      "env": {
        "LOGISTICS_BASE_URL": "https://ops.subsolution.in",
        "LOGISTICS_CLIENT_ID": "lgk_live_...",
        "LOGISTICS_CLIENT_SECRET": "sk_live_..."
      }
    }
  }
}

Claude Code:

claude mcp add logistics \
  --env LOGISTICS_BASE_URL=https://ops.subsolution.in \
  --env LOGISTICS_CLIENT_ID=lgk_live_... \
  --env LOGISTICS_CLIENT_SECRET=sk_live_... \
  -- npx -y @subsolution/mcp-server

| Variable | Required | Description | | ------------------------- | -------- | --------------------------------------------------- | | LOGISTICS_CLIENT_ID | yes | Credential client id | | LOGISTICS_CLIENT_SECRET | yes | Credential secret | | LOGISTICS_BASE_URL | no | API base URL (default https://ops.subsolution.in) |

Tools

| Tool | What it does | | ---------------------- | ------------------------------------------------------------ | | get_quotes | Price a route across all serviceable partners | | book_shipment | Quote, pick a partner and book in one call — moves money | | list_shipments | List shipments, with status/date filters | | get_shipment | Full details by shipment id, AWB or your order id | | track_shipment | Tracking history and current status | | edit_shipment | Update a shipment before carrier handover | | cancel_shipment | Cancel and refund where the state allows | | recalculate_rates | Re-price an existing shipment against current rates | | check_serviceability | Which partners cover a route |

Booking

book_shipment is one-step: it prices the route, picks a partner (selection: "cheapest" | "fastest", or an explicit partnerId), and books — debiting the outlet's wallet. Every booking carries an idempotency key, so a retried call replays the original result instead of booking twice.

Notes

  • Tokens are handled for you: minted on demand, cached for their hour, and refreshed once automatically if the API returns 401.
  • Errors surface the API's own code and request_id; quote the request id in any support conversation.
  • Requests are rate limited per credential (60/min by default, 20/min for bookings). The tools surface rate_limit_exceeded with a retry hint.

Development

npm install
LOGISTICS_CLIENT_ID=… LOGISTICS_CLIENT_SECRET=… npm start   # stdio
npm run inspect                                             # MCP Inspector