# Use Techvia TMS with your AI

> Connect Claude Code, Cursor, VS Code, Claude Desktop or n8n to the Techvia TMS MCP server in a few clicks, with a copyable setup prompt. Run loads, carriers and quotes by chat.

Source: https://techvia.software/docs/tms/ai/

Pro AI lets a small brokerage run its daily operations by talking to an AI assistant. Connect Claude (claude.ai, Claude Desktop, Claude Code), Cursor, VS Code, n8n and other MCP clients that accept a header, and ask for loads, stops, notes, carriers and quotes in plain words.

The server is `https://tms-api.techvia.software/mcp` ([Model Context Protocol](https://modelcontextprotocol.io), Streamable HTTP). It uses the same key, scopes, limits and rules as the [REST API](/docs/tms/reference/). For plans and the free trial see the [TMS pricing page](https://techvia.software/products/tms#pricing).

## 1. Make a key

Sign in, open **Settings > API keys**, press **New key** and name it after the assistant. To let it manage loads, tick:

- `loads.read`: find and read loads
- `loads.write`: create and change loads, assign a carrier, record arrivals, add notes
- `directory.read`: look up customers, carriers, drivers, trucks and facilities
- `directory.write`: create or update a customer, carrier or facility (leave it off if the assistant should only read)

Tick `loads.rates` as well only if the assistant should work with quotes and set rates or carrier cost; leave it off otherwise. The key starts with `tms_` and is shown once. Below, `tms_YOUR_KEY` stands in for it.

## 2. Connect your tool

### One click

- **Install in Cursor** opens Cursor and asks you to confirm. Set the environment variable `TECHVIA_TMS_KEY` to your key **before** you start Cursor: the link only contains `Bearer ${env:TECHVIA_TMS_KEY}`, never the key.
- VS Code has no one-click button: VS Code deprecates its install link (removal planned February 2027), so use the manual config in the **VS Code** tab below.

The link only adds the server. You can remove it again in the client's MCP settings.

### Or copy a setup prompt

Paste this into the agent of Claude Code or Cursor. It installs the server, asks you for the key without repeating it, and checks the result by listing the tools.

```text title="Setup prompt for your AI agent"
Set up the Techvia TMS MCP server for me.

1. Server name: techvia-tms. Transport: streamable HTTP. URL: https://tms-api.techvia.software/mcp
   Authentication: the HTTP header "Authorization: Bearer <my key>".
2. Ask me for my Techvia API key (it starts with tms_). Never print the key back, never log it,
   never write it into a file that is committed to git. Keep it in an environment variable
   (TECHVIA_TMS_KEY) or in the client's secret store, and reference it from the config.
3. Install it for the client you are running in:
   - Claude Code: keep the default local scope (never use --scope project: it would write the key into a .mcp.json that gets committed). Run  claude mcp add --transport http techvia-tms https://tms-api.techvia.software/mcp --header "Authorization: Bearer $TECHVIA_TMS_KEY"
   - Cursor: add to ~/.cursor/mcp.json under mcpServers: "techvia-tms": { "url": "https://tms-api.techvia.software/mcp", "headers": { "Authorization": "Bearer ${env:TECHVIA_TMS_KEY}" } }
4. Verify: list the tools of the techvia-tms server and show me only their names. If the server answers
   401, the key is wrong or revoked: tell me, and do not retry with a different key.
```

### By hand

**Claude Code**

```bash
claude mcp add --transport http techvia-tms https://tms-api.techvia.software/mcp \
  --header "Authorization: Bearer tms_YOUR_KEY"
```

**Cursor**

Put this in `~/.cursor/mcp.json`, or `.cursor/mcp.json` in a project. Cursor reads `${env:NAME}` from the environment, so the key stays out of the file:

```json
{
  "mcpServers": {
    "techvia-tms": {
      "url": "https://tms-api.techvia.software/mcp",
      "headers": { "Authorization": "Bearer ${env:TECHVIA_TMS_KEY}" }
    }
  }
}
```

Or paste the key itself in place of `${env:TECHVIA_TMS_KEY}`, as `Bearer tms_YOUR_KEY`, in a file you never commit.

**VS Code**

Set the environment variable `TECHVIA_TMS_KEY` to your key before you start VS Code. Then add the server to the portable Copilot configuration: `~/.copilot/mcp-config.json` for all workspaces, or `.mcp.json` at the workspace root to share it with a team (leave the key out of that file; it only names the variable):

```json
{
  "mcpServers": {
    "techvia-tms": {
      "type": "http",
      "url": "https://tms-api.techvia.software/mcp",
      "headers": { "Authorization": "Bearer ${TECHVIA_TMS_KEY}" }
    }
  }
}
```

Use the braced `${NAME}` form. Source: [VS Code MCP configuration reference](https://code.visualstudio.com/docs/copilot/reference/mcp-configuration). The older `.vscode/mcp.json` format is deprecated by VS Code and is not covered here.

**claude.ai and Claude Desktop**

Claude calls the server as a custom connector.

1. In Claude, open **Settings > Connectors > Add custom connector**.
2. Name: `Techvia TMS`. URL: `https://tms-api.techvia.software/mcp`.
3. In **Request headers** add `Authorization` with the value `Bearer tms_YOUR_KEY`.

Claude calls the server from Anthropic's cloud, not from your computer, so the per-IP limit (3000 requests a minute) is shared with everyone calling from that vendor; it is far above one customer's use. See [MCP tools, scopes and limits](/docs/tms/ai/tools/).

**n8n**

1. Add an **MCP Client Tool** node to your AI agent.
2. Endpoint: `https://tms-api.techvia.software/mcp`. Transport: **HTTP Streamable**.
3. Authentication: **Header Auth**, name `Authorization`, value `Bearer tms_YOUR_KEY`.

**Other clients**

Any MCP client that supports the Streamable HTTP transport and custom request headers works:

- URL: `https://tms-api.techvia.software/mcp`
- Header: `Authorization: Bearer tms_YOUR_KEY`

## 3. Check it works

Ask your assistant: "List the tools of techvia-tms." Then try "Show my last five loads." Without a valid key the server answers `401`.

## What the AI can and cannot do

**It can**

- Find, create and update loads, and change their status
- Add notes and record arrival and departure at stops
- Assign a carrier to a load
- Look up and update customers, carriers and facilities
- Work with quotes and open load documents

**It cannot**

- Make payments, invoices or settlements
- Delete anything

## Safety

- **Scoped keys.** A key only does what you tick when you make it, and you can revoke it at any time.
- **History shows who did it.** Changes made by an assistant show as "API key: name" in the load's history.
- **Duplicate checks.** A repeated create is recognised and does not make a second load.
- **Invoiced loads are protected.** Customer, rate, charges, references and stops cannot be changed once a load is invoiced.
- **Safe retries.** Repeating a request after a dropped connection does not repeat the change.

:::caution[Your data goes to your AI provider]
When you connect an AI tool, data you request through it is sent to that AI provider under your own account and their terms; Techvia is not responsible for how the provider handles it.
:::

## What you can ask for

| Area | Examples |
|---|---|
| Loads | Search loads and read one load in full. Create a load or change one. Change the status of a load. Add a note to a load. Record when a truck arrived at or left a stop. Assign a carrier to a load, or take the carrier off. |
| Quotes | List and read quotes. Create a quote, change its status, or turn it into a load. |
| Documents | List the documents on a load. Get a short-lived link to open one. |
| Customers, carriers and facilities | Find and read customers and carriers. Create or update a customer, a carrier or a facility. Search facilities. |
| Fleet and people | List and read drivers, trucks and trailers. List dispatchers. |

Every tool, the scope it needs and the limits are on [MCP tools, scopes and limits](/docs/tms/ai/tools/). A worked example is [Run dispatch from Claude](/docs/tms/use-cases/run-dispatch-from-claude/).
