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

@searoute-ts/mcp

v0.1.2

Published

Model Context Protocol server exposing searoute-ts sea-route tools (sea_route, sea_route_alternatives) to AI agents.

Downloads

395

Readme

@searoute-ts/mcp

npm version license

A Model Context Protocol server that exposes searoute-ts to AI agents, so they can compute real shortest sea routes ("how far is Shanghai to Rotterdam by sea, avoiding Suez?") instead of guessing.

It's a thin wrapper over the searoute-ts public API — no new routing logic — and accepts UN/LOCODE port codes (e.g. CNSHA) as well as [lon, lat] coordinates.

Tools

sea_route

Shortest maritime route between two points. Returns distance, optional duration, the canals/straits traversed, detour ratio, and the route GeoJSON.

| Argument | Type | Notes | | --- | --- | --- | | origin, destination | port code string or [lon, lat] | required | | units | "nauticalmiles" | "kilometers" | "miles" | default nauticalmiles | | restrictions | passage name array | e.g. ["suez","babelmandeb"] to force Cape of Good Hope | | allowArctic | boolean | allow the (default-blocked) Northwest/Northeast Passages | | speedKnots | number | fills an estimated duration in hours | | vesselDraftMeters | number | auto-avoids canals too shallow for the vessel | | maxSnapDistanceKm | number | reject inputs too far from the sea network | | includeGeometry | boolean | include the route GeoJSON (default true) |

sea_route_alternatives

Up to k distinct alternatives, each blocking a different combination of major canals/straits (baseline vs. no-Suez vs. no-Panama …), sorted by distance — useful for comparing "via Suez" against "via Cape of Good Hope".

Install & run

npm install -g @searoute-ts/mcp   # or use npx, below

The server speaks MCP over stdio.

Claude Code / claude CLI

claude mcp add searoute -- npx -y @searoute-ts/mcp

Claude Desktop / generic MCP client config

{
  "mcpServers": {
    "searoute": {
      "command": "npx",
      "args": ["-y", "@searoute-ts/mcp"]
    }
  }
}

Example

"What's the sea distance from Shanghai to Rotterdam, and how much longer is it if we avoid the Suez Canal?"

The agent calls sea_route('CNSHA', 'NLRTM') (≈ 19,753 km via Suez) and sea_route('CNSHA', 'NLRTM', { restrictions: ['suez', 'babelmandeb'] }) (≈ 25,315 km via the Cape of Good Hope).

Develop

npm install
npm run build     # tsc -> dist/
npm test          # vitest — exercises the tool handlers
npm run dev       # run from source with tsx

License

MIT — see the root repository.