Skip to content

Integration · Field service

Connect Claude & ChatGPT to Samsara

Ask your AI where your vehicles are, which drivers are close to their hours-of-service limits, or what safety events happened this week. It reads vehicles, drivers, trips, routes, inspection reports and vehicle stats from Samsara. It can also create and update routes and addresses, update drivers and vehicles, and message drivers in the Samsara Driver app.

Connect Samsara free

Free plan, no credit card. Takes about a minute.

Try asking

  • “Where is truck 14 right now?”

    The AI finds the vehicle and reads its current GPS location.

  • “Which drivers have less than two hours of drive time left?”

    It reads the drivers' current hours-of-service clocks and lists those with little drive time remaining.

  • “Show me harsh braking and speeding events from yesterday.”

    It lists yesterday's safety events with vehicle and time.

What your AI can do

Vehicles and trips

Current locations and location history, trips, vehicle stats such as fuel level and odometer, trailers and driver assignments.

Drivers and hours of service

Drivers, HOS clocks, daily logs and violations, inspection reports, safety events and driver messages.

Routes and addresses

List, create, update and delete dispatch routes, and list or create saved addresses with geofences.

  • “Were there any inspections with safety issues this week?”

    It lists this week's driver vehicle inspection reports (DVIRs), filtered by safety status.

  • “Create a route called Aarhus deliveries with stops at Harbor Yard and Nordic Foods, assigned to driver Lars.”

    It finds the driver and the saved addresses and creates the dispatch route with the stops.

  • “Message Lars and Mette that the depot gate closes at 18:00.”

    It finds the drivers and sends the text to the Samsara Driver app. The message is delivered immediately.

29 tools for Samsara

These tools are switched on when you connect. You can switch any of them off, or require your approval before it runs.

  • create_addressChanges dataSave a new address with a `name`, `formatted_address` and `geofence` (circle or polygon), plus optional notes and tags.
  • create_routeChanges dataCreate a dispatch route with a `name` and `stops`, optionally assigned to a `driver_id` or `vehicle_id`.
  • delete_routeDeletesDelete a route by `route_id`. This cannot be undone.
  • get_addressGet one saved address by `address_id`, with its geofence and contacts.
  • get_driverGet one driver by `driver_id`, with contact details, license and settings.
  • get_hos_clocksGet drivers' current hours-of-service clocks (drive, shift and cycle time remaining), optionally for specific `driver_ids`.
  • get_organizationGet the connected Samsara organization's details. Use to confirm which fleet account you are working in.
  • get_routeGet one route by `route_id`, with its stops, driver, vehicle and progress.
  • get_trailerGet one trailer by `trailer_id`.
  • get_vehicleGet one vehicle by `vehicle_id`, with name, VIN, license plate, tags and gateway.
  • get_vehicle_location_historyGet vehicle GPS locations between `start_time` and `end_time`, optionally for specific `vehicle_ids`.
  • get_vehicle_locationsGet the current (or as of `time`) GPS location of vehicles, optionally for specific `vehicle_ids` or tags.
  • get_vehicle_statsGet the latest vehicle stats of the given `types` (e.g. fuel level, odometer, engine state), optionally for specific `vehicle_ids`.
  • list_addressesList saved addresses (customer sites, yards, geofences), optionally filtered by tag.
  • list_driver_messagesList recent messages exchanged with drivers; `end_ms` and `duration_ms` set the time window in milliseconds.
  • list_driver_vehicle_assignmentsList which drivers were assigned to which vehicles; `filter_by` chooses whether to look up by drivers or vehicles, with an optional time range.
  • list_driversList drivers, optionally filtered by tag, activation status or updated/created time. Use to find a driver's ID.
  • list_dvirsList driver vehicle inspection reports (DVIRs) from `start_time` (optional `end_time`), optionally by `safety_status`.
  • list_hos_daily_logsList drivers' hours-of-service daily logs between `start_date` and `end_date`, optionally for specific `driver_ids`.
  • list_hos_violationsList hours-of-service violations between `start_time` and `end_time`, optionally for specific `driver_ids` or violation `types`.
  • list_routesList dispatch routes between `start_time` and `end_time`, optionally filtered by tag.
  • list_safety_eventsList safety events (harsh braking, speeding, collisions and more) between `start_time` and `end_time`, optionally for specific `vehicle_ids`.
  • list_trailersList trailers in the fleet, optionally filtered by tag.
  • list_tripsList trips for the vehicles or assets in `ids` from `start_time` (optional `end_time`), with start and end locations and distance.
  • list_vehiclesList vehicles in the fleet, optionally filtered by tag or updated/created time. Use to find a vehicle's ID.
  • send_driver_messageChanges dataSend a text message to one or more drivers (`driver_ids`) in the Samsara Driver app. The message is delivered immediately.
  • update_driverChanges dataUpdate a driver by `driver_id`, e.g. `name`, `phone`, `email`, `notes`, `tag_ids` or license details. Only the fields you pass change.
  • update_routeChanges dataUpdate a route by `route_id`: name, stops, driver, vehicle or notes. Only the fields you pass change.
  • update_vehicleChanges dataUpdate a vehicle by `vehicle_id`, e.g. `name`, `license_plate`, `notes`, `tag_ids` or odometer. Only the fields you pass change.

Set up in three steps

  1. 1

    Pick the app

    Create a free PipMCP account and choose Samsara from the app list.

  2. 2

    Paste your key

    Paste a Samsara API token. In the Samsara Dashboard click the gear icon (Settings), scroll down to API Tokens and click Add an API Token. Choose the scopes you need and copy the token, because it is shown only once.

  3. 3

    Add the link to your AI

    You get a personal MCP link. Add it to Claude, ChatGPT or Cursor:

    1. Click your name, then Settings › Connectors › Add custom connector.
    2. Paste your link as the Remote MCP server URL.
    3. Switch it on from the + menu in a chat.

Questions

What can the AI do in Samsara?

The AI can read your organization, vehicles, locations, trips, vehicle stats, trailers, drivers, HOS clocks, logs and violations, inspection reports, safety events, routes, addresses and driver messages. It can create addresses and routes, update routes, drivers and vehicles, delete routes and send messages to drivers.

Does the AI see my Samsara API token?

No. Your Samsara API token is encrypted at rest and never shown to the AI. After you save it, it is not shown again, not even to you. The AI only sees the results of the tools it calls.

Can I control what the AI is allowed to do?

Yes. You choose which tools are switched on, so you can start read-only. Messages to drivers are delivered immediately and deleting a route cannot be undone, and both can require your approval before they run. Every tool call is logged.

Does it work with ChatGPT?

Yes. In ChatGPT go to Settings › Apps & Connectors › Advanced and turn on Developer mode, then add your PipMCP link. Developer mode needs a paid ChatGPT plan: Plus, Pro, Business or Enterprise. The same link also works in Claude (Settings › Connectors › Add custom connector), Cursor and other MCP clients.

What does it cost?

PipMCP has a free plan with no credit card required. Paid plans bill per completed task. You also need your own Samsara account.

Which scopes should my Samsara API token have?

Only the ones the AI needs. You choose the scopes when you create the token in the Samsara Dashboard, for example read access only if you just want lookups. Samsara then refuses anything outside those scopes, on top of the tools you switch on in PipMCP.

Let your AI work in Samsara today.

Start free. Your key stays encrypted, and you decide what the AI may do.

Connect Samsara free

PipMCP is not affiliated with Samsara. Product names are trademarks of their owners.