---
title: "Wialon MCP: Ask Claude About Your Wialon Fleet | Asset Track"
url: https://theassettrack.com/wialon-api/mcp/
description: "Connect Claude, ChatGPT, Cursor or Codex to Wialon over MCP: the hosted server, read-only sign-in, the agent skill, and when to build an API integration."
---

# Wialon MCP: Ask Claude About Your Wialon Fleet

Reference · last checked December 1, 2026

Connect Claude, ChatGPT, Cursor or Codex to Wialon over MCP: the hosted server, read-only sign-in, the agent skill, and when to build an API integration.

The Model Context Protocol lets an AI agent call tools instead of guessing, and a Wialon MCP server is the shortest path from “where is truck 14?” to an answer from live data. You add one URL to Claude, ChatGPT, Cursor, Codex or VS Code, sign in with your Wialon login, and the agent can read positions, mileage, fuel, driving behaviour, geofence visits and saved reports from your own account. This page covers the hosted server Asset Track runs, the agent skill that goes with it, how access is granted and revoked, and the point at which a chat stops being enough and an API integration is the better tool.

[wialon-mcp on GitHub](https://github.com/assettrackhq/wialon-mcp) · [Full setup notes](https://aichat.theassettrack.com/mcp)

## What the MCP server adds on top of the Remote API

Every MCP tool here is a Remote API call underneath: core/search_items for units, messages/load_interval for tracks, report/exec_report for trips, fuel and saved templates. What the server adds is the layer an agent cannot write for itself mid-conversation:

- **Nineteen read-only tools**, each shaped around a fleet question rather than an API service, so the agent picks “mileage by unit for an interval” instead of assembling report flags.
- **Sessions handled for it.** The server signs in with your token, keeps the Wialon session for a few idle minutes so a run of questions does not log in again each time, and follows the [one-report-per-session rule](https://theassettrack.com/wialon-api/reports/) that trips up hand-written report code.
- **A skill with the rules that decide whether an answer is right:** a position from April is not a moving truck, an unreadable fuel sensor is not an empty tank, and “yesterday” means yesterday in the account’s time zone, not the server’s.

The server address is `https://ai.theassettrack.com/mcp`. There is nothing to install for the server itself; the skill and the client configs live in the public repository.

## Connect Claude Code

The plugin installs the server and the skill together:

`claude plugin marketplace add assettrackhq/wialon-mcp claude plugin install wialon@wialon-mcp`

Then run `/mcp`, choose `fleetai` and pick **Authenticate**. To add only the server, without the skill:

`claude mcp add --transport http fleetai https://ai.theassettrack.com/mcp`

## Connect Claude Desktop, ChatGPT, Cursor, Codex and VS Code

| Client | Where the server goes |
| --- | --- |
| claude.ai, Claude Desktop | Settings → Connectors → Add custom connector, with the URL above |
| ChatGPT | Plugins → + → Add custom MCP server with the URL above, OAuth |
| Codex | `clients/codex.toml` from the repository, then `codex mcp login fleetai` |
| Cursor | `clients/cursor.json` copied into `.cursor/mcp.json` |
| VS Code | `clients/vscode.json` copied into `.vscode/mcp.json` |

Most clients read their MCP configuration only at startup, so restart after saving. For agents that load skills on demand, add the skill as well with `npx skills add assettrackhq/wialon-mcp`, or copy `skills/wialon` into `~/.claude/skills/` for Claude Code or `~/.agents/skills/` for Codex and Cursor.

## How sign-in and access work

The first connection opens a browser page. You pick the Wialon server your account lives on — hosting.wialon.com, the.eu or the.us one — and sign in on Wialon’s own login page, so the password never passes through the MCP server. Wialon then issues a **view-only** access token valid for 30 days. It appears in your Wialon user settings under Access tokens as “FleetAI MCP”, and deleting it there ends the access at once.

Three properties follow from that design:

- **Read-only on both sides.** No tool creates, edits or deletes anything, and the token Wialon issues cannot write even if a tool tried.
- **Nothing stored.** The client holds the encrypted token and sends it with each request. The server has no database and writes no log line containing the token or the session.
- **Browsers refused.** Requests carrying a browser `Origin` header are rejected, so a web page cannot borrow your token through the server.

A script or a client that cannot open a browser can send a token of its own instead, issued in the Wialon user settings with the [access flags it needs](https://theassettrack.com/wialon-api/token/). Send it as `Authorization: Bearer <token>`, and add `?region=eu` or `?region=us` to the URL for an account that is not on hosting.wialon.com:

`claude mcp add --transport http fleetai https://ai.theassettrack.com/mcp \ --header "Authorization: Bearer <your token>"`

## Questions it answers

- How many vehicles are online, and which have not reported today?
- How far did each truck drive last week?
- Show yesterday’s route for one unit.
- Did anyone lose fuel this week that was not a fill?
- Who drove worst last month, and for what?
- Which vehicles idled the most yesterday, and how much fuel did it burn?
- Who was at the depot today, and for how long?
- Which truck is closest to a given address?
- What changed since yesterday, and which services are overdue?
- Export last month’s mileage report as a PDF.

In clients that render MCP Apps, Claude and ChatGPT among them, questions about positions, the nearest vehicle or a route also return a map in the chat. A position more than an hour old is drawn grey, so it never reads as “here now”.

## When a chat is not enough

An MCP server answers a person who is asking. It does not run on a schedule, write into another system, or keep a history of its own. When the question turns into “every night, push mileage into the ERP” or “open a work order when a service is due”, the work belongs in an integration: a backend that holds its own token, survives [the error codes Wialon returns under load](https://theassettrack.com/wialon-api/errors/), and writes to the other side idempotently. The [TypeScript SDK](https://theassettrack.com/wialon-api/sdk/) covers the client layer of that build. The MCP server is a good way to find out which questions matter before deciding which of them deserve one.

## When something is off

| Symptom | Check |
| --- | --- |
| The agent says it has no fleet tools | The client has not connected. Is the config in the file it reads? Restart it. |
| The client asks you to sign in again | The 30 days are up, or “FleetAI MCP” was deleted in Wialon. Sign in again. |
| Every call fails with an auth error | With a token of your own: the region parameter, then the `Bearer` prefix. |
| ”The connection to Wialon dropped” | The token has expired or been deleted. Retrying the same call will not help. |
| An export came back with no file | The interval held no rows. Widen the dates, or check the unit reported at all. |

The same tools also run as a chat app with no agent required; the [FleetAI release post](https://theassettrack.com/blog/fleetai-for-wialon-released/) covers that side.

Work with us

Rather not build this integration yourself?

We connect Wialon to ERP, TMS, CMMS and BI: a fixed quote after a free 30-minute call, from $500, with the source code and a runbook at handover.

What a build includes: [Wialon integration →](https://theassettrack.com/wialon-integration/)

[Book a free call](https://cal.com/sergey.govorunov/call) or send us a message

## Also in this reference

- ### Wialon TypeScript SDK: Typed Remote API Client
 Open-source TypeScript client for the Wialon Remote API: token login, units, trips, drivers, reports and typed errors, for Node and the browser.
 [Wialon TypeScript SDK: Typed Remote API Client](https://theassettrack.com/wialon-api/sdk/)
- ### Wialon API Token and Login: Sessions That Survive
 Wialon authorization end to end: the login form, token/login, token/update, the access-flag table, and the 100-day inaction rule that deletes idle tokens.
 [Wialon API Token and Login: Sessions That Survive](https://theassettrack.com/wialon-api/token/)
- ### Wialon API Errors: Codes 1, 4, 6, 7 and 1004
 The full Wialon Remote API error table, the 1003 reason variants, the quotas that produce each code, and how to classify them for retry logic.
 [Wialon API Errors: Codes 1, 4, 6, 7 and 1004](https://theassettrack.com/wialon-api/errors/)
- ### Wialon API in Postman: Authenticate in 10 Minutes
 The Wialon request format, the two headers and encodings that break every first call, and a Postman setup for an authenticated session.
 [Wialon API in Postman: Authenticate in 10 Minutes](https://theassettrack.com/wialon-api/postman/)
- ### Wialon API: Get a Unit's Last Position and Message
 Data flags, core/search_items, and the difference between last position and last message — the distinction behind the most-asked question on the SDK board.
 [Wialon API: Get a Unit's Last Position and Message](https://theassettrack.com/wialon-api/units/)
- ### Wialon Messages API: load_interval, Flags and Paging
 How the Wialon messages API works: messages/load_interval, flags and flagsMask, paging with get_messages, message parameters, and the limits that bite.
 [Wialon Messages API: load_interval, Flags and Paging](https://theassettrack.com/wialon-api/messages/)
- ### Wialon Drivers API: Bind Drivers to Units
 Create drivers, bind them to units, read binding history over the Wialon Remote API — including the avl_driver auto-binding sensor.
 [Wialon Drivers API: Bind Drivers to Units](https://theassettrack.com/wialon-api/drivers/)
- ### Wialon API Reports: exec_report Without the Errors
 One report per session, the cleanup_result rule, the calls that cannot run alongside it, and the time limit that returns no rows instead of an error.
 [Wialon API Reports: exec_report Without the Errors](https://theassettrack.com/wialon-api/reports/)
- ### Wialon Geofence API: Create, Edit and Query Zones
 How the Wialon geofence API works: resource/update_zone for create, edit and delete, reading zones back, point lookups, groups and the entry/exit trigger.
 [Wialon Geofence API: Create, Edit and Query Zones](https://theassettrack.com/wialon-api/geofences/)
- ### Wialon API Notifications: Create, Edit, Enable
 resource/update_notification end to end — call modes, the trigger and action pair, schedules, and the response fields that make notifications diffable.
 [Wialon API Notifications: Create, Edit, Enable](https://theassettrack.com/wialon-api/notifications/)
- ### Wialon Retranslator: Protocols and Configuration
 The nine retranslation protocols Wialon can forward to, the update_config parameters each one uses, and where retranslation fits against an API pull.
 [Wialon Retranslator: Protocols and Configuration](https://theassettrack.com/wialon-api/retranslator/)
- ### Wialon IPS Protocol (v1.1 and v2.0): Packets and CRC16
 The Wialon IPS device protocol from the Gurtam spec: v1.1 vs v2.0 packets, login, data and black box fields, CRC16, response codes and a worked exchange.
 [Wialon IPS Protocol (v1.1 and v2.0): Packets and CRC16](https://theassettrack.com/wialon-api/ips/)
