Skip to main content

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

Project description

AlbumentationsX MCP

Model Context Protocol server for AlbumentationsX: discovering transforms, validating augmentation pipelines, rendering deterministic previews, and exporting reproducible pipeline specs.

CI PyPI Python MCP Registry

Scope

This project is intentionally a thin MCP layer around existing AlbumentationsX primitives:

  • albu-spec is the source of transform metadata, parameter constraints, targets, and docstrings.
  • albumentationsx remains the execution engine for validation, serialization, and previews.
  • the MCP server exposes resources, tools, and prompts with strict typed schemas and bounded local file access.

The server does not execute arbitrary Python, fetch remote images, overwrite datasets, or train models.

Install

Run the published MCP server without cloning:

uvx --from albumentationsx-mcp albumentationsx-mcp

For local development:

uv sync --all-extras --dev

Run

uv run albumentationsx-mcp

Claude Desktop or another JSON-configured MCP host can launch a local checkout with stdio:

{
  "mcpServers": {
    "albumentationsx": {
      "command": "uv",
      "args": ["run", "albumentationsx-mcp"],
      "cwd": "/path/to/albu-mcp"
    }
  }
}

Installed from PyPI:

{
  "mcpServers": {
    "albumentationsx": {
      "command": "uvx",
      "args": ["--from", "albumentationsx-mcp", "albumentationsx-mcp"]
    }
  }
}

See examples/claude_desktop_pypi_config.json, examples/cursor_mcp_config.json, and examples/codex_mcp_config.toml for copyable host snippets.

Core Tools

  • search_transforms: search transform metadata by query, targets, type, and bbox support.
  • get_transform_schema: inspect a transform schema and constraints.
  • validate_pipeline: validate a typed pipeline spec before running it.
  • recommend_pipeline: create a conservative task preset for classification, detection, segmentation, or OCR.
  • adjust_pipeline: apply structured preview feedback such as too_noisy or too_blurry.
  • explain_pipeline: summarize likely effects, preview risks, and useful feedback tags.
  • list_feedback_tags: list the structured feedback contract used by adjust_pipeline.
  • render_preview: create deterministic local preview artifacts inside an allowed output root.
  • render_preview_batch: create deterministic multi-image preview contact sheets using the same request schema.
  • compare_preview_runs: compare two preview manifests before choosing feedback tags or exporting a pipeline.
  • list_preview_runs: list recent preview manifests recorded under the artifact root.
  • get_preview_manifest: read one recorded preview manifest by run id.
  • delete_preview_run: delete one preview run and its artifacts.
  • cleanup_preview_runs: prune older preview runs beyond a retention count.
  • export_pipeline: export a pipeline as Python, JSON, or YAML.

render_preview and render_preview_batch support optional bboxes, keypoints, and mask paths for annotation overlay previews. Preview manifests include an agent-legible summary block with input counts, seeds, transform names, artifact counts, contact sheets, and warnings.

What Changed In 0.2

  • PyPI and MCP Registry publishing are automated with release version guardrails and post-release smoke checks.
  • render_preview_batch produces batch previews and contact sheets for multi-image review.
  • compare_preview_runs summarizes baseline and candidate manifests to compare preview runs before choosing feedback tags.
  • Preview manifests include reproducibility summaries for seeds, transforms, artifact counts, and contact sheets.
  • agent workflow resources and prompts guide preview tuning, annotation review, feedback adjustment, and final export.

Demo Workflow

  1. Use recommend_pipeline and validate_pipeline for a conservative baseline.
  2. Call render_preview_batch on a small local image set.
  3. Adjust with structured feedback such as too_noisy or too_distorted.
  4. Render the candidate preview batch with the same inputs.
  5. Call compare_preview_runs before accepting the candidate.
  6. Export the accepted pipeline with export_pipeline.

See docs/USAGE.md for an end-to-end MCP host workflow, docs/DEMO.md for a generated preview comparison demo, CHANGELOG.md for release notes, docs/RELEASE.md for the package and MCP Registry release process, server.json for public discovery metadata, and evals/golden_mcp_scenarios.yaml for executable MCP scenarios.

Verification

uv run pytest
uv run ruff check .
uv run ruff format --check .
uv run ty check
uv run python scripts/run_golden_evals.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-0.2.1.tar.gz (177.8 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-0.2.1-py3-none-any.whl (29.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: albumentationsx_mcp-0.2.1.tar.gz
  • Upload date:
  • Size: 177.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","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-0.2.1.tar.gz
Algorithm Hash digest
SHA256 1b4fc88f10908510d9b62c9f3e9ad4ab45819e5febc09f9549569900d71bb764
MD5 e52dd8044e87d1848ffe435db1a0269d
BLAKE2b-256 796f9a7b86b8273cd919d22a9fb80c23a6f06f5ddce30e141d12272db21a8aad

See more details on using hashes here.

File details

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

File metadata

  • Download URL: albumentationsx_mcp-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 29.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","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-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5a5647a154b82821f227c698807dcca3e57eaede1d61daea2a2deb246779c9f9
MD5 c0c75c59daa84a6dac74562cb68dad8c
BLAKE2b-256 caed90e2ee54a7b406b99a67ed7659850ae7e5110b556e0ddd3699f42f1d53bb

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