traccar-mcp

v1.0.0
io.github.mrfentmen/traccar-mcp Checked 3 days ago Published 27 days ago

MCP server for Traccar: devices, positions, g MCP: real tools for real work.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_server_info

Read Traccar server identity and version. Use it to check the base URL and credentials work.

get_server_statistics

Read live server statistics: connected devices, active sessions and message counters.

get_session

Show the Traccar user the configured credentials belong to, including their role and limits.

list_devices

List every GPS device the account can see, with status and last update time.

create_device

Register a new device. Body is a Traccar device object, e.g. { "name": "Van", "uniqueId": "123456789012345" }.

ParameterTypeDescription
device *objectTraccar device JSON (name and uniqueId are required by the server)

update_device

Update an existing device. Only the fields present in the body are changed by Traccar.

ParameterTypeDescription
device *objectFields to change, as Traccar device JSON
id *integerDevice id

delete_device

DESTRUCTIVE: permanently delete a device and its stored positions.

ParameterTypeDescription
id *integerDevice id

list_positions

List recent GPS positions, newest first. Filter by device and an ISO 8601 time range.

ParameterTypeDescription
deviceIdintegerOnly this device
fromstringStart of the range, ISO 8601 e.g. 2025-01-31T00:00:00Z
tostringEnd of the range, ISO 8601

list_groups

List device groups, used to share devices and reports between users.

create_group

Create a device group. Body is Traccar group JSON, e.g. { "name": "Delivery" }.

ParameterTypeDescription
group *objectTraccar group JSON

update_group

Rename or re-parent a group.

ParameterTypeDescription
group *objectFields to change, as Traccar group JSON
id *integerGroup id

delete_group

DESTRUCTIVE: delete a device group. Devices inside it are not deleted.

ParameterTypeDescription
id *integerGroup id

list_geofences

List geofences (drawn areas) used for enter/exit alerts.

create_geofence

Create a geofence. Provide a WKT area, e.g. POLYGON ((lon lat, lon lat, ...)) in Traccar geofence JSON.

ParameterTypeDescription
geofence *objectTraccar geofence JSON (name and area)

update_geofence

Change a geofence's name, description or area.

ParameterTypeDescription
geofence *objectFields to change, as Traccar geofence JSON
id *integerGeofence id

delete_geofence

DESTRUCTIVE: delete a geofence. Past events that referenced it stay in history.

ParameterTypeDescription
id *integerGeofence id

list_drivers

List drivers, each with the unique id used to identify them on a device.

create_driver

Create a driver. Body is Traccar driver JSON, e.g. { "name": "Sam", "uniqueId": "DRV-1" }.

ParameterTypeDescription
driver *objectTraccar driver JSON

update_driver

Update a driver's name or unique id.

ParameterTypeDescription
driver *objectFields to change, as Traccar driver JSON
id *integerDriver id

delete_driver

DESTRUCTIVE: delete a driver.

ParameterTypeDescription
id *integerDriver id

list_maintenance

List maintenance schedules (by odometer, hours or date).

create_maintenance

Create a maintenance schedule. Body is Traccar maintenance JSON, e.g. { "name": "Oil change", "type": "totalDistance", "start": "2025-01-01T00:00:00Z", "period": 10000 }.

ParameterTypeDescription
maintenance *objectTraccar maintenance JSON

update_maintenance

Update a maintenance schedule.

ParameterTypeDescription
id *integerMaintenance id
maintenance *objectFields to change, as Traccar maintenance JSON

delete_maintenance

DESTRUCTIVE: delete a maintenance schedule.

ParameterTypeDescription
id *integerMaintenance id

get_report_summary

Totals per device for a time window: distance, average and max speed, engine hours, fuel used.

ParameterTypeDescription
from *stringStart of the window, ISO 8601
to *stringEnd of the window, ISO 8601
deviceIdintegerOnly this device
groupIdintegerEvery device in this group

get_report_trips

List trips (movement segments) in a time window, with distance, duration and speeds.

ParameterTypeDescription
from *stringStart of the window, ISO 8601
to *stringEnd of the window, ISO 8601
deviceIdintegerOnly this device
groupIdintegerEvery device in this group

get_report_stops

List stops in a time window, with address and how long the vehicle stayed.

ParameterTypeDescription
from *stringStart of the window, ISO 8601
to *stringEnd of the window, ISO 8601
deviceIdintegerOnly this device
groupIdintegerEvery device in this group

get_report_events

List events (alarms, geofence crossings, device status changes) in a time window.

ParameterTypeDescription
from *stringStart of the window, ISO 8601
to *stringEnd of the window, ISO 8601
deviceIdintegerOnly this device
groupIdintegerEvery device in this group

get_report_route

Return the full position trace for a time window, for plotting or distance checks.

ParameterTypeDescription
from *stringStart of the window, ISO 8601
to *stringEnd of the window, ISO 8601
deviceIdintegerOnly this device
groupIdintegerEvery device in this group

list_command_types

List the remote commands a device supports, e.g. engineStop or positionPeriodic.

ParameterTypeDescription
deviceIdintegerLimit to the commands this device supports

send_command

Send a remote command to a device. Body is Traccar command JSON, e.g. { "deviceId": 3, "type": "engineStop" }. Some commands cost SMS credit.

ParameterTypeDescription
command *objectTraccar command JSON with deviceId and type

list_users

List user accounts on the server with their role and limits.

create_user

Create a user account. Body is Traccar user JSON, e.g. { "name": "Sam", "email": "sam@example.com", "password": "..." }.

ParameterTypeDescription
user *objectTraccar user JSON

update_user

Update a user account: name, email, limits, expiry or administrator flag.

ParameterTypeDescription
id *integerUser id
user *objectFields to change, as Traccar user JSON

delete_user

DESTRUCTIVE: delete a user account. Their devices are not removed.

ParameterTypeDescription
id *integerUser id