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

@with-harmon/mcp

v0.1.0

Published

MCP server for the Harmon customs intelligence API. Exposes landed-cost estimation + customs data freshness as tools any MCP client (Claude Desktop, Cursor, etc.) can call.

Readme

@harmon/mcp

Model Context Protocol (MCP) server for the Harmon customs intelligence API. Wave 2.2 of the Harmon growth plan.

Lets any MCP-compatible client (Claude Desktop, Cursor, etc.) call Harmon's public endpoints as tools:

| Tool | What it does | | ----------------------------------- | ------------------------------------------------------------------------------------------------ | | harmon_estimate_landed_cost | Duty + VAT + total landed cost for a single HS-coded product between two countries. | | harmon_get_customs_data_freshness | Per-source freshness for every customs table Harmon ships (de-minimis, VAT, FTA, ADD/CVD, etc.). |

No API key needed — both tools target the public Harmon endpoints (the same ones documented at withharmon.com/developer). Rate-limited per IP at the server.

Install (Claude Desktop)

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "harmon": {
      "command": "npx",
      "args": ["-y", "@harmon/mcp"],
      "env": {
        "HARMON_API_BASE": "https://withharmon.com/api"
      }
    }
  }
}

Restart Claude Desktop. Ask: "Use Harmon to estimate the duty on a $49.99 cotton T-shirt shipping from the US to Germany under HS 6109100010."

Run locally

cd mcp
npm install      # only if you're hacking on the server itself
npm run build    # transpiles src/ → dist/
HARMON_API_BASE=https://withharmon.com/api node bin/harmon-mcp.js
# the server reads JSON-RPC 2.0 from stdin and writes responses to stdout.

Protocol coverage

Implements the minimal MCP surface:

  • initialize (returns serverInfo + capabilities)
  • notifications/initialized
  • tools/list
  • tools/call

This avoids the @modelcontextprotocol/sdk dependency — keeping the install footprint tiny and reducing supply-chain attack surface for a tool that runs locally with the user's network access.

Tests

From the repo root:

npx vitest run mcp/__tests__/

12 unit tests cover argument validation, URL building, JSON-RPC method dispatch, error envelopes, and notification (no-id) handling.

Adding a tool

  1. Add a ToolDefinition to TOOL_DEFINITIONS in src/tools.ts.
  2. Implement an async handler matching (args, ctx) => Promise<ToolResult>.
  3. Register it in TOOL_HANDLERS.
  4. Add a test in __tests__/tools.test.ts.

Argument validation is hand-rolled (zod would add ~50KB to the install). Keep validators in tools.ts next to their handler.