Skip to main content Announcing Tool Policies: AI agent permissions down to the field Read the announcement
Live 84 Actions

Onfleet MCP Server
for AI Agents

Connect your AI agent to StackOne's Onfleet MCP server and give it 84 MCP tools out of the box. Auth, tool execution, and security all managed.

Onfleet logo
Onfleet MCP Server
Built by StackOne StackOne
DrataGPLocalyzeFlipMindtoolsScreenloop

Coverage

84 Agent Actions

Agents can read, write, delete and run operations in Onfleet. Extend your agent's capabilities with custom actions.

Authentication

Agent Tool Authentication

Per-user OAuth in one call. Your Onfleet MCP server gets session-scoped tokens with zero credentials stored on your infra.

Agent Auth →

Security

Agent Protection

Every Onfleet tool response scanned for prompt injection in about 2.5 ms, with 0.94 F1 on tool-response attacks, all running on a CPU.

Prompt Injection Defense →

Performance

Max Agent Context. Min Cost.

Free up to 96% of your agent's context window to enhance reasoning and reduce cost, on every Onfleet call.

Tools Discovery →

What is the Onfleet MCP Server?

A Onfleet MCP server lets AI agents read and write Onfleet data through the Model Context Protocol, Anthropic's open standard for connecting LLMs to external tools. StackOne's Onfleet MCP server ships with 84 pre-built actions, fully extensible via the Connector Builder, plus managed authentication, prompt injection defense, observability, and agent execution runtime. Connect it from MCP clients like Claude Desktop, Claude Code, Cursor, Goose, and VS Code, or from agent frameworks like OpenAI Agents SDK, LangChain, and Vercel AI SDK.

All Onfleet MCP Tools

Every StackOne action for Onfleet, ready for your agent. Read, write, delete and run operations, scoped to exactly what you need.

Administrators

  • Create Administrator

    Create a new dashboard administrator in the organization and send them a confirmation email

  • List Administrators

    List every administrator in the organization, including super admins and standard dispatchers

  • Update Administrator

    Update an existing administrator's email, phone, read-only permission or metadata

  • Delete Administrator

    Permanently delete a standard dispatcher administrator from the organization

Destinations

  • Create Destination

    Create a standalone destination from an address, optionally with explicit coordinates

  • Get Destination

    Retrieve a single destination by its Onfleet identifier

Hubs

  • Create Hub

    Create a hub as a home base location and optionally assign it to existing teams

  • List Hubs

    List every hub in the organization

  • Update Hub

    Update an existing hub's name or phone number

Orders

  • Create Order

    Create a linked pickup and dropoff task pair as a new order

  • Clone Order

    Create a direct copy of an existing order

  • Get Order

    Retrieve a single order by its order shortId

  • Update Order

    Update the pickup and dropoff tasks of an existing order

Recipients

  • Create Recipient

    Create a recipient record that tasks can be addressed to

  • Get Recipient

    Retrieve a single recipient by its Onfleet identifier

  • Update Recipient

    Update a recipient's name, notes, SMS preference or metadata

Route Plans

  • Create Route Plan

    Create a route plan that groups tasks for a worker or team and schedules them

  • List Route Plans

    Search route plans by worker, start-time window, creation-time window, or whether they currently hold tasks

  • Get Route Plan

    Retrieve a single route plan by its id

  • Update Route Plan

    Update the mutable fields of an existing route plan

  • Delete Route Plan

    Permanently delete an empty route plan that has not yet started

Task Templates

  • Create Task Template

    Create a Task Template that bundles a set of configured Custom Fields into a reusable task configuration

  • List Task Templates

    List every Task Template configured for the organization along with their Custom Fields

  • Update Task Template

    Modify an existing Task Template's name, task-type scope, or Custom Field key list

  • Delete Task Template

    Permanently delete a Task Template by its id

Tasks

  • Create Task

    Create a delivery or pickup task, creating its destination and recipient inline

  • Clone Task

    Create a new task copying the details of an existing task

  • List Tasks

    List the tasks in the organization within a time range

  • Get Task

    Retrieve a single task by its 24-character task ID

  • Update Task

    Update the mutable fields of an existing task

  • Delete Task

    Permanently delete an unassigned task

Teams

  • Create Team

    Create a new team that groups workers under one or more managing administrators

  • List Teams

    List every team defined in the organization

  • Get Team

    Fetch a single team by its ID

  • Update Team

    Update an existing team's name, membership, or hub

  • Delete Team

    Permanently delete a team by its ID

Webhooks

  • Create Webhook

    Register a webhook that Onfleet calls when a trigger condition is met

  • List Webhooks

    Retrieve every webhook registered on the organization

  • Update Webhook

    Update the configuration of an existing webhook

  • Delete Webhook

    Remove a registered webhook

Workers

  • Create Worker

    Create a new worker (driver) in the organization and add them to one or more teams

  • List Workers

    Return a collection of all workers in the organization, optionally filtered by team, duty state or phone number

  • Update Worker

    Update an existing worker's mutable details such as name and team memberships

  • Delete Worker

    Permanently remove a worker from the organization

Worker's Schedules

  • Get Worker's Schedule

    Retrieve all of the shift schedule entries for a worker

  • Set Worker's Schedule

    Replace a worker's shift schedule with the supplied list of entries

Other (38)

  • Add Tasks To Route Plan

    Replace a route plan's entire ordered task list with the supplied array of task ids

  • Create Tasks In Batch

    Create multiple tasks synchronously in a single request (deprecated — prefer Create Tasks In Batch Async)

  • Create Tasks In Batch Async

    Queue up to 500 tasks for asynchronous creation and receive a job ID

  • Query Administrators By Metadata

    Find administrators whose metadata matches every supplied name, type and value filter

  • Get Container

    Retrieve a container and the ordered list of tasks currently assigned to a worker, team, or organization

  • Query Destinations By Metadata

    Find destinations whose metadata matches one or more name, type and value conditions

  • Get Optimization Status

    Poll the current state of a started route optimization run

  • Get Organization

    Retrieve your own organization's details, the organization the API key belongs to

  • Get Delegatee Organization

    Retrieve the details of a connected delegatee organization by its id

  • Query Recipients By Metadata

    Find recipients whose metadata matches one or more name, type and value conditions

  • Search Eligible Custom Field

    Discover which configured Custom Fields are eligible for a given Task Template task-type scope

  • Get Batch Job Status

    Retrieve the status and results of an asynchronous batch task-creation job

  • Get Task By Short ID

    Retrieve a single task by its short identifier

  • Query Tasks By Metadata

    Find tasks whose metadata matches every supplied name, type and value

  • Search Task Custom Fields

    Find tasks matching one or more Custom Field key and value pairs

  • List Team Unassigned Tasks

    List the tasks currently sitting in a team's unassigned container

  • Get Team Driver Time Estimate

    Estimate travel time, distance, ETA, and ETC for a task that has not been created yet

  • Query Teams By Metadata

    Find teams whose custom metadata entries match one or more name, type, and value matchers

  • Get Single Worker

    Fetch a single worker by ID, optionally including duty, distance and time analytics

  • Get Workers By Location

    Find the workers currently located within a radius of a coordinate pair

  • List Worker's Assigned Tasks

    Return the tasks currently assigned to a worker, sorted by creation time

  • Query Workers By Metadata

    Find workers whose metadata matches every supplied name, type and value filter

  • Update Container Tasks

    Assign, reorder, insert, or fully replace the ordered task list of a worker, team, or organization container

  • Delete A List Of Tasks

    Delete multiple tasks in a single request

  • Test API Key

    Verify that the configured Onfleet API key is valid and correctly formatted

  • Generate Delivery Manifest

    Generate a compliance delivery manifest for a worker's assigned route from a given hub

  • Initialize Route Optimization

    Configure and preview a route optimization run and receive the optimizationId the rest of the lifecycle consumes

  • Start Route Optimization

    Start the computation for a previously initialized route optimization run

  • Abort Optimization

    Cancel a route optimization run so its results are never applied

  • Apply Optimization Results

    Commit a completed route optimization's planned assignments to the workers

  • Cancel Orders

    Cancel one or more orders before they start or complete

  • Reject Order

    Reject an order a client sent to a courier, with a reason

  • Quote Order

    Get price quotes across a client’s configured delivery services for a potential order

  • Find Recipient By Name

    Look up a recipient by an exact, case-insensitive name match

  • Find Recipient By Phone

    Look up a recipient by an exact phone number match

  • Complete Task

    Force-complete an active task from the dispatcher side

  • Auto Assign Tasks

    Automatically assign a list of existing tasks to available drivers

  • Dispatch Team

    Auto-dispatch a team's assigned tasks to its on-duty drivers

Set Up Your Onfleet MCP Server in Minutes

One endpoint. Any framework. Your agent is talking to Onfleet in under 10 lines of code.

Agent Frameworks

Claude Desktop
{
  "mcpServers": {
    "stackone": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote@latest",
        "https://api.stackone.com/mcp?x-account-id=<account_id>",
        "--header",
        "Authorization: Basic <YOUR_BASE64_TOKEN>"
      ]
    }
  }
}

FAQ

Onfleet MCP Server FAQ

Ready to put your agents to work?