Laytime Calculator Pro

Laytime Calculator Pro

AI-powered laytime, demurrage and despatch calculation for ship chartering. Send a Charter Party, Fixture Recap, NOR or Statement of Facts as text or files (PDF, image, Excel) and get a full, auditable laytime statement. Available as a REST API and an MCP server.

Category
Visit Server

README

Laytime Calculator Pro — API & MCP Server

AI-powered laytime, demurrage and despatch calculation for dry-bulk and tanker chartering. Send a Charter Party, Fixture Recap, Notice of Readiness (NOR) or Statement of Facts (SoF) — get back a full, auditable laytime statement with the demurrage / despatch settlement.

Built for software teams in shipping: integrate it into your own systems over a plain REST API, or plug it into an AI assistant via the Model Context Protocol (MCP). Same key, same quota, same engine.

  • 🌐 Product: https://navitt.com/web
  • 🔑 API access & pricing: https://navitt-mcp.marine-356.workers.dev/authorize
  • 📇 MCP Registry: io.github.shipping-ship-it/laytime-calculator-pro
  • ✉️ Contact: shipping@agrix.world

What it does

Laytime calculation requires holding every charter-party term in mind at once — laycan, NOR validity, turn time, SHINC/SHEX, weather working days, exceptions, half-rate periods, reversible vs non-reversible time. Miss one clause and the settlement is wrong. This service reads the documents, applies the terms and returns a day-by-day calculation you can audit, with the final demurrage or despatch figure.

  • Accepts Charter Party, Fixture Recap, NOR, Statement of Facts, Bills of Lading
  • Input as plain text and/or files (PDF, image, Excel)
  • Returns a full, line-by-line laytime statement plus the settlement
  • Works with any language or platform over REST — no AI required on your side

Quick start (REST)

curl -X POST https://navitt-mcp.marine-356.workers.dev/api/calculate \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "NOR tendered 01 Jun 08:00. Loading 01 Jun 12:00 to 03 Jun 18:00. Laytime allowed 3 days SHINC. Demurrage USD 10000/day. Despatch half demurrage."
  }'

Response:

{
  "result": "… full day-by-day laytime statement and demurrage/despatch settlement …",
  "remaining": 92
}

remaining is the number of calculations left on your plan.


Authentication

Every request must include your API key in the x-api-key header. Keys are issued after sign-up on the access & pricing page.

x-api-key: YOUR_API_KEY

REST API reference

POST /api/calculate

Base URL: https://navitt-mcp.marine-356.workers.dev

Headers

Header Required Value
x-api-key yes Your API key
Content-Type yes application/json

Body (JSON) — provide text, documents, or both:

Field Type Required Description
text string no* Plain-text input, e.g. a pasted fixture recap or SoF
documents array no* Document files, base64-encoded (see below)
instructions string no Extra instructions, e.g. "SHEX applies. Demurrage USD 3,500/day"

* At least one of text or documents must be supplied.

documents[] item

Field Type Description
mimeType string e.g. application/pdf, image/png
data string base64-encoded file content

Response 200 OK

Field Type Description
result string The full laytime statement and settlement
remaining integer Calculations left on your plan

Errors

Status Meaning
401 Missing or invalid x-api-key
400 Body is not valid JSON, or neither text nor documents
402 Calculation quota exhausted (NO_CREDITS) — top up
502 Calculation engine error — retry later

Each successful request consumes one calculation from your plan.


Example: sending a document (Node.js)

import { readFileSync } from "node:fs";

const data = readFileSync("charter_party.pdf").toString("base64");

const res = await fetch("https://navitt-mcp.marine-356.workers.dev/api/calculate", {
  method: "POST",
  headers: {
    "x-api-key": process.env.LAYTIME_API_KEY,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    documents: [{ mimeType: "application/pdf", data }],
    instructions: "SHINC. Demurrage USD 12,000/day, despatch half demurrage.",
  }),
});

const { result, remaining } = await res.json();
console.log(result);
console.log("Calculations left:", remaining);

Example: Python

import base64, requests

with open("statement_of_facts.pdf", "rb") as f:
    data = base64.b64encode(f.read()).decode()

r = requests.post(
    "https://navitt-mcp.marine-356.workers.dev/api/calculate",
    headers={"x-api-key": "YOUR_API_KEY"},
    json={"documents": [{"mimeType": "application/pdf", "data": data}]},
)
print(r.json()["result"])

MCP server

The same calculator is available as a Model Context Protocol server, so an AI assistant can call it directly as a tool.

  • Endpoint: https://navitt-mcp.marine-356.workers.dev/mcp (streamable HTTP, OAuth-protected)
  • Registry name: io.github.shipping-ship-it/laytime-calculator-pro
  • Tool: calculate_laytime

Tool input

Field Type Description
text string Plain-text input (recap, SoF, etc.)
documents array { mimeType, data } — base64-encoded files
instructions string Optional extra instructions

Authorize and obtain access on the access & pricing page.


Pricing

Pay-as-you-go: USD 1,000 for 500 calculations (USD 2 per calculation), by card or by invoice to a corporate account. Corporate rates available for teams. See the access & pricing page or contact shipping@agrix.world.


About

Built by AGRIX / Navitt — modern tools for shipping. BIMCO member 181628.

  • https://agrix.world
  • https://navitt.com

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured