æŠèŠ
AI ã§ Motive ã®ããªãŒããèªã¿åããŸãããã¹ãŠã®ãã©ãã¯ãšãã©ã€ããŒã®çŸåšå°ãHours of Service ã®æ®ãæéãšéåãç¹æ€ã¬ããŒããå®å šã€ãã³ããæ éã³ãŒããIFTA ã®èµ°è¡è·é¢ãçæè³Œå ¥ãæ±ããŸããèªã¿åãå°çšã§ãäŒç€Ÿã® API ããŒã䜿ããŸãã
ã¬ã€ãä»ãã»ããã¢ãã
Motive ã Gemini ã« 2 åã§æ¥ç¶
AnythingMCP Cloud ã®ç¡æãã©ã€ã¢ã«ãå§ããã¬ã€ãä»ãã»ããã¢ããã§ Motive ãæ¥ç¶ããŠãMCP URL ã Gemini ã«è¿œå ããŸããã³ãŒãããµãŒããŒã®éçšãäžèŠã§ãã
ã¯ã¬ãžããã«ãŒãäžèŠ Â· 7æ¥éã®è©Šçš · ã»ã«ããã¹ãã®éžæè¢ãã
ããèããŠã¿ãã
Motive ã®ãµã³ãã«ããã³ãã
ããã³ãããã¯ãªãã¯ã§ã³ããŒãClaude / ChatGPT / Cursor / Gemini / Copilot / OpenClaw ã«è²Œãä»ããŠããã®ã³ãã¯ã¿ãŒã§å®è¡ã§ããŸãã
Claude 㯠AI ã®ãã誀ãããšããããŸããåçãã確èªãã ããã
ð¡ ã€ã³ã¹ããŒã«äžèŠ? cloud.anythingmcp.com ãçŽæ¥å©çšããŠãã ããã ãµã€ã³ã€ã³ããConnectors â Motive ãã¯ãªãã¯ãèªèšŒæ å ±ã貌ãä»ããMCP API ããŒãçºè¡ããã°å®äºã§ããDocker ã
git cloneãããŒã«ã«ãµãŒããŒãäžèŠã
Motive + Gemini
AI ã§ Motive ã®ããªãŒããèªã¿åããŸãããã¹ãŠã®ãã©ãã¯ãšãã©ã€ããŒã®çŸåšå°ãHours of Service ã®æ®ãæéãšéåãç¹æ€ã¬ããŒããå®å šã€ãã³ããæ éã³ãŒããIFTA ã®èµ°è¡è·é¢ãçæè³Œå ¥ãæ±ããŸããèªã¿åãå°çšã§ãäŒç€Ÿã® API ããŒã䜿ããŸãã
åææ¡ä»¶
å®å šãªã»ããã¢ããæé ã¯ã³ãã¯ã¿èªäœã«çµã¿èŸŒãŸããŠããŸã (ã¹ãã¢ã§ã³ãã¯ã¿ãéžæãããšè¡šç€º)ãå¿ èŠãªç°å¢å€æ°:
MOTIVE_API_KEY
ã¹ããã 1 â èªèšŒæ å ±ãååŸ
ã»ããã¢ããã¯çŽ 3 åã§ããMotive ã®ããã·ã¥ããŒãã§äŒç€Ÿã® API ããŒãäœæãããããMotiveïŒæ§ KeepTruckinïŒã®ç®¡çè ããŒã«ãå¿ èŠã§ãã
- Motive ã®ããã·ã¥ããŒãã§ Admin â Developers â API Access ãéããäŒç€Ÿã® API ããŒïŒcompany API keyïŒãäœæããŸããreadïŒèªã¿åãïŒã¢ã¯ã»ã¹ãšãAI ã«èŠãããããŒã¿ã®ã¹ã³ãŒããä»äžããŸã: è»äž¡ãäœçœ®æ å ±ããŠãŒã¶ãŒãHOSãIFTAãçæãç¹æ€ãå®å šã€ãã³ããæ éã³ãŒããã¢ã»ãããã°ã«ãŒããããŒãäžéšã®ã°ã«ãŒãã«éå®ããããšãã§ãããã®å Žå AI ã¯ãã®ã°ã«ãŒãã ããåç §ããŸãã
- ããŒå
šäœã¯äžåºŠãã衚瀺ãããªãããããã®ç»é¢ã§ããŒãã³ããŒãã
MOTIVE_API_KEYã«è²Œãä»ããŸãã貌ãä»ããã®ã¯ããŒã ãã§ãã¹ããŒã¹ãX-Api-Keyãªã©ã®ããããŒåã¯å«ããŸãããAnythingMCP ã¯ããŒãX-Api-KeyããããŒãšããŠéä¿¡ããŸãã - ã³ãã¯ã¿ãŒãã€ã³ã¹ããŒã«ãã
motive_list_vehiclesã§æ¥ç¶ã確èªããŠãã ããã
Cloud ãšã»ã«ããã¹ãã¯åãæé ã§ã: èšå®ã¯ API ããŒã ãã§ãã
ããŒã«ã¯æå¹æéããããç·šéã§ããŸãã: ããŒã¯äœææã«éžãã ã¹ã±ãžã¥ãŒã«ã§æéåãã«ãªããMotive ã¯ãã® 1 é±éåã«ç®¡çè
ãžéç¥ããŸããã¹ã³ãŒãã¯åŸãã倿Žã§ããŸãããããå€ãã®ããŒã¿ãå¿
èŠãªå Žåã¯æ°ããããŒãäœæãã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 ã®æéã¯ç§åäœã§ãã
ããŒãžéã: äžèŠ§ã¯æ¢å®ã§ 1 ããŒãž 25 ä»¶ãæå€§ 100 ä»¶ïŒper_pageïŒã§ãpage_no ã§ããŒãžéãããŸããåã¬ã¹ãã³ã¹ã«ã¯ per_pageãpage_noãtotal ãå«ã pagination ãããããŸã èŠãŠããªãã¬ã³ãŒããæ®ã£ãŠããéãAI ã¯æ¬¡ã®ããŒãžãååŸããŸãã
äœçœ®å±¥æŽ: motive_get_vehicle_location_history 㯠1 å°ã®è»äž¡ãæå€§ 3 ãæåèªã¿åããŸããèªã¿ãããåçã«ãããããæéã¯çãããŠãã ããããã®ãšã³ããã€ã³ãã§ Motive ãåãä»ããåæãªã¯ãšã¹ãã¯æå€§ 10 ä»¶ã§ãã
ããŒããŠã§ã¢ããã©ã³ãå¿
èŠãªããŒã¿: AI ããã·ã¥ã«ã ã®å®å
šã€ãã³ãïŒæºåž¯é»è©±ã®äœ¿çšãã·ãŒããã«ããè»éè·é¢äžè¶³ãªã©ïŒãVehicle Gateway ã«ããäœçœ®æ
å ±ïŒmotive_list_vehicle_gateway_locationsãä»ã® ELD ãæèŒããè»äž¡ã¯ motive_list_vehicle_locations ã§ååŸããŸãïŒãã¢ã»ããã²ãŒããŠã§ã€ãä»ãããã¬ãŒã©ãŒã®äœçœ®æ
å ±ã§ãã
EU ã®ã¢ã«ãŠã³ãã¯å¯Ÿè±¡å€ã§ã: ã³ãã¯ã¿ãŒã¯ https://api.gomotive.com ãåŒã³åºããŸããMotive ã® EU ãã©ãããã©ãŒã ã®ã¢ã«ãŠã³ãã¯å¥ã®ãã¹ãã䜿ããŸãã
ãããããšã©ãŒ: 401 㯠Motive ãããŒãæåŠããããšã瀺ããŸããããŒãå®å
šã«ã³ããŒãããŠããªããæéåããåãæ¶ãæžã¿ããŸã㯠X-Api-Key ãšããããããŒåããšè²Œãä»ããããŠããå Žåã§ãã403 ã¯ããŒã¯æå¹ã§ãããã®ããŒã¿ã®ã¹ã³ãŒãããªãããšã瀺ããŸãããã®ã¹ã³ãŒããä»ããæ°ããããŒãäœæããŠãã ããã404 ã¯ãã® ID ã®ã¬ã³ãŒãããªãããšã瀺ããŸããè»äž¡çªå·ããã©ã€ããŒåã§ã¯ãªããæ°å€ ID ã䜿ã£ãŠãã ãããMotive ãããŒã®ãªã¯ãšã¹ããå¶éããŠããå Žåã¯ã1 ååŸ
ã¡ãååŸããããŒãžãæžãããŠããå詊è¡ããŠãã ããã
èªã¿åããããŒã¿: VINãã¡ãŒã«ãŒãã¢ãã«ããã³ããŒãã¬ãŒããçæã®çš®é¡ãELD ããã€ã¹ããã©ã€ããŒãå«ãè»äž¡ããã¹ãŠã®è»äž¡ãšãã©ã€ããŒã®çŸåšå°ãšãæéå ã®è»äž¡ã®èµ°è¡ã«ãŒãããã©ã€ããŒãããªãŒããŠãŒã¶ãŒã管çè ãHours of Service ã®æ®ãæéïŒä»æ¥ãŸã é転ã§ãã人ãšãã®æéïŒãæ¥æ¬¡ãã°ãšéåãç±³åœã®å·ãã«ããã®å·ããšã® IFTA ããªãããšèµ°è¡è·é¢ãçæè³Œå ¥ãæ¬ é¥ãå«ãç¹æ€ã¬ããŒãïŒDVIRïŒãã³ãŒãã³ã°ã®ç¶æ³ãšã¡ãã£ã¢ã®ãªã³ã¯ãå«ãå®å šã€ãã³ãããšã³ãžã³ã®æ éã³ãŒããç§çšé転ïŒpersonal conveyanceïŒãæ§å ç§»åïŒyard moveïŒãæªç¹å®ã®é転ãå«ãé転åºéããã¬ãŒã©ãŒãªã©ã®ã¢ã»ãããšãã®æçµäœçœ®ããããŠããªãŒããåããã°ã«ãŒãã§ãã
èªã¿åãå°çš: ãã¹ãŠã®ããŒã«ã¯èªã¿åãã ããè¡ããã€ã³ã¹ããŒã«æã«ãªãã«ãªã£ãŠããããŒã«ã¯ãããŸãããMotive ã®å 容ã¯äœã倿ŽãããŸãããè»äž¡ããŠãŒã¶ãŒãã°ã«ãŒãããžãªãã§ã³ã¹ãçæè³Œå ¥ãç¹æ€ã¬ããŒãã®äœæãç·šéããã©ã€ããŒãžã®ã¡ãã»ãŒãžãé è»æç€ºããšã³ãžã³ã€ã¢ãã©ã€ã¶ãŒã®ã³ãã³ãã¯å«ãŸããŠããŸããã
ã¹ããã 2 â ã¢ããã¿ãŒãã€ã³ã¹ããŒã«
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 â Gemini ã«ã³ãã¯ã¿ã远å
ãµãŒããŒURL: AnythingMCP ã§ MCP Servers ãéãããã®ã³ãã¯ã¿ããããµãŒããŒãéžãã§ URLïŒ
https://cloud.anythingmcp.com/mcp/âŠïŒãã³ããŒããŸãããã®ã¬ã€ãã§YOUR_SERVER_IDãšè¡šç€ºãããŠããç®æã«äœ¿ã£ãŠãã ããã
Gemini CLI 㯠~/.gemini/settings.jsonïŒWindows ã§ã¯ %USERPROFILE%\.gemini\settings.jsonïŒãã MCP ãµãŒããŒãèªã¿èŸŒã¿ãŸããæ¬¡ã远å ããŠãã ãã:
{
"mcpServers": {
"anythingmcp": {
"httpUrl": "https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID",
"headers": { "X-API-Key": "YOUR_MCP_API_KEY" }
}
}
}
- AnythingMCP ã® MCP Servers â 察象ã®ãµãŒã㌠â API keys ã§ MCP API ããŒãäœæãã
YOUR_MCP_API_KEYãšçœ®ãæããŸãã - ãã¡ã€ã«ãä¿åãã
geminiãåèµ·åããŸãã - Gemini CLI ã§
/mcpãå®è¡ããŸãïŒãŸãã¯ã·ã§ã«ã§gemini mcp listïŒãanythingmcpãæ¥ç¶æžã¿ãšããŠè¡šç€ºãããã¯ãã§ãã - ããã³ãããå
¥åããŸããã â Gemini CLI ã
Motiveã®ããŒã«ãåŒã³åºããããã«ãªããŸããã
å©çšå¯èœãªããŒã«
| Tool | What it does |
|---|---|
motive_list_vehicles | List the company vehicles in Motive: id, number (the fleet unit name), status, VIN, make, model, year, license plate, fuel type, IFTA flag⊠|
motive_get_vehicle | Read one vehicle by its Motive id: number, status, VIN, make, model, year, plate, fuel type, groups, ELD device and assigned driver |
motive_lookup_vehicle | Find 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_locations | Current location of every vehicle (v2): for each vehicle its id, number, VIN and current_location with latitude, longitude, a place⊠|
motive_list_vehicle_gateway_locations | Current location of vehicles fitted with the Motive Vehicle Gateway (v3), with richer telemetry than v2 and, on request, the auxiliary⊠|
motive_get_vehicle_location_history | Location breadcrumbs of one vehicle between two dates (v2): each point with latitude, longitude, description, located_at, speed, bearing⊠|
motive_list_driver_locations | Drivers with their last known location and the vehicle they are in: user id, name, current_location (lat, lon, description, located_at) and⊠|
motive_list_users | List the users of the Motive account (drivers, fleet users and admins): id, first and last name, email, phone, role, status, duty status⊠|
motive_get_user | Read one user (driver or fleet user) by Motive id: name, contact details, role, status, duty status, licence, cycle and exceptions settings |
motive_list_available_time | Hours 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_logs | Daily 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_violations | Hours 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_trips | IFTA trip report: distance driven per vehicle and jurisdiction (state or province) with dates, start and end odometer and location |
motive_get_ifta_mileage_summary | IFTA 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_purchases | Fuel purchases recorded in Motive (entered by drivers, imported or from a fuel card integration): date, vehicle, driver, jurisdiction, fuel⊠|
motive_list_inspection_reports | Driver vehicle inspection reports (DVIRs, v2) for vehicles and trailers: date, driver, vehicle or asset, inspection type, location⊠|
motive_list_driver_performance_events | Safety events detected by Motive (v2): harsh acceleration, braking and cornering, crashes, and with AI dashcams events such as cell phone⊠|
motive_list_fault_codes | Engine fault codes (diagnostic trouble codes) reported by the vehicles: code, label, description, source, status (open or closed), type⊠|
motive_list_driving_periods | Driving periods of the vehicles: each stretch of driving with start and end time, duration, distance, origin and destination, vehicle and⊠|
motive_list_assets | List the non-powered assets (trailers, containers, equipment): id, name, type, status, make, model, year, VIN, plate, groups and the asset⊠|
motive_list_asset_locations | Last known location of the assets that carry a Motive asset gateway: asset id and name, latitude, longitude, place description, located_at⊠|
motive_list_groups | List 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
Gemini CLI ã¯ã©ããã MCP ãµãŒããŒãèªã¿èŸŒã¿ãŸãã? ãŠãŒã¶ãŒåäœã§ã¯ ~/.gemini/settings.jsonããããžã§ã¯ãåäœã§ã¯ãããžã§ã¯ãå
ã® .gemini/settings.json ã§ããgemini mcp list ã§åãµãŒããŒãšæ¥ç¶ç¶æ
ã確èªã§ããŸãã
次ã®ã¹ããã
ãã®ã¬ã€ãã¯åœ¹ã«ç«ã¡ãŸããã?