Skip to main content
Glama

Witzense MCP

API DOCUMENT.pdf に記載されているWitzense/JIMIデバイストラッキングOpen API用のMCPサーバー。

抽出されたMarkdownリファレンスは API DOCUMENT.md です。126ページすべてのPDFページをページセクションとして保持しており、検索やプログラムによる処理が容易です。PDFが元のソースのままであり、画像のみのコンテンツはMarkdown抽出には埋め込まれていません。

設定

.env.example をローカル環境設定にコピーし、次を設定します:

  • WITZENSE_BASE_URL: デフォルトは http://open.10000track.com/route/rest。

  • WITZENSE_APP_KEY と WITZENSE_APP_SECRET。

  • WITZENSE_ACCOUNT と WITZENSE_PASSWORD_MD5 — アカウントパスワードの既存の32文字の小文字MD5。平文を指定したり、この値を再度ハッシュ化したりしないでください。

  • WITZENSE_EXPIRES_IN: トークンの有効期限リクエスト。60秒から7200秒。

  • WITZENSE_REQUEST_ENCODING: デフォルトは form。割り当てられたノードが必要とする場合は json。

実際の認証情報をコミットしたり、ソースファイルに置いたりしないでください。

Related MCP server: SORACOM Data Reader MCP

実行

npm install
npm run build
npm start

サーバーはMCP stdioを介して通信します。利用可能なツールは次のとおりです:

  • 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

専用ツールは読み取り指向で、共有の署名付きクライアントを使用します。

Command Cloud統合では、各Witzenseデバイス/IMEIは対応するCommand Cloudアセット/車両として扱われます。specs/commandcloud-mapping.md を参照してください。

APIの動作

リクエストは共通パラメータ、アクセストークン、大文字のUTF-8 MD5署名を持つ POST /route/rest を使用します。トークンは jimi.oauth.token.get で取得し、jimi.oauth.token.refresh で更新し、メモリにキャッシュします。

PDFにはTS、TSP HK、TSP EU、TSP USのノードが記載されています。割り当てられたノードは WITZENSE_BASE_URL で設定します。ノード間を移動する際にツールコードを変更しないでください。

テスト

npm test

サーバーデプロイ

リポジトリのワークフローはプルリクエストをビルドしてテストし、main へのプッシュ後に /root/WITZENSE-MCP をデプロイします。root@2.25.109.42 が受け付けるデプロイキーでGitHub Actionsのシークレット DEPLOY_SSH_KEY を設定してください。

Witzense API変数はサーバーのランタイム環境またはMCPホスト設定に保持してください。これらは意図的にデプロイワークフローやリポジトリの一部には含まれていません。

最初のサーバーのブートストラップとスモークテストのコマンドについては、DEPLOYMENT.md を参照してください。

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