Skip to main content

MCP server for Grandline — empirical maritime distances + port lookups for LLM agents.

Project description

grandline-mcp

PyPI Python

MCP server that gives Claude / Cursor / any MCP-capable LLM access to the Grandline maritime distance API — empirical sea distances derived from real AIS vessel tracks, four route variants (primary / via-Suez / via-Panama / via-Cape), 43M cached port-pair distances.

Install

pip install grandline-mcp

Use with Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "grandline": {
      "command": "grandline-mcp",
      "env": {
        "GRANDLINE_API_KEY": "gl_live_…"   // from grandline.luzomi.com/signup; omit for anonymous tier
      }
    }
  }
}

Restart Claude Desktop. Ask: "What's the empirical sea distance from Sabine Pass to Yokohama via Panama?" — Claude will call the right tools.

Tools exposed

Tool What it does
port_lookup Resolve a port name, UN-LOCODE, or lat/lon string into a canonical port record.
nearest_ports Return the N nearest cataloged ports to a lat/lon coordinate.
find_route Empirical sea distance between two ports for one of four route variants.
compare_routes All four variants side-by-side with canal transits and steaming days.

Configuration

Env var Default Purpose
GRANDLINE_API_URL https://grandline.luzomi.com/api/v1 Override the base URL (e.g. for self-hosted).
GRANDLINE_API_KEY (unset) Bearer token from signup; without it you're on the anonymous tier (10/day, 100/month per IP).
GRANDLINE_LOG_LEVEL WARNING Verbosity. Logs go to stderr so they don't corrupt the stdio protocol stream.

Status

Alpha. The HTTP backend is stable; the MCP tool descriptions are still being tuned for LLM-friendliness.

License

MIT.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

grandline_mcp-0.1.0-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file grandline_mcp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: grandline_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for grandline_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 05a6dafaacc6ca7ed0975caf47fda4dd31c4a7c62a835c4db2c788e23a9c3c01
MD5 0fbf3c1f5201aac071c1699fff7b6f4f
BLAKE2b-256 e4bace68f065d451baf112070b51cd9fb9a3fc737b16a77fad4639d5d9ea2964

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page