Ultralytics Platform MCP
v0.1.14MCP server for Ultralytics Platform projects, datasets, training, prediction, exports, and models.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
projects_list
List computer-vision projects in your Ultralytics workspace.
| Parameter | Type | Description |
|---|---|---|
limit | number | Maximum projects to return. Omit for the server default (currently 20); the API currently accepts up to 500. |
owner | string | Workspace owner; defaults to the account owner. Takes precedence over username when both are given. |
username | string | Compatibility alias for owner. |
projects_get
Get details for one project by slug, owner/slug, or project ul:// URI.
| Parameter | Type | Description |
|---|---|---|
project * | string | Project ref by slug, owner/slug, or ul:// URI. |
explore_projects
Search public projects on Ultralytics Explore.
| Parameter | Type | Description |
|---|---|---|
q * | string | Search term. |
offset | integer | Results to skip. |
sort | string | Sort order for results. Server-validated; for example stars or newest. |
datasets_list
List datasets in your Ultralytics workspace.
| Parameter | Type | Description |
|---|---|---|
owner | string | Workspace owner; defaults to the account owner. Takes precedence over username when both are given. |
username | string | Compatibility alias for owner. |
datasets_get
Get details for one dataset by slug, owner/slug, or a ul://owner/datasets/slug URI.
| Parameter | Type | Description |
|---|---|---|
dataset * | string | Dataset ref by slug, owner/slug, or a ul://owner/datasets/slug URI. |
explore_datasets
Search public datasets on Ultralytics Explore.
| Parameter | Type | Description |
|---|---|---|
q * | string | Search term. |
offset | integer | Results to skip. |
sort | string | Sort order for results. Server-validated; for example stars or newest. |
task | array | Dataset task filters. Server-validated; for example detect or segment. |
dataset_images_list
List images in a dataset by slug, owner/slug, or a ul://owner/datasets/slug URI with optional filtering.
| Parameter | Type | Description |
|---|---|---|
dataset * | string | Dataset ref by slug, owner/slug, or a ul://owner/datasets/slug URI. |
classIds | array | Class IDs to filter by. An empty array is treated as no filter (all images match), not as a filter that excludes everything. |
hasLabel | boolean | Filter by annotation state. |
includeImageUrls | boolean | Include signed full-size image URLs. |
limit | number | Maximum images to return. |
offset | number | Images to skip. |
search | string | Image name or metadata search. |
split | string | Dataset split to filter by, for example train, val, or test. |
dataset_export
Get a time-limited export download link for a dataset by slug, owner/slug, or a ul://owner/datasets/slug URI, for the latest export or one frozen version.
| Parameter | Type | Description |
|---|---|---|
dataset * | string | Dataset ref by slug, owner/slug, or a ul://owner/datasets/slug URI. |
version | number | Saved version number. |
dataset_class_stats
Get per-class annotation counts for a dataset by slug, owner/slug, or a ul://owner/datasets/slug URI. By default omits the bulky histogram and heatmap groups (image size, file size, format, points-per-annotation, bbox distributions, and location/dimension heatmaps), naming them in the summary; pass include_histograms: true to get the full payload unmodified.
| Parameter | Type | Description |
|---|---|---|
dataset * | string | Dataset ref by slug, owner/slug, or a ul://owner/datasets/slug URI. |
include_histograms | boolean | Include the histogram and heatmap groups omitted by default (image size, file size, format, points-per-annotation, bbox distributions, and location/dimension heatmaps). Off by default because the payl… |
auto_annotate_status
Get an auto-annotation run's status for a dataset by slug, owner/slug, or a ul://owner/datasets/slug URI. Surfaces activeJob and lastRun unmodified: both null means the dataset has never run one; activeJob carries progress for a run in flight; lastRun carries failed/stopped booleans plus results, or an error when the run failed.
| Parameter | Type | Description |
|---|---|---|
dataset * | string | Dataset ref by slug, owner/slug, or a ul://owner/datasets/slug URI. |
models_list
List models in a project by slug, owner/slug, or project ul:// URI. Model quality is not included; use model_metrics, which validates the platform's best-epoch fields.
| Parameter | Type | Description |
|---|---|---|
project * | string | Project ref by slug, owner/slug, or ul:// URI. |
limit | number | Maximum models to return. Omit for the server default (currently 20); the API currently accepts up to 100. |
models_get
Get details for one model by owner/project/model, ul://owner/project/model, or slug with a project. Model quality (best epoch and fitness) is not included; use model_metrics, which validates the platform's best-epoch fields.
| Parameter | Type | Description |
|---|---|---|
model * | string | Model ref by owner/project/model, ul:// URI, or slug (requires project). |
project | string | Project ref required when model is given by slug. |
gpu_availability
Get current cloud-GPU stock status by GPU type.
deployments_list
List model deployments in your Ultralytics workspace.
| Parameter | Type | Description |
|---|---|---|
owner | string | Workspace owner; defaults to the account owner. |
deployment_get
Get details for one deployment by owner/deployment or a bare slug (owner defaults to the account owner). serviceUrl and deployedAt are null until the deployment reaches status ready.
| Parameter | Type | Description |
|---|---|---|
deployment * | string | Deployment ref by owner/deployment or a bare slug. |
deployment_health
Probe one deployment's health by owner/deployment or a bare slug (owner defaults to the account owner). status is the upstream HTTP status the health probe observed at the deployment's own service URL, not the status of this tool call.
| Parameter | Type | Description |
|---|---|---|
deployment * | string | Deployment ref by owner/deployment or a bare slug. |
deployment_logs
Read log entries for one deployment by owner/deployment or a bare slug (owner defaults to the account owner). severity is passed through to the server unvalidated (illustrative values: DEBUG, INFO, NOTICE, WARNING, ERROR, CRITICAL, ALERT, EMERGENCY); an invalid value returns the server's own rejection message. limit defaults to 50, max 200. nextPageToken pages through older entries.
| Parameter | Type | Description |
|---|---|---|
deployment * | string | Deployment ref by owner/deployment or a bare slug. |
limit | integer | Max entries to return (default 50, max 200). |
pageToken | string | Pagination token from a previous call's nextPageToken. |
severity | string | Comma-separated log severity levels, passed through unvalidated (e.g. INFO or WARNING,ERROR). Exact match, not a minimum threshold. |
deployment_metrics
Read metrics for one deployment by owner/deployment or a bare slug (owner defaults to the account owner). The response is one of two shapes selected by sparkline: the default shape carries timeRange (a {start, end} object)/summary/timeSeries, sparkline=true carries requests24h (an array of per-hour points, not a total)/totalRequests/errorRate/avgLatencyMs. The two are never merged; which shape came back is returned as-is. range (e.g. 1h, 24h, 7d; default 24h) is passed through to the server unvalidated.
| Parameter | Type | Description |
|---|---|---|
deployment * | string | Deployment ref by owner/deployment or a bare slug. |
range | string | Time range, passed through unvalidated (e.g. 1h, 24h, 7d; default 24h). |
sparkline | boolean | When true, selects the compact sparkline shape (requests24h, totalRequests, errorRate, avgLatencyMs) instead of the detailed shape. |
deployment_predict
Run inference through a deployment's own serving endpoint on a local image or video file, by owner/deployment or a bare slug (owner defaults to the account owner). Returns images/metadata verbatim, including undocumented metadata fields. No per-request cost is documented for this endpoint; costs follow the deployment's own resource configuration. A cold start on a scaled-to-zero deployment may respond slowly or with a 503 — check deployment_health rather than retrying blindly.
| Parameter | Type | Description |
|---|---|---|
deployment * | string | Deployment ref by owner/deployment or a bare slug. |
imagePath * | string | Local path to an image or video file, uploaded as-is. The server decides which formats it accepts. |
conf | number | Confidence threshold (0.01-1, server default applies if omitted). |
imgsz | number | Inference image size (32-1280, server default applies if omitted). |
iou | number | IoU threshold (0-0.95, server default applies if omitted). |
training_monitor
Report a model's training status and progress (works for private and public projects). reportedCurrentEpoch, reportedProgressPercentage, and etaMs are the training job's own counters, passed through verbatim; after a run ends reportedCurrentEpoch can count a post-training evaluation as an epoch, so it may be one higher than the epochs actually trained, with reportedProgressPercentage inflated to match, and etaMs can stay nonzero. With no training job, progress is reported unavailable rather than inferred. resultRecordCount counts trainResults records, which are not epochs: a history can includ…
| Parameter | Type | Description |
|---|---|---|
model * | string | Model ref by owner/project/model, ul:// URI, or slug (requires project). |
history_last_n | integer | Limit the history to the last N records in API order (default 20). Truncates a long run to its tail; the response always reports the window it covers (record counts and the min/max reported epoch), so… |
include_history | boolean | Include the trainResults history (per-record epoch and metrics); omitted by default. |
project | string | Project ref required when model is given by slug. |
model_metrics
Report a model's best training epoch and its reported metrics, labelled so neither can be mistaken for the other (works for private and public projects). bestEpoch, bestFitness, and bestEpochMetrics are stated only when exactly one trainResults record has the reported bestEpoch and that record's fitness exactly equals the reported bestFitness; otherwise all three are null and bestEpochNote keeps the platform's raw values and says why (older Ultralytics versions reported the last epoch as bestEpoch). reportedMetrics is the model's top-level metrics field verbatim; the API does not say which eva…
| Parameter | Type | Description |
|---|---|---|
model * | string | Model ref by owner/project/model, ul:// URI, or slug (requires project). |
history_last_n | integer | Limit the history to the last N records in API order (default 20). Truncates a long run to its tail; the response always reports the window it covers (record counts and the min/max reported epoch), so… |
include_history | boolean | Include the trainResults history (per-record epoch and metrics); omitted by default. |
include_train_args | boolean | Include the full trainArgs object; off by default because the platform returns roughly a hundred keys. |
project | string | Project ref required when model is given by slug. |
model_plots
Report a model's evaluation plots (per-class pr_curve, f1_curve, precision_curve, recall_curve, confusion_matrix), which model_metrics and training_monitor do not surface. By default lists each plot's type and the shape of its fields (array lengths only, never the values) since one pr_curve alone can carry thousands of numbers on a multi-class model; pass type to get that one plot's data back exactly as the platform returned it, unmodified. Field shapes vary by type: pr_curve/f1_curve/precision_curve/recall_curve carry x/y (and pr_curve additionally ap); confusion_matrix carries a matrix field…
| Parameter | Type | Description |
|---|---|---|
model * | string | Model ref by owner/project/model, ul:// URI, or slug (requires project). |
project | string | Project ref required when model is given by slug. |
type | string | Return this one plot's full data unmodified (e.g. pr_curve, confusion_matrix). Omit to list what's available. |
model_predict
Run inference with a trained model on an image URL or base64 image (`source`), or on a local image or video file (`file_path`). Give exactly one.
| Parameter | Type | Description |
|---|---|---|
model * | string | Model ref by owner/project/model, ul:// URI, or slug (requires project). |
conf | number | Confidence threshold (0.01-1, server default applies if omitted). |
file_path | string | Local path to an image or video file, uploaded as-is. The server decides which formats and sizes it accepts. |
imgsz | number | Inference image size (32-1280, server default applies if omitted). |
iou | number | IoU threshold used for NMS (0-0.95, server default applies if omitted). |
project | string | Project ref required when model is given by slug. |
source | string | Image URL, base64-encoded image (standard or URL-safe; optional padding; ASCII whitespace ignored), or base64 data: URI (data:<mime>;base64,<payload>). Base64 is uploaded as an image file, bypassing t… |
exports_list
List export jobs for a model by owner/project/model, ul://owner/project/model, or slug with a project.
| Parameter | Type | Description |
|---|---|---|
model * | string | Model ref by owner/project/model, ul:// URI, or slug (requires project). |
project | string | Project ref required when model is given by slug. |
export_status
Get one export job's status for a model by owner/project/model, ul://owner/project/model, or slug with a project, plus the export id.
| Parameter | Type | Description |
|---|---|---|
export_id * | string | Export job id. |
model * | string | Model ref by owner/project/model, ul:// URI, or slug (requires project). |
project | string | Project ref required when model is given by slug. |
model_download
Download a trained model's weight file to an explicit local path by owner/project/model, ul://owner/project/model, or slug with a project.
| Parameter | Type | Description |
|---|---|---|
model * | string | Model ref by owner/project/model, ul:// URI, or slug (requires project). |
output_path * | string | Local destination path for downloaded model weights. |
filename | string | Select which of the model's remote weight files to download by name; does not set the local output filename (use output_path for that). Omit to prefer best.pt, then the first available file. |
overwrite | boolean | Overwrite an existing file at output_path. |
project | string | Project ref required when model is given by slug. |
projects_create
Create a project in your Ultralytics workspace. Defaults to private visibility (the platform defaults to public when visibility is omitted).
| Parameter | Type | Description |
|---|---|---|
name * | string | Display name. |
project * | string | URL slug for the new project (distinct from the display name given by name). |
description | string | Project description. |
owner | string | Workspace owner; defaults to the account owner. |
visibility | string | Visibility "private" (default) or "public". |
projects_delete
Soft-delete a project by slug, owner/slug, or project ul:// URI. Deleted projects land in trash and remain restorable for a bounded window.
| Parameter | Type | Description |
|---|---|---|
project * | string | Project ref by slug, owner/slug, or ul:// URI. |
datasets_create
Create a dataset in your Ultralytics workspace. Defaults to private visibility (the platform defaults to public when visibility is omitted).
| Parameter | Type | Description |
|---|---|---|
dataset * | string | URL slug for the new dataset (distinct from the display name given by name). |
name * | string | Display name. |
task * | string | Dataset task. Server-validated; for example detect, segment, or classify. |
classNames | array | Initial class names for the dataset. |
description | string | Dataset description. |
owner | string | Workspace owner; defaults to the account owner. |
visibility | string | Visibility "private" (default) or "public". |
auto_annotate_start
Start an auto-annotation run on a dataset by slug, owner/slug, or a ul://owner/datasets/slug URI, labelling it with a model given by owner/project/model, ul://owner/project/model, or slug with a project (state-changing, billable, may cost credits). Requires confirm_cost=true: there is no cost preview, no published rate, and a 402 signals insufficient credits; gauge magnitude with datasets_get (the unlabeled image count by default, the total count when include_annotated is true). Sends only modelId plus any of confidence, iou, class_mapping, and include_annotated the caller sets explicitly, omi…
| Parameter | Type | Description |
|---|---|---|
dataset * | string | Dataset ref by slug, owner/slug, or a ul://owner/datasets/slug URI. |
model * | string | Model ref by owner/project/model, ul:// URI, or slug (requires project). |
class_mapping | array | Model class index -> dataset class index mapping, positioned by model class index. Required to bridge a class-taxonomy mismatch between the model and the dataset; passed through with no length check. |
confidence | number | Confidence threshold for generated labels. Omit to use the server default (currently 0.25). |
confirm_cost | boolean | Must be true to allow a credit-costing auto-annotation run. |
include_annotated | boolean | Re-label images that already carry annotations. Omit to use the server default (currently false). |
iou | number | IoU threshold for generated labels. Omit to use the server default (currently 0.7). |
project | string | Project ref required when model is given by slug. |
auto_annotate_stop
Stop or dismiss a dataset's auto-annotation run by slug, owner/slug, or a ul://owner/datasets/slug URI. Reads status first and refuses without calling the endpoint when no run is active, since there is nothing to stop. When a run is active it sends the request and surfaces the server's own action verbatim rather than inferring it: cancelled for an active run stopped mid-flight, dismissed for a terminal run's summary being cleared, or none if nothing acted on. Ships ungated, consistent with training_cancel and export_cancel: an off-switch is never gated. An undismissed terminal run does not blo…
| Parameter | Type | Description |
|---|---|---|
dataset * | string | Dataset ref by slug, owner/slug, or a ul://owner/datasets/slug URI. |
dataset_version_create
Create a frozen dataset version snapshot by slug, owner/slug, or a ul://owner/datasets/slug URI. If the dataset is unchanged since the previous snapshot the existing version is returned instead of a new one.
| Parameter | Type | Description |
|---|---|---|
dataset * | string | Dataset ref by slug, owner/slug, or a ul://owner/datasets/slug URI. |
description | string | Optional note describing this snapshot. |
dataset_version_restore
Restore a dataset to a previously saved version by slug, owner/slug, or a ul://owner/datasets/slug URI, and an integer version number. Versions are listed via datasets_get (the versions array, already returned unprojected). This REPLACES the dataset's current images, labels, and splits with that snapshot outright: anything done since that version, including un-versioned manual annotation work, is discarded. Ships ungated anyway, since it is the undo tool — an auto-annotate run snapshots a version before labelling, so restoring that version undoes the run exactly, and a mistaken restore is it…
| Parameter | Type | Description |
|---|---|---|
dataset * | string | Dataset ref by slug, owner/slug, or a ul://owner/datasets/slug URI. |
version * | integer | Version number to restore, as listed in datasets_get's versions array. |
datasets_delete
Delete a dataset by slug, owner/slug, or a ul://owner/datasets/slug URI. Deleting a dataset moves its images and annotations to trash with it; models trained on it are not deleted. Trashed items remain restorable for a bounded window.
| Parameter | Type | Description |
|---|---|---|
dataset * | string | Dataset ref by slug, owner/slug, or a ul://owner/datasets/slug URI. |
dataset_ingest
Start a remote URL ingest job for a dataset by slug, owner/slug, or a ul://owner/datasets/slug URI. Defaults conflictPolicy to skip (the platform default is undocumented). Reports the queued job id with the dataset's current ingest status; use datasets_get to follow up.
| Parameter | Type | Description |
|---|---|---|
dataset * | string | Dataset ref by slug, owner/slug, or a ul://owner/datasets/slug URI. |
sourceUrl * | string | Remote dataset archive or NDJSON URL. |
conflictPolicy | string | Conflict policy, e.g. "skip" (default), "keep_both", or "replace". Server-validated. |
targetSplit | string | Target split for new images (overrides archive structure). |
dataset_upload_file
Upload a local dataset archive through the signed-upload flow for a dataset by slug, owner/slug, or a ul://owner/datasets/slug URI. Defaults conflictPolicy to skip (the platform default is undocumented). Reports the queued job id with the dataset's current ingest status; use datasets_get to follow up.
| Parameter | Type | Description |
|---|---|---|
dataset * | string | Dataset ref by slug, owner/slug, or a ul://owner/datasets/slug URI. |
file_path * | string | Local path to dataset archive file. |
conflictPolicy | string | Conflict policy, e.g. "skip" (default), "keep_both", or "replace". Server-validated. |
targetSplit | string | Target split for new images (overrides archive structure). |
dataset_upload_folder
Upload a local image folder as a zip through the signed-upload flow for a dataset by slug, owner/slug, or a ul://owner/datasets/slug URI. Defaults conflictPolicy to skip (the platform default is undocumented). Reports the queued job id with the dataset's current ingest status; use datasets_get to follow up.
| Parameter | Type | Description |
|---|---|---|
dataset * | string | Dataset ref by slug, owner/slug, or a ul://owner/datasets/slug URI. |
folder_path * | string | Local path to image folder. |
conflictPolicy | string | Conflict policy, e.g. "skip" (default), "keep_both", or "replace". Server-validated. |
targetSplit | string | Target split for new images. Rejected if the folder itself has train/val/test subdirectories; use one or the other, not both. |
dataset_upload_video
Upload a local video as extracted frames through the signed-upload flow for a dataset by slug, owner/slug, or a ul://owner/datasets/slug URI. Defaults conflictPolicy to skip (the platform default is undocumented). Reports the queued job id with the dataset's current ingest status; use datasets_get to follow up.
| Parameter | Type | Description |
|---|---|---|
dataset * | string | Dataset ref by slug, owner/slug, or a ul://owner/datasets/slug URI. |
video_path * | string | Local path to source video file. |
conflictPolicy | string | Conflict policy, e.g. "skip" (default), "keep_both", or "replace". Server-validated. |
fps | number | Maximum frame extraction rate in frames per second; may be reduced to keep the total within max_frames. |
max_frames | integer | Maximum number of frames to extract. |
targetSplit | string | Target split for new images (overrides archive structure). |
models_delete
Soft-delete a model by owner/project/model, ul://owner/project/model, or slug with a project. Deleted models go to trash and remain restorable; weights, training history, and exports are removed only on permanent deletion.
| Parameter | Type | Description |
|---|---|---|
model * | string | Model ref by owner/project/model, ul:// URI, or slug (requires project). |
project | string | Project ref required when model is given by slug. |
deployment_stop
Stop a deployment by owner/deployment or a bare slug (owner defaults to the account owner). Sends only {action: stop}; the endpoint's start/resize/replace actions are unreachable from this tool. Stopping preserves the deployment's URL and configuration and still counts toward deployment quota; it is a money-off switch and ships ungated, consistent with training_cancel and export_cancel. Stopping an already-stopped deployment is rejected by the server (400) rather than treated as a success. Reversing this (start) is not available in this tool set.
| Parameter | Type | Description |
|---|---|---|
deployment * | string | Deployment ref by owner/deployment or a bare slug. |
export_create
Create a model export job by owner/project/model, ul://owner/project/model, or slug with a project (state-changing, may cost credits). The format is validated immediately by the server; task and architecture compatibility is only known when the job runs, so a queued export can still fail. Use export_status and exports_list for the real outcome. Requires confirm_cost=true.
| Parameter | Type | Description |
|---|---|---|
format * | string | Requested export format (validated by the server). |
model * | string | Model ref by owner/project/model, ul:// URI, or slug (requires project). |
confirm_cost | boolean | Must be true to allow a credit-costing export job. |
dynamic | boolean | Dynamic input shapes. |
gpu_type | string | GPU type required for TensorRT engine exports. |
imgsz | number | Image size for export. |
project | string | Project ref required when model is given by slug. |
quantize | number | string | Export precision. Server-validated; for example 16 or "fp16" for FP16, 8 or "int8" for INT8. Omit to let the exporter choose. |
export_cancel
Cancel an active export job for a model by owner/project/model, ul://owner/project/model, or slug with a project, plus the export id. Checks the export's status first and sends the cancellation only while it is still active, refusing on any terminal status; the same API verb deletes a finished export's artifact irreversibly instead of cancelling it. The status check cannot be atomic: an export that finishes between the check and the request will have its artifact deleted rather than cancelled, and that deletion cannot be undone.
| Parameter | Type | Description |
|---|---|---|
export_id * | string | Export job id. |
model * | string | Model ref by owner/project/model, ul:// URI, or slug (requires project). |
project | string | Project ref required when model is given by slug. |
training_start
Start a cloud training job from an existing model or official YOLO base checkpoint (state-changing, may cost credits). Trains on exactly one dataset and requires epochs. The dataset is validated immediately, so an unusable dataset is rejected before any compute starts. In checkpoint mode a project model is created first, then the checkpoint's task is checked against the dataset's task server-side when training starts, by which point the model already exists — a mismatch there still leaves that model behind, unrequested, and the error names it so it can be reviewed and deleted (models_delete)…
| Parameter | Type | Description |
|---|---|---|
dataset * | string | Dataset ref by slug, owner/slug, or a ul://owner/datasets/slug URI. |
epochs * | integer | Maximum full passes over the training set. |
gpu_type * | string | Cloud GPU type to allocate for training. |
model * | string | Existing model ref, or official YOLO base checkpoint such as yolo11n.pt or yolo11n-seg.pt. Checkpoint mode auto-creates a project model. |
project * | string | Project ref that owns the training job and resolved model. |
batch | number | Images per batch: -1 targets about 60% GPU memory, a value between 0 and 1 sets a memory fraction, and a positive integer fixes the image count. |
confirm_cost | boolean | Must be true to allow a credit-costing training run. Starting is billable immediately; the platform has no cost preview before that, so the estimated cost and remaining balance are only reported after… |
confirm_history_loss | boolean | Must be true to restart training on an existing model that already has a recorded run. Doing so replaces that model's status, epoch count, and training result history irrecoverably; the previously upl… |
imgsz | number | Target input size: square batches normally, or the long-side size with rect=true. |
name | string | Run name for callbacks. |
train_args | object | Additional YOLO training arguments passed through to the platform. epochs, imgsz, batch, and name here are silently overridden by the matching top-level input when both are set; data and model are rej… |
training_cancel
Cancel a running training job by owner/project/model, ul://owner/project/model, or slug with a project. Cancelling releases the compute instance; elapsed GPU time is still charged and the most recently uploaded checkpoint is preserved rather than discarded. This stops the job and does not delete the model.
| Parameter | Type | Description |
|---|---|---|
model * | string | Model ref by owner/project/model, ul:// URI, or slug (requires project). |
project | string | Project ref required when model is given by slug. |