Naar de inhoud

Ontwikkelaars

Konvoi MCP-server

Koppel Claude, ChatGPT, Cursor of je eigen scripts aan je vlootgegevens in Konvoi via het Model Context Protocol.

Server-URL

https://konvoi.ai/api/mcp

Konvoi Dispatch en AI-clients worden per werkruimte aangezet.

Vereisten

WerkruimteDispatch en AI-clients (MCP) aangezet
AanmeldenJe Konvoi-login, met je passkey of tweede stap als je die gebruikt
ClientEen MCP-client die met externe servers verbindt over HTTP met OAuth

Koppelen

Claude

  1. Settings → Connectors
  2. Add custom connector
  3. Plak de server-URL
  4. Meld je aan bij Konvoi en sta toegang toe

ChatGPT

  1. Settings → Connectors → Advanced
  2. Zet Developer mode aan
  3. Maak een connector met de server-URL, authenticatie OAuth
  4. Meld je aan bij Konvoi en sta toegang toe

Claude Code

Voer uit in een terminal:

claude mcp add --transport http konvoi https://konvoi.ai/api/mcp

Voer /mcp uit in Claude Code en meld je aan bij Konvoi

Cursor · VS Code

  1. Cursor: toevoegen aan ~/.cursor/mcp.json
  2. VS Code: MCP: Add Server → HTTP → plak de server-URL
  3. Meld je aan bij Konvoi wanneer gevraagd
{
  "mcpServers": {
    "konvoi": {
      "url": "https://konvoi.ai/api/mcp"
    }
  }
}

Scripts

Persoonlijke tokens: Profiel → AI-clients → Persoonlijk token aanmaken

Initialiseren
curl -s https://konvoi.ai/api/mcp \
  -H "Authorization: Bearer $KONVOI_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "initialize",
  "params": {
    "protocolVersion": "2025-06-18",
    "capabilities": {},
    "clientInfo": {
      "name": "curl",
      "version": "1.0"
    }
  }
}'
Tools opvragen
curl -s https://konvoi.ai/api/mcp \
  -H "Authorization: Bearer $KONVOI_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/list"}'
Een tool aanroepen
curl -s https://konvoi.ai/api/mcp \
  -H "Authorization: Bearer $KONVOI_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"list_workspaces","arguments":{}}}'

Waar het bij kan

  • Elke werkruimte die je kunt openen waar Dispatch en AI-clients aan staan, met je rol in die werkruimte.
  • Bij het koppelen kun je het beperken tot enkele werkruimtes en Wijzigingen voorstellen weglaten.
  • Een werkruimtebeheerder kan een koppeling uit zijn werkruimte verwijderen via Dispatch → Koppelen.
  • Profiel → AI-clients toont je koppelingen; Ontkoppelen beëindigt er meteen een.

Tools

Leestools zoeken dingen op met jouw rol. propose_*-tools maken een voorstel en wijzigen zelf niets. De beschrijvingen van de tools zijn in het Engels, zoals de AI-client ze ziet.

Account

whoami
Who this connection acts for: the person, the connection's scopes, and the default workspace when there is exactly one. Elke rol
list_workspaces
Every workspace this connection can open: slug, name, organisation, the person's role, whether Dispatch is on, and the vehicle count. Elke rol
fleet_overview
Headline numbers for one or more workspaces side by side: vehicles, drivers, open fines, open fuel cases, silent trackers and fleet fuel use (median L/100 km over the last 30 days). Minimale rol: VIEWER

Vloot

search_fleet
Search across the entire workspace for vehicles, drivers, fines, invoices, fuelings, emails, inspections, incidents, and contacts. Minimale rol: VIEWER
list_vehicles
The fleet, filtered (AND) and paged, for any "which vehicles …" question about what a vehicle IS or HAS; total is the full count. Minimale rol: VIEWER
get_record
Read one record in full by kind and id. Minimale rol: VIEWER
get_vehicle_tco
Total cost of ownership of one vehicle over a period, as its Costs tab shows it: repairs, invoices by category, fuel, fixed costs (lease, insurance, road tax, depreciation, driver — monthly amounts prorated by day), cos… Minimale rol: VIEWER
get_cost_per_vehicle
What each vehicle cost over a period, as the Cost per vehicle page shows it: internal maintenance, external maintenance, tyres (tyre invoices, and lines on a tyre article, taken out of maintenance), toll, fuel, other, f… Minimale rol: VIEWER
list_drivers
List and filter the drivers page by page: name, e-mail, phone, external id, licence type and validity, the vehicles they currently drive, labels, and whether they are active. Minimale rol: VIEWER
get_driver_hours
How much driving time drivers have left (EU 561), as Transics calculates it now: today, this week, this fortnight and before the next 45-minute break, plus extended (10 h) days left and the current activity. Minimale rol: VIEWER
get_list_options
What a list in Konvoi (vehicles = the Fleet list, drivers, invoices, fuelings, documents, fines, emails) can be cut by: every column id (linked fields read relation.field, e.g. driver.phone; custom fields meta_<key> / c… Minimale rol: VIEWER
open_list
Open a list on the user's screen, cut as they asked, or a saved view: whenever they want to SEE rows ("show me", "only the trailers", "add the phone column"). Minimale rol: VIEWER
find_records
The REAL total and the rows (id, key fields, url) of a cut of invoices, fuelings, documents, fines or emails (the inbox), newest first, paged with cursor. Minimale rol: VIEWER
list_contacts
List workspace contacts (insurance companies, leasing companies, garages, etc.). Minimale rol: VIEWER
get_fleet_alerts
Get fleet health alerts for the workspace. Minimale rol: VIEWER
find_duplicate_vehicles
Find vehicle records that may be the same vehicle twice: same plate, same VIN, VINs one or two characters apart (a misread 0/O, 1/I, 8/B), plates one character apart on the same make, or a VIN typed into the plate field. Minimale rol: VIEWER
list_vehicle_models
The workspace's vehicle models: name, make, model, year, VIN prefix, body type and axle template (which its vehicles inherit: Staat, Banden and inspections draw them so) and how many vehicles each has, plus how many veh… Minimale rol: VIEWER
list_seen_trailers
Trailers TX-Connect (Transics) reports on a truck that match no Konvoi vehicle by plate or code — the fix for a sync that counts "trucks carrying a trailer Konvoi does not know". Minimale rol: VIEWER
list_permits
List the exceptional-transport permits: number, holder, category, validity, status and the vehicles on each. Minimale rol: VIEWER
list_inspections
List vehicle inspections, newest first: vehicle, type, status, odometer, defects found, photo count and the evidence-seal status. Minimale rol: VIEWER
list_tyres
The fleet's tyres: size, brand and model, season, state (IN_STOCK, FITTED, AT_RETREADER, SCRAPPED), the vehicle and position it is on (1L, 2LO, S1 …), km in total, last tread and wear %, age from the DOT code, life (NEW… Minimale rol: VIEWER
get_vehicle_tyres
A vehicle's tyres position by position: its axle layout (axles, twin wheels, spares) and, on each position, the tyre's size, brand, season, tread and wear %, km, age and life, or that the position is empty. Minimale rol: VIEWER
list_maintenance_due
What maintenance is due across the fleet, soonest first: plate, plan, status, why (KM, HOURS, MONTHS, DATE, DOCUMENT) and when or at what km. Minimale rol: VIEWER
get_vehicle_maintenance
One vehicle's maintenance: the km and engine hours Konvoi counts from, km per day, every plan on it with its status, what is left and the expected date at its own pace, and the last ten times something was done. Minimale rol: VIEWER
list_maintenance_plans
The maintenance plans: code, name, kind (INTERVAL, CALENDAR, DOCUMENT), which vehicles, how often, the warning window and how many vehicles it is on. Minimale rol: VIEWER

Boetes en documenten

list_document_reviews
List documents in the review inbox that need human verification: pending, approved or rejected. Minimale rol: VIEWER
list_documents
List uploaded documents (files) with their processing state: the attachments of an incoming email (emailId — the Entity ID on an /email-inbox/<id> page), or filtered by status, class or file name. Minimale rol: VIEWER
list_document_requests
List document requests sent to contacts (insurance companies, leasing companies, garages, etc.). Minimale rol: VIEWER
read_document
Read any uploaded file (PDF text, OCR of scans and photos, spreadsheets); nothing is mapped for you. Minimale rol: VIEWER
upload_document
Add a file to the workspace, processed exactly like a browser upload or a file e-mailed to the workspace inbox (PDF, JPEG, PNG, GIF, CSV, XLS, XLSX, XML, JSON or TXT). Minimale rol: USER · Zwaar

Brandstof

query_fuelings
Query fuel transactions with filters (date range, vehicle, plate, card, min quantity). Minimale rol: VIEWER
get_fuel_consumption
The Consumption page numbers from the CAN counter: L/100 km while driving, litres, distance, idle share, and standing litres split into idle and CAN PTO (crane, tipper, pump engaged) per driver (default) or per vehicle,… Minimale rol: VIEWER
get_fuel_ledger
Read one vehicle's fuel ledger over a window: every fill seen at the tank or on a card, with level from→to, litres into the tank, card litres, the delta (tank − card), station, driver and flags, plus the tank capacity u… Minimale rol: VIEWER
query_fuel_cases
List fuel-integrity cases (open, held or resolved) for the workspace or one vehicle, with their unexplained litres and value at risk. Minimale rol: VIEWER
get_fuel_readiness
Whether Fuel Watch can judge this fleet: per vehicle which inputs are there (level sensor, CAN fuel counter, fuel cards, tank size) over the last days (default 30), and what is missing. Minimale rol: VIEWER

Telemetrie en plaatsen

fleet_now
What every tracked vehicle is doing right now: DRIVING, STOPPED (ignition on), PARKED, NOT_DRIVEN (tracker reporting, not moved for the Fleet Health idle days, 7 by default) or NO_SIGNAL (tracker silent — whether it mov… Minimale rol: VIEWER
locate_vehicle
Where was a vehicle at a moment: the telemetry position nearest to at (within toleranceMinutes, default 120), with speed, ignition and how many minutes the fix is from the moment. Minimale rol: VIEWER
vehicle_whereabouts
Track a vehicle around a moment or over a window, per tracker: sample counts, the largest gap, coverage, and the fix nearest to the moment (or to a reference point refLat/refLng, with its distance). Minimale rol: VIEWER
vehicle_trips
What a vehicle drove over a window (at most 8 days): its trips oldest first (start/end time, km, top speed, the place or town at both ends, driver, trailer), the stops between them (idle, parked, no-signal time) and the… Minimale rol: VIEWER
list_vehicle_positions
Latest known position per vehicle as delivered by its primary tracker: lat/lng, speed, heading, ignition, battery, odometer (real CAN or GPS estimate), recorded time, hours since, and which provider/device reported it. Minimale rol: VIEWER
list_trackers
Trackers from the providers (Ruptela, Transics, PAJ, …): IMEI, provider device id and label, linked vehicle, link status, primary flag, last seen (newest message of any kind: online without a position is possible), onli… Minimale rol: VIEWER
list_tracker_events
Events the trackers raised (POWER_LOST, DISCONNECTED, SOS, GEOFENCE_ENTER/EXIT, provider alarms, …) with severity, message, location and time. Minimale rol: VIEWER
list_telemetry_signals
Which telemetry signals vehicles actually emit, and which vehicles carry one: signal searches the names ("fuel", "cap", "pto") and each match lists the plates that emit it. Minimale rol: VIEWER
list_signal_mappings
The workspace's signal mappings: per connection, which field of its frames a signal reads (ref meta:<path>, column:<name> or derived:<name>), its kind, unit, transform and whether it is on. Minimale rol: VIEWER
check_signal_mappings
Check what a connection's signal mappings actually read: the newest frames of its trackers (up to 25 trackers, 200 frames each, within hours, default 24) go through the workspace's mappings, and per signal you get how m… Minimale rol: VIEWER
get_telemetry_timeseries
Fetch the downsampled raw (and optionally derived) time-series for ONE vehicle over a window, so you can inspect the data — read the fuel curve, find the exact drop, pick a threshold, or benchmark against fleet norms. Minimale rol: VIEWER
query_telemetry_data
Filter, sort, group and limit the rows of a telemetry dataset: connections (one row per connection × sync flow); trackers (devices: provider, imei, plate, status, lastPositionAt, txdccImei…); transics_push (per vehicle:… Minimale rol: VIEWER · Zwaar
run_telemetry_report
Telemetry behaviour OVER TIME per vehicle ("did truck X move between 02:00 and 05:00 last night?", "who idled over 30 min?"): one row per vehicle per local day (perDay) or per vehicle (whole). Minimale rol: VIEWER · Zwaar
run_telemetry_analysis
Run a composable detector analysis across one or many vehicles. Minimale rol: VIEWER · Zwaar
search_places
Find places (geofences) in this workspace — depots, customer sites, fuel stations, workshops, parkings. Minimale rol: VIEWER
place_visits
Visits of vehicles to known places (depots, customers, fuel stations): entered/left times, newest first. Minimale rol: VIEWER
query_planning
The stored planning of every source (Transics, Konvoi Orders): stops per truck with planned day/slot, status, activity, place, free-text comment, odometer on arrival, arrival/leaving time, driver, scanned-document count… Minimale rol: VIEWER
list_cameras
The workspace's dashcams: each camera's linkId, the vehicle it is on, online or not and when it was last heard, its channels (1 = Road, 2 = Cabin), how far back its SD card goes (footage older than that is gone), the fo… Minimale rol: VIEWER
get_camera_footage
Footage Konvoi holds of the workspace's dashcams (photos, stills, clips), newest first, with who or what asked for each (a person, a rule, Dispatch, or the camera itself on an alarm), the vehicle's speed, position and i… Minimale rol: VIEWER
review_camera_footage
LOOK at footage Konvoi holds: you are shown the images. Minimale rol: VIEWER · Zwaar
request_camera_footage
Ask a vehicle's dashcam (Cameras module) for footage: photo = a photo now; clip = at most 10 minutes, around at or from/to; still = one frame at at. Minimale rol: USER · Zwaar

Rapporten en borden

list_reports
List the saved smart reports: id, name, description, number of sections, number of runs and the latest run. Minimale rol: VIEWER
run_report
Run a saved smart report now (list_reports gives the id) and return its sections with their rows (max 1000 per section). Minimale rol: USER · Zwaar
query_report_rows
Query enriched report rows (e.g. night-allowance claims from the nightly Nachtrapport) across runs, by the day the claim is about. Minimale rol: VIEWER
list_boards
List the fleet boards (wall reports): the built-in ones and the ones made from a sentence, with their key, title and description. Minimale rol: VIEWER
read_board
Read a fleet board's current numbers (list_boards gives the key), over its saved period or the last days. Minimale rol: VIEWER
draft_board
Draft a fleet board from a sentence ("fuel per driver for the Antwerp trucks, this month"). Minimale rol: USER · Zwaar

Dispatch

list_pending_proposals
Changes waiting for a person: proposals from chat or an AI client, and standing-order steps held for approval, newest first. Minimale rol: VIEWER
list_standing_orders
The standing orders Dispatch runs for this workspace: name, trigger, whether it is on, its autonomy rung (how much it may do without a person) and how often it ran. Minimale rol: VIEWER

Wijzigingen

propose_fine_assignment
Propose assigning a fine to the driver on record (matched by plate and violation date). Minimale rol: USER
propose_place
Propose saving a place (depot, customer, fuel station) with its geofence. Minimale rol: USER
propose_board
Propose saving a fleet board: a draft_board spec, or a sentence to draft and save. Minimale rol: USER
propose_vehicle_changes
Propose creating or updating vehicles in bulk (from a list or a file): their details, category, body type (tractor, rigid …), vehicle model and settings such as the smart fuel cap. Minimale rol: USER · Beheerder keurt goed
propose_vehicle_models
Propose creating, changing or deleting vehicle models (name, body type, axle layout its vehicles inherit) and linking or unlinking their vehicles; list_vehicle_models suggest: true proposes them. Minimale rol: ADMIN · Beheerder keurt goed
propose_fixed_costs
Propose vehicles' fixed costs in bulk (lease, insurance, road tax, depreciation, driver: a monthly amount from a day until a day), from a list or a file. Minimale rol: USER · Beheerder keurt goed
propose_vehicle_merge
Propose merging duplicate vehicle records (same truck from a telematics sync and a registration import, or a plate/VIN typo): everything on the duplicate moves to the kept vehicle and the duplicate is removed. Minimale rol: ADMIN · Beheerder keurt goed
propose_vehicle_split
Propose splitting a vehicle record that holds two real trucks back into two — the undo of a wrong merge, or two trucks' trackers on one record. Minimale rol: ADMIN · Beheerder keurt goed
propose_document_request
Propose e-mailing a contact to ask for a missing document. Minimale rol: ADMIN · Beheerder keurt goed
propose_bulk_change
Propose one change to one or many invoices, fuelings, documents, emails or fines, selected as find_records does (a cut or ids; at most 500, fueling link_place 2000). Minimale rol: ADMIN · Beheerder keurt goed
propose_undo_change
Propose undoing an approved bulk change: every row it changed goes back to its value before, unless the row was changed again since. Minimale rol: ADMIN · Beheerder keurt goed
propose_signal_mapping
Propose where one connection, or one tracker of it, reads a signal (ref meta:<path>, column:<name> or derived:<name>; left out, the field matching another connection's reading), or removing its own mapping. Minimale rol: ADMIN · Beheerder keurt goed
propose_driver_message
Propose a message to a driver's phone (push + the Konvoi app's inbox), optionally with a link to an app screen or an https address. Minimale rol: USER · Beheerder keurt goed
propose_close_fuel_case
Propose closing a fuel case with a resolution and a note. Minimale rol: USER · Beheerder keurt goed
propose_maintenance_completion
Propose marking a maintenance plan done on a vehicle on a date (itemId from list_maintenance_due, or vehicleId + planCode). Minimale rol: USER
propose_maintenance_plan
Propose creating a maintenance plan, or changing the one with that code (only what is given changes). Minimale rol: ADMIN · Beheerder keurt goed
propose_add_trailers
Propose adding trailers Transics reports on trucks, but Konvoi does not know, as TRAILER vehicles. Minimale rol: ADMIN · Beheerder keurt goed
propose_standing_order
Propose a standing order: a rule Dispatch runs on a trigger (it starts at proposal-only autonomy). Minimale rol: ADMIN · Beheerder keurt goed
propose_scheduled_report
Propose emailing a report on a schedule: the read calls you used (with rolling dates like "today-7d"), recipients, a cron in a timezone, and xlsx/csv/pdf. Minimale rol: USER · Beheerder keurt goed
propose_review_check
A second opinion on a pending document review. Minimale rol: USER

Wijzigingen zijn voorstellen

  • Een propose_*-tool wijzigt zelf niets. Hij maakt een voorstel in Konvoi Dispatch en geeft de link terug.
  • Gewone voorstellen: goedkeuren of afwijzen in de client als die het je kan vragen, anders in Konvoi Dispatch.
  • Voorstellen met Beheerder keurt goed: een werkruimtebeheerder keurt ze goed in Konvoi Dispatch.
  • Een goedgekeurde wijziging loopt als de persoon die goedkeurt, met diens rol. Elke oproep en beslissing wordt gelogd.
  • Voorstellen vraagt de toegang Wijzigingen voorstellen, gekozen bij het koppelen.

Prompts

Handle this week’s fines
Match each open fine to a driver, propose assignments, flag contest candidates.
fine-triage
Sweep fuel for anomalies
Impossible fills vs tank size, off-hours fills at the depot, duplicate charges.
fuel-anomaly
What expires in the next 30 days
Technical inspections, insurance, registrations and licenses coming due.
expiry-sweep
Weekly fleet review
Utilization, idle vehicles, telemetry highlights — one digest.
weekly-telemetry
Why did costs rise?
Workshop and parts invoices, the last 12 months against the 12 before: price, volume and mix.
why-costs-rose

Limieten

Per koppeling120 oproepen per minuut, 5 tegelijk
Zware tools10 oproepen per minuut per koppeling
Per persoon300 oproepen per minuut over alle koppelingen
Grootte van een resultaat100 KB; langere lijsten worden ingekort en het resultaat zegt wat er weg is
Boven een limietRATE_LIMITED, met het aantal seconden om te wachten

Beveiliging

  • Tokens zijn willekeurige tekenreeksen die alleen als hash worden bewaard. Toegangstokens gelden 1 uur; vernieuwingstokens wisselen bij elk gebruik en vervallen na 30 dagen ongebruikt; persoonlijke tokens gelden 30, 90 of 365 dagen.
  • Al je koppelingen worden meteen ingetrokken als je je wachtwoord wijzigt, overal afmeldt of tweestapsverificatie uitzet.
  • Een oud vernieuwingstoken opnieuw aanbieden trekt die koppeling in.
  • Koppelingen volgen de sessievergrendeling niet. Een koppeling toestaan vraagt een volledig ontgrendelde sessie.
  • Tekst van buiten Konvoi, zoals gescande documenten en e-mails, is gemarkeerd met {"untrusted": true}. Clients krijgen de opdracht die als gegevens te behandelen, nooit als instructies.
  • Gegevens waarnaar je vraagt, gaan naar de client die je gebruikt.

Problemen oplossen

WORKSPACE_REQUIREDDe koppeling bereikt meerdere werkruimtes. Geef workspace mee, een slug uit list_workspaces.
WORKSPACE_NOT_FOUNDDe slug klopt niet of de werkruimte zit niet in deze koppeling. Kijk in list_workspaces.
DISPATCH_OFFDispatch of AI-clients staat uit voor die werkruimte. Vraag het een werkruimtebeheerder.
ROLE_REQUIREDJe rol in die werkruimte ligt onder de minimale rol van de tool.
SCOPE_REQUIREDDe koppeling heeft geen Wijzigingen voorstellen. Koppel opnieuw en vink het aan.
RATE_LIMITEDWacht het aantal seconden uit de melding.
INVALID_ARGUMENTSDe argumenten passen niet bij het invoerschema van de tool.
401Het token is verlopen of ingetrokken. Meld je opnieuw aan vanuit de client.

Protocolreferentie

EndpointPOST https://konvoi.ai/api/mcp
TransportStreamable HTTP, stateless: alleen POST, geen Mcp-Session-Id; GET en DELETE geven 405
Metadata autorisatieserver/.well-known/oauth-authorization-server
Metadata beschermde bron/.well-known/oauth-protected-resource
OAuth-endpointsauthorize /oauth/authorize · token /api/oauth/token · register /api/oauth/register · revoke /api/oauth/revoke
ClientregistratieClient ID Metadata Documents (een https-client_id), of Dynamic Client Registration (RFC 7591), 10 per uur per IP
PKCES256, verplicht
Resource-indicatorresource=https://konvoi.ai/api/mcp (RFC 8707); tokens zijn eraan gebonden
Redirect-URI’shttps, exacte overeenkomst; http alleen op 127.0.0.1 of localhost, elke poort
Scopesfleet:read (altijd), fleet:propose (propose_*-tools)
Levensduur tokenscode 60 s · toegang 1 u · vernieuwen 30 dagen ongebruikt, wisselend · persoonlijk 30/90/365 dagen
Geen of fout token401 met WWW-Authenticate: Bearer resource_metadata=…
ToolfoutenEen toolresultaat met isError: true en structuredContent.error = { code, message }