traccar-mcp
v1.0.0MCP 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" }.
| Parameter | Type | Description |
|---|---|---|
device * | object | Traccar 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.
| Parameter | Type | Description |
|---|---|---|
device * | object | Fields to change, as Traccar device JSON |
id * | integer | Device id |
delete_device
DESTRUCTIVE: permanently delete a device and its stored positions.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Device id |
list_positions
List recent GPS positions, newest first. Filter by device and an ISO 8601 time range.
| Parameter | Type | Description |
|---|---|---|
deviceId | integer | Only this device |
from | string | Start of the range, ISO 8601 e.g. 2025-01-31T00:00:00Z |
to | string | End 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" }.
| Parameter | Type | Description |
|---|---|---|
group * | object | Traccar group JSON |
update_group
Rename or re-parent a group.
| Parameter | Type | Description |
|---|---|---|
group * | object | Fields to change, as Traccar group JSON |
id * | integer | Group id |
delete_group
DESTRUCTIVE: delete a device group. Devices inside it are not deleted.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Group 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.
| Parameter | Type | Description |
|---|---|---|
geofence * | object | Traccar geofence JSON (name and area) |
update_geofence
Change a geofence's name, description or area.
| Parameter | Type | Description |
|---|---|---|
geofence * | object | Fields to change, as Traccar geofence JSON |
id * | integer | Geofence id |
delete_geofence
DESTRUCTIVE: delete a geofence. Past events that referenced it stay in history.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Geofence 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" }.
| Parameter | Type | Description |
|---|---|---|
driver * | object | Traccar driver JSON |
update_driver
Update a driver's name or unique id.
| Parameter | Type | Description |
|---|---|---|
driver * | object | Fields to change, as Traccar driver JSON |
id * | integer | Driver id |
delete_driver
DESTRUCTIVE: delete a driver.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Driver 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 }.
| Parameter | Type | Description |
|---|---|---|
maintenance * | object | Traccar maintenance JSON |
update_maintenance
Update a maintenance schedule.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Maintenance id |
maintenance * | object | Fields to change, as Traccar maintenance JSON |
delete_maintenance
DESTRUCTIVE: delete a maintenance schedule.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Maintenance id |
get_report_summary
Totals per device for a time window: distance, average and max speed, engine hours, fuel used.
| Parameter | Type | Description |
|---|---|---|
from * | string | Start of the window, ISO 8601 |
to * | string | End of the window, ISO 8601 |
deviceId | integer | Only this device |
groupId | integer | Every device in this group |
get_report_trips
List trips (movement segments) in a time window, with distance, duration and speeds.
| Parameter | Type | Description |
|---|---|---|
from * | string | Start of the window, ISO 8601 |
to * | string | End of the window, ISO 8601 |
deviceId | integer | Only this device |
groupId | integer | Every device in this group |
get_report_stops
List stops in a time window, with address and how long the vehicle stayed.
| Parameter | Type | Description |
|---|---|---|
from * | string | Start of the window, ISO 8601 |
to * | string | End of the window, ISO 8601 |
deviceId | integer | Only this device |
groupId | integer | Every device in this group |
get_report_events
List events (alarms, geofence crossings, device status changes) in a time window.
| Parameter | Type | Description |
|---|---|---|
from * | string | Start of the window, ISO 8601 |
to * | string | End of the window, ISO 8601 |
deviceId | integer | Only this device |
groupId | integer | Every device in this group |
get_report_route
Return the full position trace for a time window, for plotting or distance checks.
| Parameter | Type | Description |
|---|---|---|
from * | string | Start of the window, ISO 8601 |
to * | string | End of the window, ISO 8601 |
deviceId | integer | Only this device |
groupId | integer | Every device in this group |
list_command_types
List the remote commands a device supports, e.g. engineStop or positionPeriodic.
| Parameter | Type | Description |
|---|---|---|
deviceId | integer | Limit 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.
| Parameter | Type | Description |
|---|---|---|
command * | object | Traccar 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": "..." }.
| Parameter | Type | Description |
|---|---|---|
user * | object | Traccar user JSON |
update_user
Update a user account: name, email, limits, expiry or administrator flag.
| Parameter | Type | Description |
|---|---|---|
id * | integer | User id |
user * | object | Fields to change, as Traccar user JSON |
delete_user
DESTRUCTIVE: delete a user account. Their devices are not removed.
| Parameter | Type | Description |
|---|---|---|
id * | integer | User id |