Skip to content

Aiten MCP Server

The Aiten MCP server opens your trip operations to AI clients such as Claude as tools. Using your own Aiten account, you can ask about trips, track them, and (optionally) create trips in natural language — without a single click in the dashboard.

The server is hosted by Aiten. You install and run nothing on your own computer — you give your client a single URL, grant authorization once in the browser, and you are done. MCP (Model Context Protocol) is an open protocol that lets AI clients connect to external systems through a standard interface; a client that supports MCP discovers the tools automatically — there is no need to define them one by one.

Authentication uses OAuth 2.1 (the MCP standard): you log in with your Aiten account in the browser and grant permission — you never paste a key or password into the client. The access token issued is locked on the server side to your company only (tenant isolation); no other company's data can be accessed.

Connecting

Server address:

https://mcp.aiten.io/mcp

In a client that supports remote MCP servers, enter this URL under “Add connector” (or “Add remote MCP server”). On the first connection, the client sends you to Aiten's authorization screen in the browser:

  1. Log in with your Aiten dashboard account (the email and password you use in the dashboard).
  2. Click “Allow” — you will see which company your client will access and with what scope (read/write).
  3. The browser returns you to the client; the tools are ready under the “aiten” heading.

When the token expires, the client renews it silently; in most cases you do not need to log in again.

Bridge for local-only (stdio) clients

If your client cannot connect to a remote MCP server directly (it only supports local commands), use the mcp-remote bridge. It runs the OAuth flow in the browser for you. For Claude Desktop, claude_desktop_config.json:

{
  "mcpServers": {
    "aiten": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://mcp.aiten.io/mcp"]
    }
  }
}
Tip: For MCP, create a separate integration user in the dashboard instead of using your personal account. You can revoke its access from the dashboard at any time; this account sees only your own company's data.

How Does Authentication Work?

Behind the scenes, the flow follows MCP's authorization standard (OAuth 2.1 + PKCE):

  • On its first request without a token, the client receives a 401 and a discovery header; from there it finds Aiten's authorization server (api.aiten.io).
  • After you log in and grant permission in the browser, the client receives an access token that is valid only for this MCP resource (bound to aud).
  • This token is sent with every tool call; the server verifies it and resolves your company from it.
  • The server never forwards the token to the backend API (no confused deputy) — it makes calls with its own service key, scoped to your company's data only.

The result: your client never holds a long-lived secret, and revoking access in the dashboard cuts off authorization immediately.

Tools

The server exposes trip operations as two groups of tools.

Read tools (always enabled)

ToolWhat it does
list_tripsLists trips with filters (status, search, date).
get_tripReturns stop and document details for a single trip.
list_stopsLists the stops of a trip.
get_trip_eventsReturns the trip's event history (arrival, delivery, delay).
get_proof_of_deliveryReturns the proof of delivery (POD) for a completed trip.
list_stop_documentsLists the waybill documents for a stop.

Write tools

ToolWhat it does
create_tripCreates a new trip.
update_tripUpdates trip details.
complete_tripCompletes the trip.
cancel_tripCancels the trip.
update_locationUpdates the trip location.
report_issueAdds an issue record to the trip.
Security: Write tools are deliberately off by default and are enabled on the server side together with the Aiten team. When create_trip succeeds, the assigned driver receives a real WhatsApp notification; for this reason, your client also asks for separate confirmation on every write call.

Example Prompts

  • “List IN_PROGRESS trips.”
  • “Where is DL-260701-001, and which stop is it at?”
  • “Get the proof of delivery for the latest trip with license plate 34 ABC 123.”
  • (with write access on) “Create a trip from the Gebze warehouse to the Ankara dealer with 34 ABC 123, driver 905551234567.”