World Port Index

liveReference

World Port Index — port facilities, depths, and anchorages.

3tools
0msauth
free tier50 calls/day

Tools

port_lookup

Look up a port in the NGA World Port Index by name, UN/LOCODE, or WPI number. Returns WPI number, coordinates, harbor size/type, channel/anchorage/cargo-pier depths, and facilities. Refuses with an er

No parameters required.

▶Try it
ports_near

Find NGA World Port Index ports within a radius of a lat/lon point, sorted nearest first, with distance in km.

No parameters required.

▶Try it
ports_by_country

List NGA World Port Index ports for a country (name or ISO 3166-1 alpha-2 code), optionally filtered by harbor size (V/S/M/L).

No parameters required.

▶Try it

Test with curl

The gateway speaks JSON-RPC 2.0 over HTTP POST. You can test any pack directly from the terminal.

List available tools
bash
curl -X POST https://gateway.pipeworx.io/world-port-index/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
Call a tool
bash
curl -X POST https://gateway.pipeworx.io/world-port-index/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"port_lookup","arguments":{}}}'

Use with the SDK

Install @pipeworx/sdk to call tools from any TypeScript/Node project.

TypeScript
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("port_lookup", {});
ask_pipeworx
// Or ask in plain English:
const answer = await px.ask("world port index — port facilities, depths, and anchorages");