convert_dng_to_webpLABSCO SUMMARY
Two tools, and the second one exists because raw conversion fails in boring ways.
ImageMagick does not read DNG on every system, so check_converters tells you what you have before a batch, and auto mode falls back to darktable when the first attempt fails rather than erroring out. The scope is deliberately narrow — this is DNG to WebP, not a general image toolkit — and the project says so.
What it is
A small Rust MCP server that shells out to ImageMagick and darktable. It converts DNG raw files to WebP with lossless settings, choosing the converter automatically and falling back when the first one fails.
What you get
- convert_dng_to_webp — convert a DNG file to WebP, with converter set to auto, imagemagick or darktable
- check_converters — which converters are present on the system and usable
- Automatic fallback: ImageMagick is tried first and darktable takes over when ImageMagick cannot handle the file
- Lossless WebP settings applied for you, preserving exact pixel values at maximum compression effort
- Darktable runs the raw pipeline with colour management and picks up an XMP sidecar if one is present
- The output directory is created if it does not exist, and existing output files are overwritten
Requirements
At least one converter installed and on PATH: ImageMagick 7 (as convert7 or magick) or darktable-cli. Build it with Rust and point the client at the release binary. RUST_LOG sets logging verbosity. Input files must exist and carry a .dng extension.
Setup effort
Follow the published steps
USE CASES
Shrinking a shoot without losing pixels
Convert the raw files to lossless WebP with exact pixel values preserved.
Checking the machine can do it
See which converters are installed before starting a long batch.
Getting the colours right
Force the darktable path so the raw pipeline and any XMP sidecar are applied.
2 tools
Listed in project docs. Your client may show a different list.
check_convertersBEFORE YOU INSTALL
What to know first
Tools you get
2 tools named in the project's documentation.
Where it runs
The documented client runs the server on your machine.
INSTALLATION
Connect your client
Server setup
Install at least one backend converter: sudo apt install imagemagick (ImageMagick 7) and/or sudo apt install darktable (darktable-cli)
Ensure you have Rust installed (https://rustup.rs/)
Clone or download this repository
cd mcp-imagemagick
cargo build --releaseAdd the mcpServers block below to your Claude Desktop configuration file, pointing command at target/release/mcp-imagemagick
Restart Claude Desktop
MCP Clients
Claude Desktop
{
"mcpServers": {
"imagemagick": {
"command": "<YOUR_PATH_TO_MCP_IMAGEMAGICK>/target/release/mcp-imagemagick",
"args": [],
"env": {}
}
}
}