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.

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

  • Project deployment preview

    Show the project's live endpoint on one workspace image or video, in an interactive player. Use this when the user wants to see what the project's model finds on their own media. Each call runs inference and spends credits; a video runs as a job on a clip of 60 s at most. Only the counts per class come back here; the user filters by confidence and class in the widget, and on SAM 3 projects can change the classes and run again there. A project that never had an endpoint gets one (its base workflow) before the preview runs. For usage guidance, read skill://roboflow-apps/model-preview/SKILL.md.

  • Project deployment run

    Run inference through the project's stable live endpoint.

  • Projects create

    Create a new computer vision project, including Action Recognition and Anomaly Detection. Action Recognition projects are video-only. Anomaly Detection requires workspace enablement and creates fixed, single-label normal/anomalous classes. Active anomaly detection and ordinary projects cannot use the same annotation group. The annotation group is not private to the project: projects that use the same group share annotations on the images they have in common. If an active project of the same kind already uses the name, the new project silently joins that group. Projects in the Trash are excluded from the kind check, so a new project can also join a group used by a trashed project of either kind. Images uploaded to the new project that are already stored in the workspace come with their annotations from that group, and uploading them with annotations fails with "Image was already annotated" unless image_upload's annotation_overwrite is set. Unless the user wants shared annotations, check the annotation values from projects_list and trash_list first and pick a name no other project uses. Returns the created project's id, name, type, and url.

  • Projects fork

    Enqueue an async fork of a public Universe project into your workspace. Provide either a Universe `url` or `source_project`. Returns the platform's 202 payload verbatim — at minimum `{ taskId, url }`, where `url` points at the async-task polling endpoint. Poll completion with `async_tasks_get(task_id=taskId)` every 5 seconds until `status` is terminal (`completed` or `failed`). Processing may take up to 30 seconds to start.

  • Projects health

    Get dataset health check for a project. Running this for the first time or with regenerate=True might take up to a couple minutes. Returns class balance, image quality issues, annotation statistics, and other dataset health metrics.

  • Streams camera url add

    Save a public camera URL and start its connection test after the user confirms access.

  • Streams connect

    Connect a phone, webcam or network camera in the live stream app. Use this when the user wants to connect a camera or run a Workflow on a live stream. Call without arguments to open a new camera session; no internal IDs are required. Optionally supply a stable request_id for retry-safe creation or select a known source_id. Calls without request_id each create a new session. Reopen an existing session with stream_session_id instead (session_id remains a supported alias). The app offers phone/webcam pairing and authorized camera setup for connector USB/RTSP and direct RTMP publishers. Camera permission and connection happen in the app; never ask for camera credentials in chat. If no Workflow or detection goal is known, ask what the user wants to detect or invite them to choose a saved Workflow in the card. Do not leave them at a bare camera feed. When the connected source and Workflow are known, call streams_preview in the same interaction. No Workflow editor or additional "start" turn is required. Read skill://roboflow-apps/stream-preview/SKILL.md for usage guidance.

  • Streams input offer

    Negotiate raw camera playback through the authorized platform signaling proxy. The answer and connection handle are app metadata only. Source media keys and relay session URLs remain server-side. This does not start Workflow processing.

  • Streams phone pair

    Create a short-lived phone QR or browser webcam pairing link for this member.

  • Streams rtsp add

    Add a camera from the in-app form to a Roboflow connector.

  • Survey feedback submit

    Record the user's explicit answer to an offered survey question using its request_id. For a chat reply, submit Yes or No only when the user answers that question. For No, include their explanation. Use dismiss only for an explicit dismissal.

  • Trainings create

    Create a training on a dataset version. A dataset version must exist before training. Reuse an existing ready version when its images, labels, and splits match the requested data; check it with versions_get. Generate a new version only when the data or version-level transforms need to change. The MCP versions_generate tool uses the REST generation route: it still applies version preprocessing and augmentation and has no training-purpose option. A modern (MMPV) version may own MANY trainings — concurrent and repeated runs are allowed. Legacy single-model-per-version (SMPV) versions already hold their one model and reject a second training with a 409; generate a fresh version to train more models. To inspect a version's trainings, use trainings_list; to monitor a specific run, use trainings_get with the returned training_id. For Action Recognition, pass model_type='cosmos3-edge' or 'vjepa2-1-vitb-384'. Their video-coco export is prepared by this call. The returned trainingId identifies a background v2 run; poll trainings_get with it until the run finishes. A train_recipe is optional and is sent only when you supply one. For the multi-stage keypoint architecture, pass model_type= 'rfdetr-keypoint-two-stage' and configure detector and keypointHead in stages. Each stage has its own modelType and optional checkpoint, hyperparameters, and trainRecipe. Recipe lookup is limited to the project task, so use the detector's defaults unless you already have a compatible recipe. Set epochs within each stage's hyperparameters or recipe. Top-level epochs and train_recipe are invalid for this architecture. This architecture is currently enabled only on staging for eligible workspaces; platform availability and validation errors are authoritative. Optional trt_compilation enables paid Jetson TensorRT compilation for this run using current target IDs and pricing.trainingId from trt_fleet_settings_get. Enabling requires model:compile in addition to training-job:create, version:read, and version:export, and a workspace-wide API key when using a key. Ordinary training uses version:read to check readiness and version:export to prepare the export. Review the maximum reservation and obtain the user's approval before enabling. Pricing or target profile changes require fresh consent; inspect trt_fleet_status after training for the compilation result. MODEL CHOICE: for object detection and instance segmentation, prefer a NAS parent over a single named architecture: searching the architecture space against this dataset usually beats hand-tuning one. See the model_type description for ids and prerequisites. To customize model-specific preprocessing, online augmentation, or hyperparameters without changing the version, call trainings_describe_recipe FIRST, edit its ``template`` (set ``template["hyperparameters"]``; set supported ``online_preprocessing`` and ``online_augmentation`` steps, with augmentation steps as ``{name, params: {...}}`` dicts), and pass the whole dict as train_recipe. Recipe hyperparameters are sparse: keys you leave out keep their server-side defaults, which are the tuned values, so omitting a key is the right default, not a missed opportunity. Set a knob when you have a specific reason to move it, not to explore. Recipe training requires platform recipe access and an enabled runtime; trainings_describe_recipe reports their availability. COMPARING ARCHITECTURES: use the same ready MMPV version for each candidate. Agree with the user whether to run the comparison in parallel or sequentially, then launch one trainings_create per candidate and retain each returned trainingId. MMPV versions allow concurrent trainings. Include a NAS parent whenever its prerequisites are met, e.g. 'rfdetr-medium' vs 'yolo26m' vs 'rfdetr-nas-parent'. A NAS arm returns a frontier of models rather than one. Resolve it with trainings_list -> modelGroup -> models_list(group=<modelGroup>), whose docstring describes the per-child fields; use trainings_list rather than trainings_get, which inlines every child and defeats the paging. Which child represents that arm depends on the question being asked, and the obvious reading of the `recommended` flag is wrong - read the training-and-evaluation skill before comparing arms or deploying. This tool checks that the dataset version has finished generating and that the required export is ready before starting, and waits up to about 20 seconds for the export. If either is still pending it does NOT start a training: it returns status 'waiting_for_version' or 'waiting_for_export' with training_started false, no trainingId, the progress, and retry_after_seconds. That is expected, not a failure: call trainings_create again with the same arguments after that delay, and keep retrying until it returns a trainingId. Version generation can take up to about an hour on large datasets and reports 0 progress for most of it. Training runs in the background on Roboflow servers.

  • Trt fleet quote

    Quote compilation for a trained model before reserving credits. Requires a sealed trusted FP32 ONNX source. The quote shows the maximum credit reservation and hourly rate. Only successful native compilation time is charged; unused reservation is released. The quote ID reflects the source, target profiles, and price. If any changes, request returns a conflict; fetch a new quote and obtain approval for its terms.

  • Trt fleet request

    Reserve credits and enqueue paid compilation after the user approves the quote. Repeating the same request reuses matching jobs. A changed quote returns a conflict; quote again before retrying. A queued job can wait for a build device and expires after 24 hours without a charge. Poll trt_fleet_status for each variant's outcome; enqueueing is not success.

  • Versions export

    Check or trigger a dataset export for a version. Public projects can be exported by their full workspace/project ID without forking. Canonical ownership and visibility checks additionally require workspace:read and project:read. Private projects remain restricted to the connected workspace. Generation must finish first: use versions_get to check ``generating`` and poll roughly once a minute while it is true. An export request made during generation is rejected and does not queue the export.

  • Versions generate

    Create a new dataset version with optional preprocessing and augmentation. Reuse an existing ready version when its images, labels, and splits match the training request. Use trainings_describe_recipe and trainings_create for model-specific online preprocessing and augmentation. This tool uses the REST generation route, which still applies version transforms and has no training-purpose option. Preprocessing and augmentation choices are user decisions: confirm the desired options with the user before generating rather than assuming defaults. Pass each option in the shape this tool's schema shows. The platform rejects its internal saved shape (``{"enabled": true, ...}``, ``remap.labels``, ``crop.percent``) and the step lists that trainings_create recipes use. Generation continues after this tool returns and can take several minutes. While ``generating`` is true, poll versions_get roughly once a minute before starting training or requesting an export. The export request is not queued while generation is in progress. Returns the version number, image count, split sizes, and readiness fields.

  • Video pull create

    Add a camera and start its connection test. Poll video_pull_get until testing ends. Choose either a URL or a provider listed by video_pull_capabilities. The returned idempotencyKey is needed to safely retry a lost response. Camera URL fields are omitted from results because they may carry secrets.

  • Video upload

    Prepare a signed URL for uploading one local video (MP4 or MOV). Set project_id for a project video, for example one you will label with video_segments_annotate. Omit it for a workspace Asset Library video to use as a direct device stream on supported edge releases or with an RTSP Simulator. Split and batch require a project. This tool does not read or upload local files: the client HTTP PUTs the bytes to the returned signed URL. Prefer image_upload_files for MP4/MOV files in video-only projects when the host supplies them in the files input, including local paths when the host transfers them. If you would have to invent download_url or file_id, use video_upload. For other project types, use video_upload because ZIP imports skip videos. Use this signed-URL fallback when the host cannot transfer the selected video or it exceeds the file transfer tool's 1 GB limit, and the client can read and PUT the file. If sandbox networking blocks storage, use host-assisted transfer for video-only projects or the web uploader instead of repeating failed PUTs. Returns signedUrl, requiredHeaders, videoId, and client-side instructions. Remaining steps after this returns (detailed in the response instructions): 1. HTTP PUT the raw video file to signedUrl with every requiredHeaders entry plus a Content-Type header. 2. Poll video_upload_status(video_id) every few seconds until status is "uploaded" or "failed". Use the videoId from the "uploaded" response. A direct edge stream uses ``asset://<finalVideoId>`` as its video_reference on supported releases. The caller needs image:read and access to the uploaded video; the device API key needs image:read and access to its folder. Direct playback needs network access, free disk space, and a video within the device cache limit (1 GiB by default). For nearby-claimed runtime keys, use the RTSP Simulator. Re-uploading identical bytes creates no new video. It updates the existing one instead: its metadata changes and tags are added; project uploads also update its split. Use the final videoId from video_upload_status. Up to 3 GB per video. Signed URL expires in 1 hour.

  • Vision events saved filter create

    Save a named filter for a use case, shared with the whole workspace. Everyone in the workspace sees it in the use case's Search tab. Needs the Create Vision Events permission. A use case holds at most 100 saved filters; a duplicate name or a full use case is refused with a 409. Returns ``{savedFilter}``.

PreviousPage 2 / 3Next