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.

  • Batch processing staging batch files list

    List a staged batch's files with time-limited signed download URLs. Use this to download the results of a finished job (the ``<job-id>-export`` batch). Job-result batches are multipart: when the batch has exactly one part it is selected automatically (and echoed as ``partName``); with several parts, pass ``part_name`` (see ``batch_processing_staging_batch_get`` parts). Download URLs expire after ~24h; archives (.tar/.tar.gz) must be unpacked after download. Returns ``{files, returned, nextPageToken?, truncated, partName?}``. Results are returned in whole upstream pages so ``nextPageToken`` always continues exactly where ``files`` ended. Listings are capped at 10,000 entries per call; past that, pull results with the inference-cli's ``export-batch`` (resumable) instead.

  • Batch processing staging batch get

    Get a staged batch's metadata, file count, and ingest progress. Sharded, cloud-storage, and references ingests register files asynchronously: the count stays low until ingest workers finish. Poll this until ``ingest.pending`` is false and ``ingest.failed`` is false before starting a job. For multipart batches (e.g. job results) the response includes ``parts``.

  • Cloud streaming results subscribe

    Read the current job state and, when available, a live results feed grant. This call does not start or keep a job alive. With `retryAfterSeconds`, call this tool again after that delay. With `ended: true`, stop reading this job; `successorJobId`, when present, can be subscribed to instead. A feed response has `eventsUrl`, `pollUrl`, `accessToken`, and `accessTokenExpiresAt` (epoch milliseconds). Keep the results-only token private. Send it as a Bearer token to either feed, or add `access_token` to the WebSocket URL when headers are unavailable. It expires after ten minutes or when the execution ends. After a feed closes or returns 401/404, subscribe again for the current claim. `executionGeneration` can change between claims: discard the previous WebSocket `after` cursor or poll `cursor` when it changes. WebSocket reconnects within the same generation may use `after=<last seq received>`; polling uses `cursor=<next seq>`. Feeds are not durable history.

  • Cloud streams job cancel

    Request cancellation of a job in the connected workspace. Poll cloud_streams_job_get until it has stopped.

  • Cloud streams job create

    Run a Workflow on the workspace's own cloud camera. Jobs incur charges and can execute Workflow sinks. Start with the connected OAuth account or a workspace API key; the user's current access continues to govern OAuth jobs. Never ask users to paste a key or secret into chat. A new start runs alongside existing jobs by default. To switch the Workflow on a camera, set replace_deployments only when the user explicitly wants to replace its other deployments. The platform starts the new job first, then requests stops of all older deployments on that camera; they may briefly run and bill together. Check replacedJobIds, stillRunningJobIds, otherDeploymentJobIds and replacementIncomplete, then poll job status. Existing input values are not copied; specify non-secret inputs needed by the new job. Retrying the same request and idempotency key completes an interrupted replace.

  • Cloud streams job get

    Read a workspace job's current status. Past history remains available after a shared source is withdrawn.

  • Cloud streams jobs list

    List jobs owned by the connected workspace, including jobs on its own cameras and past shared-source jobs after publication withdrawal. Use sharedSource to identify shared sources.

  • Cloud streams shared job create

    Run a saved Workflow on a shared source. Jobs, execution credentials, results and charges belong to the connected workspace. Starting jobs on shared sources requires an API key with video-inference-job:read, video-inference-job:create, workflow:read and model:infer; OAuth connections can start jobs on their own workspace's cameras instead. Withdrawal stops running jobs, but past job history remains readable.

  • Cloud streams shared source preview

    Request a raw preview of a shared source. The returned WHEP URL contains a short-lived, single-reader grant. Pass it only to a playback client; never quote, summarize, log, or persist it in conversation. Request a new preview when needed. Withdrawal ends existing previews.

  • Cloud streams shared sources list

    List public cameras available to the connected workspace. A source may go offline or be withdrawn at any time. Shared sources cannot be edited or republished by consumers.

  • Cloud streams sources list

    List this workspace's own cloud cameras and sources, without stream credentials.

  • Connect cloud storage

    Connect a cloud bucket end to end in one call: reuse or create a credential, create the datasource, validate it, and start the first mirror run. A run can overwrite imported images or metadata and remove mirrored images whose source disappeared. Alternative: to only run a model/Workflow over the files and get results out, WITHOUT importing them into Roboflow, use batch processing instead (start with batch_processing_guide). Mirroring also composes with it: imported files become Asset Library images, and bulk predictions over them run as Asset Library jobs (batch_processing_asset_library_job_create). On datasources with upload screening, new images and overwrites with changed pixels are held until an On Upload Workflow allows or redacts them. A completed mirror run does not mean held images are available as Sources. A changed-pixel overwrite detaches the prior Source from the bucket path, which can remain without a Source if the replacement is rejected. On Sync waits for eligible new-image verdicts and search indexing. It does not wait for held overwrites and can fail if no eligible images are admitted. Drive the conversation in this order, and do NOT bring up credentials until the bucket is settled: 1. Pick the bucket FIRST. Ask the user which bucket to connect, confirm its region, and settle which objects to mirror (mirror_configs). Don't mention credentials yet. 2. Credential, only after the bucket is chosen. Prefer reusing one the user already has (check credentials_list and pass its credential_id). Only if none fits, create a new one dedicated to Roboflow by passing credential_name + credential_type. Secrets are never entered in chat: creating a new credential returns manual_entry_required with a url to the Roboflow app, a docs_url, and (for AWS) an aws_setup deep-link. A dedicated, least-privilege credential scoped to this bucket is recommended over reusing personal keys (IAM user with read-only or bucket-scoped access, or an IAM role that trusts Roboflow via AssumeRole). 3. Call this once with the bucket and credential to create, validate, and (when trigger is true) run it. AWS/S3 assisted setup: use the bucket and profile chosen by the user. Only query that account for details needed to configure the selected bucket. - Bucket: Ask the user which bucket to connect. Only inspect that bucket's object paths when the user asks for help choosing mirror rules; do not enumerate other profiles, buckets, or their contents. - Region: For AWS/S3, look up the chosen bucket's region with `aws s3api get-bucket-location --bucket <bucket-name> --profile <profile>` if the user wants assistance (`null`/`None` means us-east-1). Use the AWS profile the user selected. If it is unclear which profile to use, ask the user before querying their AWS account. These commands only read non-secret metadata for the selected account and bucket; never read ~/.aws/credentials or pass secret values yourself. - Credential: When a new AWS credential must be created, before handing off to the Roboflow form: resolve the AWS account for the profile in use with `aws sts get-caller-identity --profile <p>` (reads non-secret identity only), then give the user an account-scoped console deep-link so they land in the right account. Sign in at https://<accountId>.signin.aws.amazon.com/console, then for an IAM credential create an IAM user at https://console.aws.amazon.com/iam/home#/users/create, or for an AssumeRole credential create an IAM role at https://console.aws.amazon.com/iam/home#/roles/create (trusting the Roboflow principal from the prerequisites docs). Collect the resulting access keys (IAM) or role ARN (AssumeRole) and enter them in the Roboflow form. The mirror run only starts when trigger is true AND validation reports no errors; triggering consumes credits. Returns {credentialId, credentialCreated, datasourceId, validation, triggered, batchIds?}. If a new credential was created but a later step failed, a partial status is returned with the credentialId so it can be cleaned up with credentials_delete.

  • Credentials delete

    Delete a credential. Datasources still referencing it will fail to run.

  • Credentials list

    List cloud-storage credentials in the workspace. Secrets are masked server-side, so only non-sensitive fields (id, type, name, description) come back. Returns ``{ credentials }``.

  • Datasets rebalance splits

    Enqueue an async rebalance of a project's train/valid/test splits. Use this to fix a starved or empty split — an empty test split blocks training, and this is the only way to move images between splits after upload. `train`, `valid` and `test` are relative weights, not percentages: they do not have to sum to 100, and each must be a whole number (70, not 70.5). `mode="rebalance"` moves the fewest images needed to reach the ratios; `mode="shuffle"` reassigns every image. For anomaly detection, train on normal images only. Keep normal images in validation for threshold calibration; put anomalous images in validation or test, never train. Rebalance each class separately with `classes=["normal"]` or `classes=["anomalous"]` and suitable weights. Do not apply the default whole-Dataset 70/20/10 rebalance to an anomaly project: it can move anomalous images into train. 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`).

  • Datasource create

    Create a datasource that mirrors a cloud bucket into your workspace. Returns the created datasource {id}. Nothing is mirrored until you call datasource_trigger (or a schedule fires). A run may overwrite imported images or metadata and remove mirrored images whose source disappears. Alternative: to only run a model/Workflow over the files and get results out, WITHOUT importing them into Roboflow, use batch processing instead (start with batch_processing_guide). Mirroring also composes with it: imported files become Asset Library images, and bulk predictions over them run as Asset Library jobs (batch_processing_asset_library_job_create). On datasources with upload screening, new images and overwrites with changed pixels are held until an On Upload Workflow allows or redacts them. A completed mirror run does not mean held images are available as Sources. A changed-pixel overwrite detaches the prior Source from the bucket path, which can remain without a Source if the replacement is rejected. On Sync waits for eligible new-image verdicts and search indexing. It does not wait for held overwrites and can fail if no eligible images are admitted. AWS/S3 assisted setup: use the bucket and profile chosen by the user. Only query that account for details needed to configure the selected bucket. - Bucket: Ask the user which bucket to connect. Only inspect that bucket's object paths when the user asks for help choosing mirror rules; do not enumerate other profiles, buckets, or their contents. - Region: For AWS/S3, look up the chosen bucket's region with `aws s3api get-bucket-location --bucket <bucket-name> --profile <profile>` if the user wants assistance (`null`/`None` means us-east-1). Use the AWS profile the user selected. If it is unclear which profile to use, ask the user before querying their AWS account. These commands only read non-secret metadata for the selected account and bucket; never read ~/.aws/credentials or pass secret values yourself. - Credential: When a new AWS credential must be created, before handing off to the Roboflow form: resolve the AWS account for the profile in use with `aws sts get-caller-identity --profile <p>` (reads non-secret identity only), then give the user an account-scoped console deep-link so they land in the right account. Sign in at https://<accountId>.signin.aws.amazon.com/console, then for an IAM credential create an IAM user at https://console.aws.amazon.com/iam/home#/users/create, or for an AssumeRole credential create an IAM role at https://console.aws.amazon.com/iam/home#/roles/create (trusting the Roboflow principal from the prerequisites docs). Collect the resulting access keys (IAM) or role ARN (AssumeRole) and enter them in the Roboflow form.

  • Datasource delete

    Delete a datasource configuration. Does not delete already-mirrored images.

  • Datasource get

    Get full detail for a single datasource, including its bucket, mirror rules, and latest job summary.

  • Datasource job get

    Get the status and statistics of a single datasource mirror run. Poll this with a ``batchId`` from ``datasource_trigger`` to track a run. Returns the job's ``status`` (running/completed/failed), per-stage ``counters`` (enqueued/completed/failed), any ``errors``, and timestamps (``startedAt``/``completedAt``/``lastSyncedAt``). In ``counters.INGEST_FILE.meta``, ``imageHeldForScreening`` counts new images and changed-pixel overwrites held for screening. ``imageScreeningSkipped`` counts object versions not downloaded because an earlier sync held them and they are still pending or were rejected. These are not Source counts: a completed mirror can precede screening verdicts and Source creation.

  • Datasources list

    List datasource (cloud-bucket mirror) configurations in the workspace. Returns ``{ datasources }`` where each entry is trimmed to ``{id, name, credentialId, validated, requireVpce, latestJob}``. Use ``datasource_get`` for a single config's full detail.

PreviousPage 4 / 18Next