Wialon MCP: Ask Claude About Your Wialon Fleet

Reference · last checked

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 · Full setup notes

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 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

ClientWhere the server goes
claude.ai, Claude DesktopSettings → Connectors → Add custom connector, with the URL above
ChatGPTPlugins → + → Add custom MCP server with the URL above, OAuth
Codexclients/codex.toml from the repository, then codex mcp login fleetai
Cursorclients/cursor.json copied into .cursor/mcp.json
VS Codeclients/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. 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, and writes to the other side idempotently. The TypeScript 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

SymptomCheck
The agent says it has no fleet toolsThe client has not connected. Is the config in the file it reads? Restart it.
The client asks you to sign in againThe 30 days are up, or “FleetAI MCP” was deleted in Wialon. Sign in again.
Every call fails with an auth errorWith 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 fileThe 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 covers that side.

Also in this reference

Let's connect

  • “Our client needed a data pipeline. It came back working, plus a few Wialon fixes we had not asked for. That client trusts us more now.”
    Faiz K. Customer Manager · Trakpro Limited