Skip to main content

Model Context Protocol server for AlbumentationsX augmentation previews, validation, and segmentation review.

Project description

AlbumentationsX MCP

Model Context Protocol server for AlbumentationsX: transform discovery, pipeline validation, deterministic previews, feedback loops, and reproducible exports for computer vision.

CI PyPI Python MCP Registry

Purpose

AlbumentationsX MCP is a thin, typed MCP layer around existing AlbumentationsX primitives. It helps MCP hosts:

  • discover transforms and schemas from albu-spec;
  • recommend and validate augmentation pipelines;
  • render local batch previews and compare preview runs;
  • record concrete feedback such as too_noisy:high;
  • export accepted pipelines and review reports.

The server does not execute arbitrary Python, fetch remote images, overwrite datasets, or train models. Local preview access is bounded by --allowed-root, and generated artifacts are written under --artifact-root.

Quick Start

Run the published server:

uvx --from albumentationsx-mcp albumentationsx-mcp

For local development:

uv sync --all-extras --dev
uv run albumentationsx-mcp

For preview work, scope filesystem access explicitly:

uvx --from albumentationsx-mcp albumentationsx-mcp \
  --allowed-root /absolute/path/to/images \
  --artifact-root /absolute/path/to/albu-artifacts

Copyable host snippets are in examples. Full setup is in docs/INSTALL.md; the guided trial is docs/FIRST_10_MINUTES.md.

Host Workflow

After connecting an MCP host:

  1. Read albumentationsx://examples/client-smoke.
  2. Call run_host_smoke_check.
  3. Continue only when preview_ready is true.
  4. For a real folder, call plan_dataset_onboarding to sample local images and detect common dataset layouts safely.
  5. Replace or reuse the paths in preview_request_template.request.
  6. Call validate_preview_request before rendering user-provided paths.
  7. Call render_preview_batch on a small local image set.
  8. Inspect the contact sheet, then use adjust_pipeline, compare_preview_runs, and export_pipeline.

If preview setup fails, read albumentationsx://diagnostics/guide and call diagnose_environment. Troubleshooting details and remediation_actions are documented in docs/USAGE.md and docs/INSTALL.md.

Capabilities

  • Transform search and schema inspection.
  • Recipe and pipeline recommendation for classification, detection, segmentation, OCR, and balanced workflows.
  • Pipeline validation and explanation before rendering.
  • Preview request validation for missing files, outside-root paths, masks, and annotation counts.
  • Read-only dataset onboarding that detects common layouts and builds bbox/mask-aware first-preview templates.
  • Deterministic single-image and batch previews with contact sheets.
  • Preview comparison with quality_summary and suggested feedback tags.
  • Concrete preview feedback, interactive tuning sessions, ranking, dataset scoring, and visual reports.
  • Agent workflow resources, prompts, smoke checks, diagnostics, and release-safe contract snapshots.

The public MCP surface is kept stable through reviewed contract snapshots. Compatibility rules are in docs/COMPATIBILITY.md.

The community guide was accepted upstream in AlbumentationsX#289; source: docs/integrations/mcp.md.

Documentation

Operational scripts live in scripts and are covered by the verification commands below.

Verification

uv run pytest
uv run ruff check .
uv run ruff format --check .
uv run ty check
uv run python scripts/validate_host_manual_runs.py
uv run python scripts/check_host_acceptance_report.py
uv run python scripts/check_first_10_minutes.py
uv run python scripts/check_host_proof_sprint.py
uv run python scripts/check_contract_snapshots.py
uv run python scripts/check_demo_assets.py --output-dir docs/assets/demo --check
uv run python scripts/check_release_readiness.py
uv run python scripts/run_golden_evals.py
uv run python scripts/check_mcp_registry_status.py
uv run python scripts/check_directory_presence.py
uv build

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

albumentationsx_mcp-1.15.0.tar.gz (417.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

albumentationsx_mcp-1.15.0-py3-none-any.whl (84.6 kB view details)

Uploaded Python 3

File details

Details for the file albumentationsx_mcp-1.15.0.tar.gz.

File metadata

  • Download URL: albumentationsx_mcp-1.15.0.tar.gz
  • Upload date:
  • Size: 417.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for albumentationsx_mcp-1.15.0.tar.gz
Algorithm Hash digest
SHA256 a2db64dc78f7e5fc7b8715a136e78d53d340cd489fd490986b8530ccebad6d30
MD5 a3ee5660273923198ad2c9f95e830c7e
BLAKE2b-256 54fd9495699a474fa9ac21ccfc4184d6fa0073cb076271af6aad5707ba2e689e

See more details on using hashes here.

File details

Details for the file albumentationsx_mcp-1.15.0-py3-none-any.whl.

File metadata

  • Download URL: albumentationsx_mcp-1.15.0-py3-none-any.whl
  • Upload date:
  • Size: 84.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for albumentationsx_mcp-1.15.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9de761a3e7ff11b835500c1a457bb1c418d8ece0f236328aa463cf4989f7ebf5
MD5 eb9d389f8cf70f946305b40c89c84007
BLAKE2b-256 6408cf12ba173660f5196bb7750b9198565e20e690eb5ed55990f9a405d87eb3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page