Spiral gives your agent every tool with one account. Browse the tools →

VS Code · Lead Gen

How to Use MSC port directory in VS Code

Returns port references from MSC's schedule tools. Use it to identify the port you need before comparing sailings or checking arrivals and departures.

Prompts to try with MSC port directory in VS Code

Copy an example into VS Code, or ask in your own words.

Use MSC port directory to resolve Rotterdam and Antwerp, then add the returned port references to this project's shipping location selector.

MSC port directoryVS Code
Try asking
  • Use MSC port directory to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from MSC port directory and tell me what changed since last week.

  • Check MSC port directory and summarize what you find in three bullet points.

  • Pull the newest data from MSC port directory and give me the result as a table.

How to set up MSC port directory in VS Code

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Add the hosted server

    Use Add to VS Code on the console's Agents & MCP page, or run:

    code --add-mcp '{"name":"spiral","type":"http","url":"https://api.spiral.ai/mcp"}'
  2. Sign in

    VS Code asks you to sign in when it first starts the server: sign in to Spiral and click Authorize. No API key. Run MCP: List Servers from the Command Palette to check that Spiral is running.

Use the Spiral skill

  1. Send VS Code this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. Install and sign in

    Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run MSC port directory

    One request; the result comes back by polling or a webhook.

    curl https://api.spiral.ai/v1/runs \
      -H "Authorization: Bearer $SPIRAL_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: $(uuidgen)" \
      -d '{
        "provider": "alexandria",
        "model": "msc-com/shipment-tracking/list_ports",
        "input": {
          "query": "<query>"
        }
      }'

Then paste one of the prompts above: VS Code finds MSC port directory on Spiral, shows the price and runs it.

MSC port directory providers and prices

Spiral runs MSC port directory through Alexandria. Open a card for today's price, with every fee included.

AlexandriaLead Gen
MSC shipment tracking and schedules · List ports
msc-com/shipment-tracking/list_ports

What can you do with MSC port directory in VS Code?

Build an MSC operations view with shipment milestone timelines, sailing comparisons, and port and vessel references. A coding agent can put those records into the project's existing screens and highlight changes for an operator to review.

Prepare an export handoff

For a Rotterdam to New York shipment, identify the ports and vessels, compare sailings and cut-offs, check the loading port's calls, and review relevant MSC notices. Produce a cargo handoff checklist for the selected sailing.

Plan inbound warehouse staffing

Combine cargo milestones with vessel itineraries and destination port calls for your business's shipments. Resolve port and vessel references before drafting a receiving plan for Rotterdam.

Cross-check EU entry filing references

Match a shipment's vessel and voyage to MSC's first EU or UK port table and customs office reference. Resolve names and compare the vessel itinerary so a filer can review discrepancies.

Respond to a disrupted sailing

Compare a shipment's milestones and vessel and port calls with MSC notices, then inspect alternative sailings. Use port and vessel references to keep the current shipment and replacement options clearly identified.

Review a shipment's planned and reported journey

Compare a shipment's sailing plan with reported milestones, the vessel itinerary, and MSC notices. For EU-bound cargo, include the first-entry reference when assembling questions for the carrier.

Compare European gateways

Compare MSC sailings to Rotterdam and Antwerp, their port calls, vessel itineraries, and relevant notices. Add the published first-entry reference for selected vessels to help a planner distinguish the discharge port from the filing entry port.

Reconcile shipping reference names

Check Rotterdam, Antwerp, and the MSC vessels used in an operations report against MSC's reference lists. Prepare consistent port and vessel names for later schedule and shipment reviews.

Questions about MSC port directory in VS Code

Can VS Code use MSC port directory?

Yes. Add Spiral to VS Code as an MCP server, and VS Code can find and run MSC port directory like any built-in tool.

How much does MSC port directory cost in VS Code?

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your VS Code plan is separate.

Do I need an Alexandria account to use MSC port directory in VS Code?

No. Spiral runs MSC port directory on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up MSC port directory in VS Code?

About two minutes: add the hosted server, then sign in.

Does VS Code wait while MSC port directory runs?

MSC port directory runs in the background. VS Code starts the run, checks on it and gives you the json when it's ready.

How broad is MSC's geographic coverage?

MSC describes its network as 300 global routes serving 520 ports in more than 155 countries. Those figures describe the shipping network, not the number of records a lookup will return.

Whose shipping information does this cover?

The source is MSC's own public tools on msc.com: shipment milestones, sailing and port-call schedules, and reference lists. Its scope is the information MSC publishes through those tools.

Can an advisory appear before the schedule changes?

Yes. In its October 31, 2026 Australia Express notice, MSC said booking confirmations and online schedules would be updated progressively to reflect revised voyages.

Does MSC publish cargo deadlines alongside schedules?

MSC publishes vessel-specific cargo cut-off information alongside schedules. That makes a sailing's departure estimate and its cargo deadline separate details to check.

Can a notice describe a change that has not happened yet?

Yes. MSC's November 19, 2026 notice announced that the reinstated Mustang service would depart Yantian on December 13, 2026. Publication dates and operational dates can differ.

Get started

Start using MSC port directory in VS Code

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into VS Code:

Set up VS Code

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options