连接器指南阅读约 5 分钟22 个 MCP 工具7 种语言

将 Motive MCP 连接到 ChatGPT:车队与 HOS

让你的 AI 读取你的 Motive 车队数据:每辆卡车和每位司机的位置、Hours of Service 剩余时间和违规、检查报告、安全事件、故障码、IFTA 里程和加油记录。只读,使用公司 API key。

HC作者:HelpCode 团队更新于 5 分钟阅读 在 GitHub 开源

无需信用卡 · 7 天试用 · 提供自托管方案

Motive

Motive

Let your AI read your Motive fleet: where every truck and driver is, Hours of Service clocks and violations, inspection reports, safety events, fault codes, IFTA mileage and fuel purchases. Read-only, with a company API key.

个工具

22

区域

INTL

类别

物流

身份验证

API Key

所需环境变量

MOTIVE_API_KEY
在 Cloud 上一键安装

7 天免费试用 · 无需信用卡

  • 7 天免费试用
    无需信用卡
  • 符合 GDPR,SOC 2 就绪
    数据驻留欧盟,审计日志
  • 在 GitHub 开源
    开源 · AGPL-3.0
  • 支持 ChatGPT、Claude、Gemini
    任何兼容 MCP 的客户端

摘要

让你的 AI 读取你的 Motive 车队数据:每辆卡车和每位司机的位置、Hours of Service 剩余时间和违规、检查报告、安全事件、故障码、IFTA 里程和加油记录。只读,使用公司 API key。

引导式设置

2 分钟将 Motive 连接到 ChatGPT

开始 AnythingMCP Cloud 免费试用,在引导式设置中连接 Motive,再把你的 MCP URL 添加到 ChatGPT。无需代码,也无需自行运行服务器。

无需信用卡 · 7 天试用 · 提供自托管方案

ChatGPT 插件目录中的 AnythingMCP 插件可在 AnythingMCP Cloud 上回答有关企业数据库的问题(PostgreSQL、MySQL、SQL Server、Oracle、SAP HANA、SQLite、MongoDB,只读):打开插件页面 (在新标签页中打开)并点击 Install plugin。其他所有连接器都以自定义 MCP 服务器的方式添加到 ChatGPT,使用你的 AnythingMCP MCP URL。

试试这样问

Motive 的示例提示

点击任意提示即可复制,然后粘贴到 Claude、ChatGPT、Cursor、Gemini、Copilot 或 OpenClaw 中,在该连接器上运行。

Motive · 通过 MCP 实时
分享
Opus 4.7

Claude 是 AI,可能会出错。请核对回答。

💡 无需安装? 直接使用 cloud.anythingmcp.com。 登录、点击 Connectors → Motive、粘贴凭证、生成 MCP API key,即可完成。无 Docker、无 git clone、无本地服务器。

Motive + ChatGPT

让你的 AI 读取你的 Motive 车队数据:每辆卡车和每位司机的位置、Hours of Service 剩余时间和违规、检查报告、安全事件、故障码、IFTA 里程和加油记录。只读,使用公司 API key。

前提条件

完整的设置说明已内置在连接器中 (在 store 中选择连接器时可见)。所需环境变量:

MOTIVE_API_KEY

步骤 1 — 获取凭证

设置大约需要 3 分钟。你需要 Motive(原 KeepTruckin)的管理员角色,才能在 Motive 控制台中创建公司 API key。

  1. 在 Motive 控制台中打开 Admin → Developers → API Access,创建一个公司 API key(company API key)。为它授予 read(读取)权限,以及 AI 需要查看的数据的权限范围:车辆、位置、用户、HOS、IFTA、燃油、检查、安全事件、故障码、资产和分组。也可以把 key 限定在部分分组;这样 AI 只能看到这些分组。
  2. 完整的 key 只显示一次,请在该对话框中复制它,然后粘贴到 MOTIVE_API_KEY:只粘贴 key 本身,不带空格,也不带 X-Api-Key 之类的请求头名称。AnythingMCP 会以 X-Api-Key 请求头发送它。
  3. 安装连接器,用 motive_list_vehicles 检查连接。

Cloud 和自托管的方式相同:API key 是唯一的设置。

key 会过期且无法编辑:key 会按创建时选择的期限过期,Motive 会提前一周提醒管理员。权限范围之后无法更改:需要更多数据时,请创建新的 key 并粘贴到 MOTIVE_API_KEY。

ID:车辆、用户和资产都有 Motive 数字 ID。调度员使用的车号(“Truck 12”)是车辆的 number 字段;motive_lookup_vehicle 可以把它转换为 ID。司机是角色为 driver 的用户。

日期、时区和单位:日期筛选使用 YYYY-MM-DD,大多数报表默认覆盖最近 7 天;updated_after 接受 ISO 8601 时间戳。大多数工具允许 AI 选择时间戳的时区(以 X-Time-Zone 发送,例如 America/New_York),以及公制或英制单位(以 X-Metric-Units 发送:公里和升,或英里和加仑)。如果时区和单位很重要,请在提示中写明。motive_list_available_time 中的 Hours of Service 时长以秒为单位。

分页:列表默认每页 25 条,最多 100 条(per_page),通过 page_no 翻页。每个响应都带有包含 per_page、page_no 和 total 的 pagination;只要还有未看到的记录,AI 就会请求下一页。

位置历史:motive_get_vehicle_location_history 读取一辆车最多 3 个月的轨迹;时间范围短一些,回答更易读。Motive 在这个接口上最多接受 10 个并发请求。

部分数据需要相应硬件或套餐:AI 行车记录仪的安全事件(使用手机、安全带、跟车过近等)、通过 Vehicle Gateway 获取的位置(motive_list_vehicle_gateway_locations;装有其他 ELD 的车辆通过 motive_list_vehicle_locations 获取),以及装有资产网关(asset gateway)的挂车位置。

不支持欧盟账号:连接器调用 https://api.gomotive.com;Motive 欧盟平台上的账号使用另一个主机。

常见错误:401 表示 Motive 拒绝了 key:没有完整复制、已过期或已撤销,或者连同请求头名称 X-Api-Key 一起粘贴了。403 表示 key 有效,但缺少该数据的权限范围:请创建带有该权限范围的新 key。404 表示没有该 ID 的记录:请使用数字 ID,而不是车号或司机姓名。Motive 对该 key 限流时,请等一分钟,少请求几页后再试。

可读取的内容:车辆,包括 VIN、品牌、型号、车牌、燃油类型、ELD 设备和司机;每辆车和每位司机的当前位置,以及一辆车在某段时间内的行驶路线;司机、车队用户和管理员;Hours of Service 剩余时间(谁今天还能开车、还能开多久)、每日日志和违规;按州或省统计的 IFTA 行程和里程;加油记录;检查报告(DVIR)及其缺陷;安全事件,包括辅导状态和媒体链接;发动机故障码;驾驶时段,包括个人用车(personal conveyance)、场内移车(yard move)和未识别驾驶;挂车和其他资产及其最后位置;以及车队划分的分组。

只读:所有工具都只读取,安装时没有默认关闭的工具。Motive 中的任何内容都不会被更改:不包含创建或编辑车辆、用户、分组、地理围栏、加油记录或检查报告,也不包含给司机发消息、派车和发动机防盗锁止指令。

步骤 2 — 安装 adapter

curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d

步骤 3 — 在 ChatGPT 中添加连接器

你的服务器 URL: 在 AnythingMCP 中打开 MCP Servers → 此连接器所在的服务器,复制它的 URL(https://cloud.anythingmcp.com/mcp/…)。本指南中出现 YOUR_SERVER_ID 的地方都用它替换。

ChatGPT 在网页版的 Plugins 页面把 MCP 服务器添加为插件,仅付费套餐可用,不再需要开发者模式。在 Business 工作区中只有管理员和所有者可以添加;在 Enterprise 和 Edu 中,管理员可以授予 Create plugins with MCPs 权限。

  1. 前往 chatgpt.com/plugins,点击 Add,然后选择 Add custom MCP server。
  2. 填写名称,例如 Name: Motive。
  3. 在 Connection 下的 Server URL 中填入 https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID,Authentication 保持为 OAuth。
  4. 选择 I understand and want to continue,然后点击 Create as a plugin。ChatGPT 提示时,登录 AnythingMCP 并允许访问。
  5. 在个人插件中安装这个新插件,然后在对话中输入 @ 并选择它。

可用工具

ToolWhat it does
motive_list_vehiclesList the company vehicles in Motive: id, number (the fleet unit name), status, VIN, make, model, year, license plate, fuel type, IFTA flag…
motive_get_vehicleRead one vehicle by its Motive id: number, status, VIN, make, model, year, plate, fuel type, groups, ELD device and assigned driver
motive_lookup_vehicleFind a vehicle by its fleet unit number (the "number" shown in the Motive dashboard, for example "Truck 12") and return its full record…
motive_list_vehicle_locationsCurrent location of every vehicle (v2): for each vehicle its id, number, VIN and current_location with latitude, longitude, a place…
motive_list_vehicle_gateway_locationsCurrent location of vehicles fitted with the Motive Vehicle Gateway (v3), with richer telemetry than v2 and, on request, the auxiliary…
motive_get_vehicle_location_historyLocation breadcrumbs of one vehicle between two dates (v2): each point with latitude, longitude, description, located_at, speed, bearing…
motive_list_driver_locationsDrivers with their last known location and the vehicle they are in: user id, name, current_location (lat, lon, description, located_at) and…
motive_list_usersList the users of the Motive account (drivers, fleet users and admins): id, first and last name, email, phone, role, status, duty status…
motive_get_userRead one user (driver or fleet user) by Motive id: name, contact details, role, status, duty status, licence, cycle and exceptions settings
motive_list_available_timeHours of Service clocks per driver: current duty status and the time still available on the drive, shift, cycle and break clocks (in…
motive_list_hos_logsDaily Hours of Service logs (records of duty status) of the drivers: per driver and day the duty status events with start time and…
motive_list_hos_violationsHours of Service violations of the drivers, for example exceeding the 11-hour drive or 14-hour shift limit or a missed 30-minute break…
motive_list_ifta_tripsIFTA trip report: distance driven per vehicle and jurisdiction (state or province) with dates, start and end odometer and location
motive_get_ifta_mileage_summaryIFTA mileage summary: total distance per vehicle and jurisdiction over a period (default the last 7 days), the figure that goes on a…
motive_list_fuel_purchasesFuel purchases recorded in Motive (entered by drivers, imported or from a fuel card integration): date, vehicle, driver, jurisdiction, fuel…
motive_list_inspection_reportsDriver vehicle inspection reports (DVIRs, v2) for vehicles and trailers: date, driver, vehicle or asset, inspection type, location…
motive_list_driver_performance_eventsSafety events detected by Motive (v2): harsh acceleration, braking and cornering, crashes, and with AI dashcams events such as cell phone…
motive_list_fault_codesEngine fault codes (diagnostic trouble codes) reported by the vehicles: code, label, description, source, status (open or closed), type…
motive_list_driving_periodsDriving periods of the vehicles: each stretch of driving with start and end time, duration, distance, origin and destination, vehicle and…
motive_list_assetsList the non-powered assets (trailers, containers, equipment): id, name, type, status, make, model, year, VIN, plate, groups and the asset…
motive_list_asset_locationsLast known location of the assets that carry a Motive asset gateway: asset id and name, latitude, longitude, place description, located_at…
motive_list_groupsList the groups of the account (the way the fleet is split into terminals, regions or teams): id, name, parent group, status and member…

示例提示

  • “Truck 12 现在在哪里?谁在开?”
  • “哪些司机今天还能开车?还能开多久?”
  • “上周哪些司机有急刹车或使用手机的事件?”
  • “哪些车辆有带缺陷的检查报告或未关闭的故障码?”
  • “为 IFTA 申报,上个季度每辆卡车在各州分别行驶了多少英里?”

FAQ

ChatGPT 免费套餐能用自定义 MCP 服务器吗? OpenAI 只为付费套餐提供自定义 MCP 服务器的说明,Free 套餐不在其列。

下一步

这份指南对你有帮助吗?

2 分钟将 Motive 连接到 ChatGPT

开始 AnythingMCP Cloud 免费试用,在引导式设置中连接 Motive,再把你的 MCP URL 添加到 ChatGPT。无需代码,也无需自行运行服务器。

相关指南

连接器

将 Motive MCP 连接到 Claude:车队与 HOS

让你的 AI 读取你的 Motive 车队数据:每辆卡车和每位司机的位置、Hours of Service 剩余时间和违规、检查报告、安全事件、故障码、IFTA 里程和加油记录。只读,使用公司 API key。

连接器

将 Motive MCP 连接到 Microsoft Copilot

让你的 AI 读取你的 Motive 车队数据:每辆卡车和每位司机的位置、Hours of Service 剩余时间和违规、检查报告、安全事件、故障码、IFTA 里程和加油记录。只读,使用公司 API key。

连接器

将 Motive MCP 连接到 Cursor:车队与 HOS

让你的 AI 读取你的 Motive 车队数据:每辆卡车和每位司机的位置、Hours of Service 剩余时间和违规、检查报告、安全事件、故障码、IFTA 里程和加油记录。只读,使用公司 API key。

连接器

将 Motive MCP 连接到 Gemini CLI

让你的 AI 读取你的 Motive 车队数据:每辆卡车和每位司机的位置、Hours of Service 剩余时间和违规、检查报告、安全事件、故障码、IFTA 里程和加油记录。只读,使用公司 API key。

连接器

将 Motive MCP 连接到 Meta Muse

让你的 AI 读取你的 Motive 车队数据:每辆卡车和每位司机的位置、Hours of Service 剩余时间和违规、检查报告、安全事件、故障码、IFTA 里程和加油记录。只读,使用公司 API key。

连接器

Motive MCP 服务器:车队位置、HOS 与安全

让你的 AI 读取你的 Motive 车队数据:每辆卡车和每位司机的位置、Hours of Service 剩余时间和违规、检查报告、安全事件、故障码、IFTA 里程和加油记录。只读,使用公司 API key。