Skip to main content

MCP-compliant image augmentation server using Albumentations

Project description

🚧 Work in Progress (Beta Testing ongoing)

Albumentations-MCP

Natural language image augmentation via MCP protocol. Transform images using plain English with this MCP-compliant server built on Albumentations.

Example: "add blur and rotate 15 degrees" → Applies GaussianBlur + Rotate transforms automatically

Quick Start

# Install from PyPI
pip install albumentations-mcp

# Run as MCP server
uvx albumentations-mcp

MCP Client Setup

Claude Desktop

Copy claude-desktop-config.json to ~/.claude_desktop_config.json

Or add manually:

{
  "mcpServers": {
    "albumentations": {
      "command": "uvx",
      "args": ["albumentations-mcp"],
      "env": {
        "MCP_LOG_LEVEL": "INFO",
        "OUTPUT_DIR": "./outputs",
        "ENABLE_VISION_VERIFICATION": "true",
        "DEFAULT_SEED": "42"
      }
    }
  }
}

Kiro IDE

Copy kiro-mcp-config.json to .kiro/settings/mcp.json

Or add manually:

{
  "mcpServers": {
    "albumentations": {
      "command": "uvx",
      "args": ["albumentations-mcp"],
      "env": {
        "MCP_LOG_LEVEL": "INFO",
        "OUTPUT_DIR": "./outputs",
        "ENABLE_VISION_VERIFICATION": "true",
        "DEFAULT_SEED": "42"
      },
      "disabled": false,
      "autoApprove": ["augment_image", "list_available_transforms"]
    }
  }
}

Available Tools

  • augment_image - Apply augmentations using natural language or presets
  • list_available_transforms - Get supported transforms and parameters
  • validate_prompt - Test prompts without processing images
  • list_available_presets - Get available preset configurations
  • set_default_seed - Set global seed for reproducible results
  • get_pipeline_status - Check pipeline health and configuration

Available Prompts

  • compose_preset - Generate augmentation policies from presets with optional tweaks
  • explain_effects - Analyze pipeline effects in plain English
  • augmentation_parser - Parse natural language to structured transforms
  • vision_verification - Compare original and augmented images
  • error_handler - Generate user-friendly error messages and recovery suggestions

Available Resources

  • transforms_guide - Complete transform documentation with parameters and ranges
  • policy_presets - Built-in preset configurations (segmentation, portrait, lowlight)
  • available_transforms_examples - Usage examples and patterns organized by categories
  • preset_pipelines_best_practices - Best practices guide for augmentation workflows
  • troubleshooting_common_issues - Common issues, solutions, and diagnostic steps

Usage Examples

# Simple augmentation
augment_image(
    image_path="photo.jpg",
    prompt="add blur and rotate 15 degrees"
)

# Using presets
augment_image(
    image_path="dataset/image.jpg",
    preset="segmentation"
)

# Test prompts
validate_prompt(prompt="increase brightness and add noise")

Features

  • Natural Language Processing - Convert English descriptions to transforms
  • Preset Pipelines - Pre-configured transforms for common use cases
  • Reproducible Results - Seeding support for consistent outputs
  • MCP Protocol Compliant - Full MCP implementation with tools, prompts, and resources
  • Comprehensive Documentation - Built-in guides, examples, and troubleshooting resources
  • Production Ready - Comprehensive testing, error handling, and structured logging

Documentation

Configuration Files

License

MIT License - see LICENSE for details.

Contact: ramsi.kalia@gmail.com

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

albumentations_mcp-0.1.0b4.tar.gz (397.5 kB view details)

Uploaded Source

Built Distribution

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

albumentations_mcp-0.1.0b4-py3-none-any.whl (107.7 kB view details)

Uploaded Python 3

File details

Details for the file albumentations_mcp-0.1.0b4.tar.gz.

File metadata

  • Download URL: albumentations_mcp-0.1.0b4.tar.gz
  • Upload date:
  • Size: 397.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for albumentations_mcp-0.1.0b4.tar.gz
Algorithm Hash digest
SHA256 2a4fdac61d977cec0d4421cd4fb1179c104759185a0c307770acc613bc58f9c9
MD5 b94e9ec722d4af465ff90727c5d3e123
BLAKE2b-256 423294db6b1550c8ee83fe5979501dea99d16fa3aa76915c68010a82592d0bef

See more details on using hashes here.

File details

Details for the file albumentations_mcp-0.1.0b4-py3-none-any.whl.

File metadata

File hashes

Hashes for albumentations_mcp-0.1.0b4-py3-none-any.whl
Algorithm Hash digest
SHA256 8ea402ece52b29ccd3abf3a570e7a5bb0552949224949cea0b262dcaddee2efe
MD5 c590b3209a348c9ac0652e3d8969a79f
BLAKE2b-256 6c03fe10ae55128fd338fd489d1adca604fccc673de59fc396ee0029bdc91bdf

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