DataFirst Routing MCP Server

रूटिंग MCP एंडपॉइंट

दस्तावेज़

Koppel DataFirst MCP in 30 seconden

Plak één snippet in uw MCP-client en start direct met route-optimalisatie.

Endpoint

Gebruik deze MCP URL:

https://mcp.datafirstrouting.com/mcp

Quick setup (Claude CLI)

Run this one command in your terminal:

claude mcp add --transport http datafirst https://mcp.datafirstrouting.com/mcp

Claude Code example

Full Claude Code console example (MCP name: datafirst):

user@host:~$ claude mcp add --transport http datafirst https://mcp.datafirstrouting.com/mcp
Successfully added MCP server "datafirst".

user@host:~$ claude
╭─── Claude Code v2.1.123 ─────────────────────────────────────────────────────╮
│                                                    │ Tips for getting        │
│                 Welcome back User!                 │ started                 │
│                                                    │ Run /init to create a … │
│                       ▐▛███▜▌                      │ Note: You have launche… │
│                      ▝▜█████▛▘                     │ ─────────────────────── │
│                        ▘▘ ▝▝                       │ What's new              │
│                                                    │ Fixed OAuth authentica… │
│      Sonnet 4.6 · API Usage Billing · User's      │ Added ANTHROPIC_BEDRO…  │
│      Individual Org                                │ /release-notes for more │
│                     /home/user                     │                         │
╰──────────────────────────────────────────────────────────────────────────────╯

Auth conflict: Using ANTHROPIC_API_KEY instead of Anthropic Console key.
Either unset ANTHROPIC_API_KEY, or run \`claude /logout\`.

❯ "I have 3 refrigerated trucks departing from Rotterdam. I need to deliver to
  9 customers spread across the Netherlands, Belgium, and Germany. Each truck
  has a max range of 700km and must return to Rotterdam. Customers in Belgium
  only accept deliveries before 11:00. Minimize total distance and don't route
  two trucks through the same city." use DataFirst MCP

● Let me load the DataFirst MCP tool schema first, then solve this routing problem.
● Now I'll call the optimizer with all 9 customers, 3 trucks, Belgium time windows, and the 700 km range constraint.

Called datafirst (ctrl+o to expand)

────────────────────────────────────────────────────────────────────────────────
Tool use

  datafirst - optimize_route(depot_coordinates: [51.9225,4.4792],
  delivery_date: "2026-04-30T06:00:00", vehicles:
  [{"id":"truck-1","working_hours":["2026-04-30T06:00:00","2026-04-30T20:00:00"],"cost_per_km":1},
   {"id":"truck-2","working_hours":["2026-04-30T06:00:00","2026-04-30T20:00:00"],"cost_per_km":1},
   {"id":"truck-3","working_hours":["2026-04-30T06:00:00","2026-04-30T20:00:00"],"cost_per_km":1}],
  deliveries: [{"id":"amsterdam","delivery_address":"Amsterdam, Netherlands","delivery_coordinates":[52.3676,4.9041],"service_time":30},
               {"id":"utrecht","delivery_address":"Utrecht, Netherlands","delivery_coordinates":[52.0907,5.1214],"service_time":30},
               {"id":"eindhoven","delivery_address":"Eindhoven, Netherlands","delivery_coordinates":[51.4416,5.4697],"service_time":30},
               {"id":"antwerp","delivery_address":"Antwerp, Belgium","delivery_coordinates":[51.2194,4.4025],"service_time":30,"time_window_start":"2026-04-30T06:00:00","time_window_end":"2026-04-30T11:00:00"}...])

● All 9 deliveries assigned, all constraints satisfied. Here's the optimized plan:

---
Optimal Delivery Plan

Depot: Rotterdam | Date: 2026-04-30 | Depart: 06:00

Truck 1: Netherlands North Loop
Route: Rotterdam → Den Haag → Amsterdam → Groningen → Utrecht → Rotterdam
Distance: 518 km ✅

Truck 2: Belgium + Germany Loop
Route: Rotterdam → Antwerp → Ghent → Brussels → Düsseldorf → Eindhoven → Rotterdam
Distance: 646 km ✅

Truck 3: Not needed

Summary:
- Stops: Truck 1 = 4, Truck 2 = 5, Truck 3 = 0
- Total fleet distance: 1,164 km
- Belgian time windows: all before 11:00 ✅
- Max range 700 km: both active trucks are within range ✅
- No city shared between trucks ✅

---

Cursor setup (mcp.json)

If you prefer Cursor setup: ask Cursor to open your mcp.json and add the snippet below under mcpServers.

{
  "mcpServers": {
    "datafirst-logistics": {
      "url": "https://mcp.datafirstrouting.com/mcp"
    }
  }
}

Register API endpoint

Gebruik dit endpoint om een account aan te maken en een API key uit te geven:

https://mcp.datafirstrouting.com/register

Voorbeeld register request

curl -X POST "https://mcp.datafirstrouting.com/register" \
  -H "content-type: application/json" \
  -d '{
    "email": "you@company.com",
    "companyName": "Your Company"
  }'

Strikte modus (API key per gebruiker)

Aanbevolen voor billing per gebruiker.

{
  "mcpServers": {
    "datafirst-logistics": {
      "url": "https://mcp.datafirstrouting.com/mcp",
      "headers": {
        "x-api-key": "<issued_key_here>"
      }
    }
  }
}

Snelle tips

  • Herstart uw MCP-client na opslaan van mcp.json
  • Roep optimize_route aan met deliveries + vehicles payload
  • Gebruik /register als u sleutels per gebruiker wilt

Hulp nodig met setup?

Plan een korte onboarding call en we koppelen het samen.