Developer Tools

Roboflow MCP

Manage Roboflow computer-vision projects, datasets, images, annotation, model training, deployment, inference, workflows and devices through Roboflow's hosted MCP server.

Tools

This is a reference catalogue. Tools cannot be configured or run from this page.

  • Model evals get confusion matrix

    Get the confusion matrix for an eval. Returns ``{split, confidenceThreshold, classes, matrix}`` where ``matrix[actual][predicted]`` is the count.

  • Model evals get image predictions

    Get per-image prediction stats for an eval (paginated). Returns ``{split, confidenceThreshold, totalImages, offset, limit, images: [...]}``. Each image carries TP/FP/FN counts, precision, recall, F1, the assigned cluster, and a per-class confusion list. Select by image_name or eval_input_id to inspect a specific input. Set include_geometry to include its saved predictions, ground truth, image URL, coordinate space, and media evidence when available. If one image has multiple evaluated inputs, use eval_input_id and split to select one; geometry requests with multiple matches return 400.

  • Model evals get map results

    Get per-split mAP results for an eval. Returns ``{splits: {train, valid, test}}`` where each split has overall ``map50`` / ``map50_95`` / ``map75``, ``byObjectSize`` (small/medium/large), and ``perClass`` breakdowns.

  • Model evals get performance by class

    Get per-class performance metrics for a single split. Returns ``{split, classes: [{className, map50, map50_95, map75, precision, recall, f1, optimalThreshold}, ...]}``.

  • Model evals get recommendations

    Get the LLM-generated recommendations for an eval, if available. Returns ``{generated: false}`` until the recommendations job has run. When ready, returns ``{generated: true, generatedAt, recommendations: {summary, items}}``.

  • Model evals get vector analysis

    Get UMAP + HDBSCAN clustering of image embeddings for an eval. Returns ``{clustering, preprocessing, clusters: [...]}`` — useful for finding pockets of poor-performing images. Each cluster carries ``numImages``, ``splitDistribution``, F1 stats, and sample image refs.

  • Model evals list

    List model evaluations in the current workspace. Returns ``{evals: [...]}`` where each entry has evalId, status, project (URL slug), versionId, modelId, modelUrl, and createdAt. Use ``model_evals_get`` for the headline ``summary`` (mAP/precision/recall) on a specific eval. Two model identifiers are returned and they are NOT interchangeable: ``modelId`` is the eval's internal id (the ``model_id`` filter key here); ``modelUrl`` is the resolvable public id that ``models_get`` / ``models_infer`` accept and that joins to ``models_list[].url`` and ``trainings_get`` results. Filters combine: ``project_id`` + ``version_number`` returns the evals of that project version, ``model_id`` + ``version_number`` the evals of that model on that version. The version is matched within the newest 200 evals of the project or model, the most the platform returns per call.

  • Models custom weights upload guide

    Get the recipe for uploading locally trained model weights to Roboflow. This tool never uploads anything. Weights packaging must run on the machine that has the checkpoint (it reads the weights file and needs torch), and this MCP server cannot read the user's filesystem. Calling it returns the client-side recipe: how to run the upload with the Roboflow Python SDK on the machine where the weights live. Pass whatever arguments you already know; the response names the matching upload mode and echoes them back for the SDK call. Do not infer the target project, version, or model name from the checkpoint; those come from the user.

  • Models get

    Get details for a trained model in the current workspace.

  • Models infer

    Run hosted inference on an image using a trained model or RF-DETR Semantic pretrain. RF-DETR Semantic returns per-pixel scene classes from ADE20K's 150 classes, not separate object instances. Its six size aliases resolve to ADE20K model IDs. Other two-segment IDs pass through unchanged; the inference server resolves their model and task without project-type derivation. Returns JSON predictions only. For visualized/annotated images, run a Workflow with a visualization block instead.

  • Models list

    List trained models associated with a project. Returns ``{models, total, returned, limit, offset, truncated}``. Each row carries `metrics`, and (for NAS children) `nasFamily` and `group`, plus a derived `recommended` flag when the model is the recommended pick for any (metric, hardware) bucket on its parent version. `metrics` is sparse and its keys depend on the run. An ordinary training carries accuracy only, e.g. {map50, precision, recall, f1}. `latency` and `paretoOptimalFor` come from NAS mining, so they appear on NAS children and not on ordinary trainings; `metrics` may also be null. Do not assume a key is present - read what is there. Two shapes of NAS child are in the data. Newer runs report `latency` as a map keyed by target hardware (e.g. {"AI1": 6.69, "T4": 1.98}) and `paretoOptimalFor` entries as "<hardware>:<metric>" (e.g. "T4:map_50_95"). Older runs report a scalar `latency` with a sibling `metrics.hardware` (e.g. "gpu") and bare-metric `paretoOptimalFor` entries (e.g. "map_50"). Branch on the type of `latency` rather than indexing it. `recommended` is the flattened union of the platform's per-hardware winners, so more than one row in a group carries it and it cannot tell you which hardware a child won; `paretoOptimalFor` is frontier membership, not the recommendation. The authoritative map, `recommendedByHardware`, exists only on legacy version-based summaries and is absent from modern MMPV runs. NAS children with `nasFamily: "baseline"` are stock RF-DETR models trained on the same data; they carry no `paretoOptimalFor` and are never `recommended`. A project with NAS runs can have hundreds of models, so the result is always bounded: filter with `version_number` and/or `group=<modelGroup>` (the canonical "list NAS models per run" path), and page with `limit`/`offset`. `truncated` is true when more rows remain past the page.

  • Models star nas

    Star or unstar a NAS-trained model. NAS-only by design — the server rejects non-NAS modelTypes with a ``MODEL_NOT_NAS`` error. Starring triggers TRT compilation for the model's recommended hardware so the model becomes deployable as an edge target.

  • Models weights download url

    Get a short-lived download URL for an existing trained model checkpoint. Returns `download_url`, valid for 15 minutes. The platform enforces the caller's permissions, the workspace's weights-download entitlement, and artifact availability. Prefer an exact model slug: a numeric version can resolve its legacy alias rather than a particular model from that version. This retrieves raw trained weights, not a dataset export or a Core ML, ONNX, or TensorRT conversion. For offline iOS deployment, converting the checkpoint and integrating it into the app are separate steps. The tool does not train, convert, run inference, or download the file itself. The platform records a model-download event when issuing the URL. Treat the temporary URL as private and do not publish it.

  • Preview job cancel

    Stop a preview job. It cannot resume; a new run starts a new job.

  • Preview job get

    Read a preview job with its segments and results; every call signs its urls again.

  • Preview media refresh

    A fresh signed url for the preview's source video, when the widget reopens after it expired.

  • Preview rerun

    Run a preview again from its rerunArguments, with the classes the user changed.

  • Project deployment configure active learning

    Configure how a Project Deployment collects Active Learning data.

  • Project deployment disable active learning

    Pause Active Learning collection for a Project Deployment.

  • Project deployment enable active learning

    Enable Active Learning for a Project Deployment.

PreviousPage 9 / 18Next