Witzense MCP
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_methodlist_witzense_child_accountslist_witzense_devicesget_witzense_deviceget_witzense_device_locationslist_witzense_account_locationsget_witzense_trackget_witzense_mileageget_witzense_shared_location_urllist_witzense_alarmsget_witzense_parking_reportget_witzense_trips_reportget_witzense_fence_duration_reportget_witzense_obd_dataget_witzense_obd_faultsget_witzense_rfid_reportsget_witzense_tag_locationlist_witzense_geofencesget_witzense_geofencelist_witzense_device_groupsget_witzense_media_urlsget_witzense_live_urlget_witzense_rtmp_url
这些专用工具面向读取操作,并使用共享的签名客户端。
对于 Command Cloud 集成,每个 Witzense 设备/IMEI 都被视为对应的 Command Cloud 资产/车辆。参见 specs/commandcloud-mapping.md。
API 行为
请求使用 POST /route/rest,包含公共参数、访问令牌以及大写 UTF-8 MD5 签名。令牌通过 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 toolscall_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_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
Scored across 23 tools
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.
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.
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.
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
Read devices, telemetry, messages and geofences; create and update devices in flespi.
Read delivery jobs, depots and routes; create, update and delete jobs in Detrack.
Read assets, devices, live positions, trips and stops; list geofences in Navixy.
Read vehicles, positions, idle time, fault codes, driving scores and alerts in GPS Insight.
Related MCP Servers
- AlicenseAqualityDmaintenanceProvides 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.10MIT
- AlicenseAqualityDmaintenanceEnables access to SORACOM IoT platform data including Harvest sensor data, file storage, SoraCam camera footage/events, and SIM statistics through authenticated API calls.5MIT
- FlicenseAqualityFmaintenanceEnables interaction with InvenTree inventory management system, providing tools for parts, stock, orders, companies, barcodes, labels, reports, attachments, and system administration.121-

Cariot MCP Serverofficial
AlicenseBqualityCmaintenanceEnables querying Cariot APIs for fleet management data, including alcohol checks, daily reports, drivers, vehicles, and realtime snapshots, with utility for generating chart configurations.730 npm1MIT