ports_by_country

Pack: world-port-index · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/ports_by_country for the schema, then POST the same URL with its arguments for the data.

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).

Parameters

NameTypeRequiredDescription
countrystringyesCountry name or ISO alpha-2 code, e.g. “Singapore” or “SG”
harbor_sizestringnoFilter by harbor size: V=Very small, S=Small, M=Medium, L=Large
limitnumbernoMax ports to return (default 50, max 200)

Example call

Arguments

{
  "country": "Singapore"
}

curl

curl -X POST https://gateway.pipeworx.io/world-port-index/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"ports_by_country","arguments":{"country":"Singapore"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('ports_by_country', {
  "country": "Singapore"
});

Connect

Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://pipeworx.io/mcp"
    }
  }
}
Connect to just the world-port-index pack
{
  "mcpServers": {
    "world-port-index": {
      "url": "https://gateway.pipeworx.io/world-port-index/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build October 27, 2026