Ultralytics Platform MCP

v0.1.14
io.github.amanharshx/ultralytics-mcp Checked 5 hours ago Published 2 months ago

MCP 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.

ParameterTypeDescription
limitnumberMaximum projects to return. Omit for the server default (currently 20); the API currently accepts up to 500.
ownerstringWorkspace owner; defaults to the account owner. Takes precedence over username when both are given.
usernamestringCompatibility alias for owner.

projects_get

Get details for one project by slug, owner/slug, or project ul:// URI.

ParameterTypeDescription
project *stringProject ref by slug, owner/slug, or ul:// URI.

explore_projects

Search public projects on Ultralytics Explore.

ParameterTypeDescription
q *stringSearch term.
offsetintegerResults to skip.
sortstringSort order for results. Server-validated; for example stars or newest.

datasets_list

List datasets in your Ultralytics workspace.

ParameterTypeDescription
ownerstringWorkspace owner; defaults to the account owner. Takes precedence over username when both are given.
usernamestringCompatibility alias for owner.

datasets_get

Get details for one dataset by slug, owner/slug, or a ul://owner/datasets/slug URI.

ParameterTypeDescription
dataset *stringDataset ref by slug, owner/slug, or a ul://owner/datasets/slug URI.

explore_datasets

Search public datasets on Ultralytics Explore.

ParameterTypeDescription
q *stringSearch term.
offsetintegerResults to skip.
sortstringSort order for results. Server-validated; for example stars or newest.
taskarrayDataset 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.

ParameterTypeDescription
dataset *stringDataset ref by slug, owner/slug, or a ul://owner/datasets/slug URI.
classIdsarrayClass IDs to filter by. An empty array is treated as no filter (all images match), not as a filter that excludes everything.
hasLabelbooleanFilter by annotation state.
includeImageUrlsbooleanInclude signed full-size image URLs.
limitnumberMaximum images to return.
offsetnumberImages to skip.
searchstringImage name or metadata search.
splitstringDataset 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.

ParameterTypeDescription
dataset *stringDataset ref by slug, owner/slug, or a ul://owner/datasets/slug URI.
versionnumberSaved 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.

ParameterTypeDescription
dataset *stringDataset ref by slug, owner/slug, or a ul://owner/datasets/slug URI.
include_histogramsbooleanInclude 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.

ParameterTypeDescription
dataset *stringDataset 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.

ParameterTypeDescription
project *stringProject ref by slug, owner/slug, or ul:// URI.
limitnumberMaximum 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.

ParameterTypeDescription
model *stringModel ref by owner/project/model, ul:// URI, or slug (requires project).
projectstringProject 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.

ParameterTypeDescription
ownerstringWorkspace 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.

ParameterTypeDescription
deployment *stringDeployment 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.

ParameterTypeDescription
deployment *stringDeployment 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.

ParameterTypeDescription
deployment *stringDeployment ref by owner/deployment or a bare slug.
limitintegerMax entries to return (default 50, max 200).
pageTokenstringPagination token from a previous call's nextPageToken.
severitystringComma-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.

ParameterTypeDescription
deployment *stringDeployment ref by owner/deployment or a bare slug.
rangestringTime range, passed through unvalidated (e.g. 1h, 24h, 7d; default 24h).
sparklinebooleanWhen 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.

ParameterTypeDescription
deployment *stringDeployment ref by owner/deployment or a bare slug.
imagePath *stringLocal path to an image or video file, uploaded as-is. The server decides which formats it accepts.
confnumberConfidence threshold (0.01-1, server default applies if omitted).
imgsznumberInference image size (32-1280, server default applies if omitted).
iounumberIoU 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…

ParameterTypeDescription
model *stringModel ref by owner/project/model, ul:// URI, or slug (requires project).
history_last_nintegerLimit 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_historybooleanInclude the trainResults history (per-record epoch and metrics); omitted by default.
projectstringProject 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…

ParameterTypeDescription
model *stringModel ref by owner/project/model, ul:// URI, or slug (requires project).
history_last_nintegerLimit 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_historybooleanInclude the trainResults history (per-record epoch and metrics); omitted by default.
include_train_argsbooleanInclude the full trainArgs object; off by default because the platform returns roughly a hundred keys.
projectstringProject 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…

ParameterTypeDescription
model *stringModel ref by owner/project/model, ul:// URI, or slug (requires project).
projectstringProject ref required when model is given by slug.
typestringReturn 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.

ParameterTypeDescription
model *stringModel ref by owner/project/model, ul:// URI, or slug (requires project).
confnumberConfidence threshold (0.01-1, server default applies if omitted).
file_pathstringLocal path to an image or video file, uploaded as-is. The server decides which formats and sizes it accepts.
imgsznumberInference image size (32-1280, server default applies if omitted).
iounumberIoU threshold used for NMS (0-0.95, server default applies if omitted).
projectstringProject ref required when model is given by slug.
sourcestringImage 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.

ParameterTypeDescription
model *stringModel ref by owner/project/model, ul:// URI, or slug (requires project).
projectstringProject 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.

ParameterTypeDescription
export_id *stringExport job id.
model *stringModel ref by owner/project/model, ul:// URI, or slug (requires project).
projectstringProject 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.

ParameterTypeDescription
model *stringModel ref by owner/project/model, ul:// URI, or slug (requires project).
output_path *stringLocal destination path for downloaded model weights.
filenamestringSelect 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.
overwritebooleanOverwrite an existing file at output_path.
projectstringProject 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).

ParameterTypeDescription
name *stringDisplay name.
project *stringURL slug for the new project (distinct from the display name given by name).
descriptionstringProject description.
ownerstringWorkspace owner; defaults to the account owner.
visibilitystringVisibility "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.

ParameterTypeDescription
project *stringProject 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).

ParameterTypeDescription
dataset *stringURL slug for the new dataset (distinct from the display name given by name).
name *stringDisplay name.
task *stringDataset task. Server-validated; for example detect, segment, or classify.
classNamesarrayInitial class names for the dataset.
descriptionstringDataset description.
ownerstringWorkspace owner; defaults to the account owner.
visibilitystringVisibility "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…

ParameterTypeDescription
dataset *stringDataset ref by slug, owner/slug, or a ul://owner/datasets/slug URI.
model *stringModel ref by owner/project/model, ul:// URI, or slug (requires project).
class_mappingarrayModel 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.
confidencenumberConfidence threshold for generated labels. Omit to use the server default (currently 0.25).
confirm_costbooleanMust be true to allow a credit-costing auto-annotation run.
include_annotatedbooleanRe-label images that already carry annotations. Omit to use the server default (currently false).
iounumberIoU threshold for generated labels. Omit to use the server default (currently 0.7).
projectstringProject 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…

ParameterTypeDescription
dataset *stringDataset 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.

ParameterTypeDescription
dataset *stringDataset ref by slug, owner/slug, or a ul://owner/datasets/slug URI.
descriptionstringOptional 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…

ParameterTypeDescription
dataset *stringDataset ref by slug, owner/slug, or a ul://owner/datasets/slug URI.
version *integerVersion 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.

ParameterTypeDescription
dataset *stringDataset 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.

ParameterTypeDescription
dataset *stringDataset ref by slug, owner/slug, or a ul://owner/datasets/slug URI.
sourceUrl *stringRemote dataset archive or NDJSON URL.
conflictPolicystringConflict policy, e.g. "skip" (default), "keep_both", or "replace". Server-validated.
targetSplitstringTarget 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.

ParameterTypeDescription
dataset *stringDataset ref by slug, owner/slug, or a ul://owner/datasets/slug URI.
file_path *stringLocal path to dataset archive file.
conflictPolicystringConflict policy, e.g. "skip" (default), "keep_both", or "replace". Server-validated.
targetSplitstringTarget 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.

ParameterTypeDescription
dataset *stringDataset ref by slug, owner/slug, or a ul://owner/datasets/slug URI.
folder_path *stringLocal path to image folder.
conflictPolicystringConflict policy, e.g. "skip" (default), "keep_both", or "replace". Server-validated.
targetSplitstringTarget 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.

ParameterTypeDescription
dataset *stringDataset ref by slug, owner/slug, or a ul://owner/datasets/slug URI.
video_path *stringLocal path to source video file.
conflictPolicystringConflict policy, e.g. "skip" (default), "keep_both", or "replace". Server-validated.
fpsnumberMaximum frame extraction rate in frames per second; may be reduced to keep the total within max_frames.
max_framesintegerMaximum number of frames to extract.
targetSplitstringTarget 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.

ParameterTypeDescription
model *stringModel ref by owner/project/model, ul:// URI, or slug (requires project).
projectstringProject 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.

ParameterTypeDescription
deployment *stringDeployment 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.

ParameterTypeDescription
format *stringRequested export format (validated by the server).
model *stringModel ref by owner/project/model, ul:// URI, or slug (requires project).
confirm_costbooleanMust be true to allow a credit-costing export job.
dynamicbooleanDynamic input shapes.
gpu_typestringGPU type required for TensorRT engine exports.
imgsznumberImage size for export.
projectstringProject ref required when model is given by slug.
quantizenumber | stringExport 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.

ParameterTypeDescription
export_id *stringExport job id.
model *stringModel ref by owner/project/model, ul:// URI, or slug (requires project).
projectstringProject 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)…

ParameterTypeDescription
dataset *stringDataset ref by slug, owner/slug, or a ul://owner/datasets/slug URI.
epochs *integerMaximum full passes over the training set.
gpu_type *stringCloud GPU type to allocate for training.
model *stringExisting model ref, or official YOLO base checkpoint such as yolo11n.pt or yolo11n-seg.pt. Checkpoint mode auto-creates a project model.
project *stringProject ref that owns the training job and resolved model.
batchnumberImages 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_costbooleanMust 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_lossbooleanMust 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…
imgsznumberTarget input size: square batches normally, or the long-side size with rect=true.
namestringRun name for callbacks.
train_argsobjectAdditional 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.

ParameterTypeDescription
model *stringModel ref by owner/project/model, ul:// URI, or slug (requires project).
projectstringProject ref required when model is given by slug.