Skip to main content

iccdev-mcp

MCP server for ICC color profile tools from the International Color Consortium's RefIccMAX (iccDEV) library.

Exposes tools to AI assistants (Claude, Copilot, Cursor) via the Model Context Protocol, covering profile inspection, color transforms, and format conversion for ICC v2/v4 and iccMAX v5 profiles.

The static MCP inventory lists supported tools; health_check reports the tools available in the running environment. Optional native capabilities can differ between container variants, so clients and CI must inspect capability flags and the discovered CLI inventory rather than assume a fixed health-tool total. The response includes the available native, CLI, and service inventories so clients can derive its dynamic total_tools value without numeric assumptions.

Install

For the lowest-friction setup, use the unified iccDEV Docker image. It includes the MCP server, REST dependencies, CLI tools, runtime libraries, maintainer utilities, and Testing/ profiles, so no local iccDEV build is required.

docker run --rm -i ghcr.io/internationalcolorconsortium/iccdev:latest \
  iccdev-mcp-entrypoint mcp

Use pip install when integrating with a local source checkout or a locally built iccDEV toolchain. iccdev-mcp is published on PyPI:

python -m pip install "iccdev-mcp[rest]"

The universal wheel from a successful rolling Latest Build remains available for exact-tag installation:

# Replace <release-tag> with the Git tag for the intended release.
python -m pip install "git+https://github.com/InternationalColorConsortium/iccDEV.git@<release-tag>#subdirectory=iccdev-mcp"
# Prebuilt GitHub release wheel; copy its exact tag-specific asset URL.
python -m pip install "<iccdev_mcp-wheel-asset-URL>"
# Optional REST server dependencies:
python -m pip install "iccdev-mcp[rest] @ <iccdev_mcp-wheel-asset-URL>"

Release assets include one iccdev_mcp-*-py3-none-any.whl and a matching source distribution for Python 3.10+. Verify their published checksums and provenance before installation. The release workflow tests source imports, isolated wheel and sdist installations, console entry points, stdio tool calls, and REST health on Windows and Linux. It includes no native binaries or compiled transform bindings. See the package release guide for maintainer validation and the PyPI publication boundary.

For an isolated MCP client, use the public package directly:

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

Use uvx --from "<iccdev_mcp-wheel-asset-URL>" iccdev-mcp when an exact GitHub release asset is required instead of the PyPI package.

The wheel ships only the iccdev_mcp namespace, so it can share an environment with the separate Cython iccdev bindings on CPython 3.11-3.14, where the current compiled iccdev wheels are available. On Python 3.10, the MCP package and CLI-backed tools remain supported without those current binding wheels. Header inspection and signature helpers are included. Pixel transforms require the native bindings from python/ in the same environment. The validate_profile tool dynamically loads the public C validation ABI, so it also needs a shared IccProfLib build. CLI-backed tools require iccDEV CLI binaries. Build iccDEV locally or set ICCDEV_TOOLS_DIR and ICCDEV_BUILD_DIR to an existing build. The REST health endpoint reports the bundled Python API and CLI discovery separately, so incomplete local builds are visible at startup.

# Point to compiled iccDEV tools
export ICCDEV_TOOLS_DIR=/path/to/iccDEV/Build/Tools
export ICCDEV_BUILD_DIR=/path/to/iccDEV/Build

Usage

Docker

The unified image uses a shell default. Start an MCP transport explicitly:

# MCP stdio mode
docker run --rm -i ghcr.io/internationalcolorconsortium/iccdev:latest \
  iccdev-mcp-entrypoint mcp

# REST API mode on http://127.0.0.1:8080
docker run --rm -p 127.0.0.1:8080:8080 \
  ghcr.io/internationalcolorconsortium/iccdev:latest \
  iccdev-mcp-entrypoint rest

Open http://127.0.0.1:8080/ for the bundled REST dashboard. The dashboard groups MCP-backed API routes, shows REST-only utility routes such as file browsing and upload, and runs tools without requiring a separate client.

Supported container modes are mcp/stdio, rest/api, sse, and streamable-http/http.

Useful runtime defaults are already configured:

Variable Default
ICCDEV_TOOLS_DIR /workspace/build/Tools
ICCDEV_TESTING_DIR /workspace/iccDEV/Testing
ICCDEV_VALIDATION_LIBRARY /opt/iccdev-validation/lib/libIccProfLib2.so

The unified image keeps sanitizer CLI tools, but loads the validation ABI from an isolated non-sanitized shared build. An explicit validation library overrides ICCDEV_BUILD_DIR, including the image default above. To select a custom build, override this library path or unset it before starting the server. Empty, missing, and unloadable explicit library paths fail closed without silently falling back. Pip-only installations retain optional validation behavior.

Mount additional profiles read-only and list them through ICCDEV_PROFILE_DIRS:

docker run --rm -p 127.0.0.1:8080:8080 \
  -v "$PWD/profiles:/profiles:ro" \
  -e ICCDEV_PROFILE_DIRS=/profiles \
  ghcr.io/internationalcolorconsortium/iccdev:latest \
  iccdev-mcp-entrypoint rest

Local build and smoke test:

docker build -t iccdev:mcp-local -f Dockerfile .
docker run --rm -p 127.0.0.1:8080:8080 \
  iccdev:mcp-local iccdev-mcp-entrypoint rest
curl -fsS http://127.0.0.1:8080/api/health
curl -fsS http://127.0.0.1:8080/api/tools
python3 .github/scripts/iccdev-container-smoke.py iccdev:mcp-local
# Optional REST dashboard in a browser
xdg-open http://127.0.0.1:8080/  # or open the URL manually

Claude Desktop

For a container-only local client, use this unified image configuration. Keep -i (open stdin), omit -t, and do not close stdin until requested tool responses arrive:

{
  "mcpServers": {
    "iccdev": {
      "command": "docker",
      "args": ["run", "--rm", "-i",
               "ghcr.io/internationalcolorconsortium/iccdev:latest",
               "iccdev-mcp-entrypoint", "mcp"]
    }
  }
}

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "iccdev": {
      "command": "iccdev-mcp",
      "env": {
        "ICCDEV_TOOLS_DIR": "/path/to/iccDEV/Build/Tools"
      }
    }
  }
}

VS Code (Copilot)

Add to .vscode/mcp.json:

{
  "servers": {
    "iccdev": {
      "command": "iccdev-mcp"
    }
  }
}

GitHub Copilot coding agent

Add this repository MCP configuration under Settings -> Copilot -> MCP servers. GitHub requires explicit type, args, and tools fields for repository MCP settings.

{
  "mcpServers": {
    "iccdev": {
      "type": "local",
      "command": "iccdev-mcp",
      "args": [],
      "env": {
        "ICCDEV_TOOLS_DIR": "Build/Tools"
      },
      "tools": [
        "inspect_header",
        "profile_summary",
        "validate_profile",
        "color_transform",
        "roundtrip_delta",
        "icc_sig_to_str",
        "enum_spaces",
        "list_available_profiles",
        "health_check",
        "dump_profile",
        "profile_to_xml",
        "xml_to_profile",
        "profile_to_json",
        "json_to_profile",
        "tiff_dump",
        "jpeg_dump",
        "png_dump",
        "heif_dump",
        "from_cube",
        "apply_profiles",
        "apply_named_cmm",
        "create_link",
        "v5_to_v4",
        "spec_sep_to_tiff",
        "apply_search",
        "round_trip_test",
        "pawg_report"
      ]
    }
  }
}

Remote (SSE transport)

iccdev-mcp --transport sse --port 8080

Tools

Python-Native

Tool Description
inspect_header ICC profile header (22 fields + 6 computed names)
profile_summary Compact profile classification and routing metadata
validate_profile In-memory validation status and report from the native C API; requires a shared IccProfLib build
color_transform Multi-profile CMM transform; requires the native iccdev bindings
roundtrip_delta Device-channel round-trip Euclidean distance, not CIE Delta E; requires native bindings
icc_sig_to_str 4-byte ICC signature to string
enum_spaces List all 32 ICC color space identifiers

CLI-Backed -- require iccDEV tools

Tool CLI Binary Description
dump_profile iccDumpProfile Full profile text dump
pawg_report iccPawgReport PAWG security, conformance, and quality checklist
profile_to_xml iccToXml ICC to XML conversion
xml_to_profile iccFromXml XML to ICC conversion
profile_to_json iccToJson ICC to JSON conversion
json_to_profile iccFromJson JSON to ICC conversion
round_trip_test iccRoundTrip Round-trip transform fidelity
tiff_dump iccTiffDump Selected main-IFD metadata or bounded directory inventory
jpeg_dump iccJpegDump JPEG metadata + embedded ICC
png_dump iccPngDump PNG metadata + embedded ICC
heif_dump iccHeifDump HEIF, HEIC, and AVIF metadata + embedded ICC
from_cube iccFromCube .cube LUT to ICC profile
apply_profiles iccApplyProfiles Multi-profile TIFF transform
apply_named_cmm iccApplyNamedCmm Named color CMM
create_link iccApplyToLink Device link creation
v5_to_v4 iccV5DspObsToV4Dsp v5 display to v4 conversion
spec_sep_to_tiff iccSpecSepToTiff Combine numbered single-channel TIFFs, optionally tiled/BigTIFF
apply_search iccApplySearch Search-based transform

TIFF inspection accepts ifd (0..4095), list_directories, and evidence_json. Listing and an explicit IFD are mutually exclusive; SubIFDs are reported as offsets, not followed. REST uses the same query names, with boolean query values true or false.

spec_sep_to_tiff takes input_prefix, start, end, and increment, plus optional compress/planar (0 or 1), matching ICC profile, paired tile_width/tile_height (positive multiples of 16), and bigtiff. It returns successful TIFF output as output_base64. The REST POST /api/spec-sep body uses the same fields. The former separation/illuminant profile arguments did not match the native tool and are no longer accepted. For example, combine the tracked spectral channels using:

{
  "input_prefix": ".github/ci/test-data/spectral/spec_",
  "start": 1,
  "end": 10,
  "increment": 1,
  "tile_width": 16,
  "tile_height": 32,
  "bigtiff": true
}

apply_profiles already accepts config_args: ["-cfg", "config.json"]; use the native imageFiles.dstTileWidth, dstTileHeight, and dstBigTiff configuration fields for tiled/BigTIFF destinations. Python's Cython and MATLAB's MEX APIs operate on profile/CMM sample arrays, not TIFF containers; these TIFF storage options do not change their in-process ABI.

CLI-Only Tools (Not MCP-Exposed)

The following built iccDEV executables do not have MCP wrappers and must not be added to an MCP server tools allowlist: iccBenchApply, iccProfilePlot, iccProfileVisualize, and iccProfileVisualizePlot. Use them directly from the command line; see the repository CLI tool reference for their interfaces.

Utility (2)

Tool Description
health_check Server status and tool availability
list_available_profiles Browse ICC test profiles

The REST dashboard at / and /ui provides Testing/ directory and filename selectors for ICC, XML, JSON, TIFF, JPEG, PNG, HEIF, HEIC, AVIF, and cube inputs. /api/tools returns the stable MCP inventory and separately lists REST-only utility routes (/api/tools, /api/files, and /api/upload). Core CLI-backed forms expose documented options for iccDumpProfile validation/verbosity/tag selection, iccPawgReport profile assessment, iccRoundTrip intent/MPE selection, and iccApplyProfiles structured or raw -cfg argument mode.

Environment Variables

Variable Description
ICCDEV_TOOLS_DIR Path to iccDEV CLI tool binaries
ICCDEV_BUILD_DIR CMake build root containing the shared IccProfLib validation ABI
ICCDEV_VALIDATION_LIBRARY Explicit shared IccProfLib path; overrides ICCDEV_BUILD_DIR
ICCDEV_TESTING_DIR Path to iccDEV Testing/ profiles directory
ICCDEV_PROFILE_DIRS Additional profile search directories (colon-separated)

Development

# Install for development
cd iccdev-mcp
pip install -e ".[dev,rest]"

# Run tests
pytest tests/ -v

# Run server (stdio)
python -m iccdev_mcp.server

License

BSD 3-Clause. See LICENSE.md.

Metadata

Release files for iccdev-mcp 2.3.2.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for iccdev-mcp 2.3.2.5
File Size Uploaded Provenance Actions
iccdev_mcp-2.3.2.5.tar.gz 74.4 kB With provenance Details for iccdev_mcp-2.3.2.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for iccdev-mcp 2.3.2.5
File Interpreter ABI Platform Actions
iccdev_mcp-2.3.2.5-py3-none-any.whl Python 3 none any Details for iccdev_mcp-2.3.2.5-py3-none-any.whl

Total release size: 117.9 kB

Release files / iccdev_mcp-2.3.2.5.tar.gz

Download URL iccdev_mcp-2.3.2.5.tar.gz
Size 74.4 kB
Tags Source
SHA-256 checksum
How to use checksums
7238ba727d7fa784108db8bb3395d6e331563e63d81cf490b5eab40dd85ad131
BLAKE2b-256 checksum
How to use checksums
db8fdb82628272914ebf06305dfa8b7992728ab9a8637b844fdcd1e1cb86ed96
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 8, 2026.

Transparency log

Release files / iccdev_mcp-2.3.2.5-py3-none-any.whl

Download URL iccdev_mcp-2.3.2.5-py3-none-any.whl
Size 43.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6750ab7cec8c83757d78f119b92dc20478909403d9233909bc4ac6951c20c9d6
BLAKE2b-256 checksum
How to use checksums
7d77d72a908f7d492c480906a9f3d3210244b5f15b6797d426f8ec6c85bfb304
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 8, 2026.

Transparency log

Security for iccdev-mcp 2.3.2.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for iccdev_mcp-2.3.2.5.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 8, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page