Skip to main content
Glama

Witzense MCP

MCP-Server für die Witzense/JIMI-Geräteverfolgungs-Open-API, beschrieben in API DOCUMENT.pdf.

Die extrahierte Markdown-Referenz ist API DOCUMENT.md. Sie bewahrt alle 126 PDF-Seiten als Seitenabschnitte und ist einfacher zu durchsuchen und programmatisch zu verarbeiten. Das PDF bleibt die ursprüngliche Quelle, und nur Bildinhalte sind nicht in die Markdown-Extraktion eingebettet.

Konfiguration

Kopieren Sie .env.example in eine lokale Umgebungskonfiguration und legen Sie fest:

  • WITZENSE_BASE_URL: Standardmäßig http://open.10000track.com/route/rest.

  • WITZENSE_APP_KEY und WITZENSE_APP_SECRET.

  • WITZENSE_ACCOUNT und WITZENSE_PASSWORD_MD5 — das vorhandene 32-stellige MD5 in Kleinbuchstaben des Kontopassworts; geben Sie keinen Klartext an und hashen Sie diesen Wert nicht erneut.

  • WITZENSE_EXPIRES_IN: Token-Lebensdauer-Anfrage, von 60 bis 7200 Sekunden.

  • WITZENSE_REQUEST_ENCODING: standardmäßig form, oder json, falls der zugewiesene Knoten es erfordert.

Übertragen Sie niemals echte Anmeldedaten und legen Sie sie nicht in Quelldateien ab.

Related MCP server: SORACOM Data Reader MCP

Ausführen

npm install
npm run build
npm start

Der Server kommuniziert über MCP stdio. Verfügbare Werkzeuge umfassen:

  • call_witzense_method

  • list_witzense_child_accounts

  • list_witzense_devices

  • get_witzense_device

  • get_witzense_device_locations

  • list_witzense_account_locations

  • get_witzense_track

  • get_witzense_mileage

  • get_witzense_shared_location_url

  • list_witzense_alarms

  • get_witzense_parking_report

  • get_witzense_trips_report

  • get_witzense_fence_duration_report

  • get_witzense_obd_data

  • get_witzense_obd_faults

  • get_witzense_rfid_reports

  • get_witzense_tag_location

  • list_witzense_geofences

  • get_witzense_geofence

  • list_witzense_device_groups

  • get_witzense_media_urls

  • get_witzense_live_url

  • get_witzense_rtmp_url

Die dedizierten Werkzeuge sind leseorientiert und verwenden den gemeinsamen signierten Client.

Für Command-Cloud-Integrationen wird jedes Witzense-Gerät/IMEI als entsprechendes Command-Cloud-Asset/Fahrzeug behandelt. Siehe specs/commandcloud-mapping.md.

API-Verhalten

Anfragen verwenden POST /route/rest mit gemeinsamen Parametern, einem Zugriffstoken und einer UTF-8-MD5-Signatur in Großbuchstaben. Tokens werden über jimi.oauth.token.get erworben, über jimi.oauth.token.refresh erneuert und im Speicher zwischengespeichert.

Das PDF listet TS-, TSP-HK-, TSP-EU- und TSP-US-Knoten auf. Konfigurieren Sie den zugewiesenen Knoten über WITZENSE_BASE_URL; ändern Sie den Tool-Code nicht, wenn Sie zwischen Knoten wechseln.

Tests

npm test

Serverbereitstellung

Der Repository-Workflow erstellt und testet Pull-Requests und stellt dann /root/WITZENSE-MCP nach einem Push auf main bereit. Konfigurieren Sie das GitHub-Actions-Geheimnis DEPLOY_SSH_KEY mit dem Bereitstellungsschlüssel, der von root@2.25.109.42 akzeptiert wird.

Halten Sie die Witzense-API-Variablen in der Laufzeitumgebung des Servers oder in der MCP-Host-Konfiguration. Sie sind absichtlich nicht Teil des Bereitstellungs-Workflows oder des Repositorys.

Siehe DEPLOYMENT.md für Bootstrap- und Smoke-Test-Befehle des ersten Servers.

Available Tools

23 tools
call_witzense_methodA

Call a Witzense API method with configured credentials and signing. Use this for documented methods not yet exposed as dedicated tools.

Inputs: method (required), params.

get_witzense_deviceC

Get detail information for one Witzense device.

Inputs: imei (required).

get_witzense_device_locationsB

Get the latest location for one or more Witzense devices.

Inputs: imeis, map_type.

get_witzense_fence_duration_reportC

Get device fence entry and exit duration records.

Inputs: end_time (required), start_time (required), imeis, account, +2 more.

get_witzense_geofenceC

Get details for one platform geofence.

Inputs: fence_id (required).

get_witzense_live_urlC

Get a device live or historical streaming page URL.

Inputs: imei (required), type, voice.

get_witzense_media_urlsC

Get camera photo or video URLs for a device.

Inputs: imei (required), camera (required), media_type (required), token, +4 more.

get_witzense_mileageC

Get mileage trip data for one or more devices.

Inputs: end_time (required), begin_time (required), imeis, page_size, +1 more.

get_witzense_obd_dataC

Get OBD/CAN telemetry reported by devices.

Inputs: end_time (required), start_time (required), imeis, account, +2 more.

get_witzense_obd_faultsC

Get OBD fault codes reported by devices.

Inputs: end_time (required), start_time (required), imeis, account, +2 more.

get_witzense_parking_reportC

Get parking or idling records for devices.

Inputs: acc_type (required), end_time (required), start_time (required), imeis, +3 more.

get_witzense_rfid_reportsC

Get RFID reporting records for an account and time range.

Inputs: account (required), end_time (required), begin_time (required), imeis, +3 more.

get_witzense_rtmp_urlC

Get an RTMP streaming URL for a device.

Inputs: imei (required).

get_witzense_shared_location_urlB

Get a shareable map URL for a Witzense device.

Inputs: imei (required).

get_witzense_tag_locationC

Get the latest location reported by TAG devices.

Inputs: imeis.

get_witzense_trackC

Get track points for one device within the documented time range.

Inputs: imei (required), end_time (required), begin_time (required), map_type.

get_witzense_trips_reportC

Get daily or detailed trip report data.

Inputs: type (required), end_time (required), start_time (required), imeis, +3 more.

list_witzense_account_locationsA

Get the latest location for all devices under an account.

Inputs: target, map_type.

list_witzense_alarmsC

List alarms for one or more devices within the supported time range.

Inputs: imeis, page_no, end_time, page_size, +2 more.

list_witzense_child_accountsB

List sub-accounts under a Witzense account.

Inputs: target.

list_witzense_device_groupsB

List device groups belonging to an account.

Inputs: account (required).

list_witzense_devicesA

List devices belonging to a Witzense account.

Inputs: target.

list_witzense_geofencesB

List platform geofences belonging to an account.

Inputs: account (required), page_no, page_size.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3/5.0

    Scored across 23 tools

    Disambiguation4/5

    Most tools target clearly distinct resources or actions, such as devices, geofences, reports, and streaming URLs. A few location/trip-related tools (e.g., get_witzense_mileage vs get_witzense_trips_report, or get_witzense_live_url vs get_witzense_rtmp_url) could cause minor selection confusion, but the descriptions are generally sufficient.

    Naming Consistency5/5

    All tools follow a consistent snake_case convention with a clear verb prefix and the witzense domain marker, such as list_witzense_*, get_witzense_*, and call_witzense_method. This creates a predictable pattern across the entire tool set.

    Tool Count3/5

    At 23 tools, the set is on the heavy side and falls into the 16-25 range that feels bulky for an agent to navigate. The tools do cover a broad telematics domain, but the count is somewhat high rather than tightly scoped.

    Completeness4/5

    The tool surface covers a wide range of Witzense capabilities: devices, locations, tracks, reports, geofences, media, alarms, OBD, RFID, and tags. It is mostly read-oriented, but the generic call_witzense_method escape hatch mitigates gaps in dedicated write or management operations.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Provides access to Alpha ESS solar inverter and battery system data, enabling monitoring of energy statistics, real-time power data, and configuration of battery charging and discharge schedules through the Alpha ESS Open API.
      10
      MIT
    • F
      license
      A
      quality
      F
      maintenance
      Enables interaction with InvenTree inventory management system, providing tools for parts, stock, orders, companies, barcodes, labels, reports, attachments, and system administration.
      12
      1
      -
    • A
      license
      B
      quality
      C
      maintenance
      Enables querying Cariot APIs for fleet management data, including alcohol checks, daily reports, drivers, vehicles, and realtime snapshots, with utility for generating chart configurations.
      7
      30 npm
      1
      MIT