Neither replaces the Terminal API. Use that when you are building a product integration.
MCP server
The MCP server exposes Terminal API operations as MCP tools. Add the URL to your client and sign in with your Terminal Dashboard account when the browser opens. You do not put a secret key in the client config.Connect a client
Every MCP client adds remote servers a little differently. In general:- Find the MCP or connectors settings in your client (for example, Cursor Settings → MCP, or Settings → Connectors in Claude).
-
Add a remote server with the URL
https://mcp.withterminal.com/mcp. Some clients take a JSON config instead: - When prompted, sign in with the Terminal Dashboard account that should access your applications.
-
Confirm Terminal tools such as
listApplicationsandlistVehiclesappear.
Scope
What the agent can see matches your Dashboard user: applications in your active organization, and the connections and data that user can read. Tools take an application ID and, where relevant, a connection token as arguments; the tool descriptions tell the agent how to resolve them, so you rarely need to supply them yourself. Secret endpoints such as application keys are not exposed.CLI
The Terminal CLI is an open-source command line for the same API, published as@terminal-api/cli. Agents can run terminal commands, or you can use it yourself in a shell.
Install
pnpm add -g @terminal-api/cli and bun install -g @terminal-api/cli also work.
Configure
TERMINAL_API_KEY, TERMINAL_CONNECTION_TOKEN) or profiles for sandbox vs production.
Get a secret key from the Dashboard. Connection tokens come from list connections or the consent flow.
Use
terminal --help for the full list, or terminal with no arguments for an interactive TUI.
The repo also ships agent skills and commands you can copy into your agent so it knows how to call the CLI.
What agents can query
MCP tools and CLI commands cover the read side of the Terminal API: applications and connections, vehicles and locations, drivers and HOS, trips, safety events, and the rest. A few examples:listVehicles/terminal list-vehicleslistLatestVehicleLocations/terminal list-latest-vehicle-locationslistHOSLogs/terminal list-hos-logs
terminal --help, for the current list. For request and response fields, use the matching API reference page.