Skip to main content
Glama

mcp-server-openexr

MCP Server that gives Claude direct access to local OpenEXR, TX texture, and DPX files, including metadata, channel info, pixel statistics, part extraction, aspect ratio reframing, and EXR sequence to video conversion.

Requirements

  • Python 3.11+

  • uv

Related MCP server: Image Analysis MCP Server

Installation

git clone https://github.com/chordee/mcp-server-openexr.git
cd mcp-server-openexr
uv sync

Running

uv run main.py

Tools

EXR

Tool

Description

get_exr_info

Resolution, part count, channel list, compression

get_exr_header

Full header attributes including custom metadata

get_exr_channels

Channel pixel type (HALF/FLOAT/UINT) and sampling

get_exr_pixel_stats

Pixel stats: min/max/mean, percentiles, NaN/Inf

get_exr_sequence_info

Scan EXR sequences, detect missing frames

compare_exr_channels

Compare channel differences between two EXR files

check_exr_validity

Validate EXR integrity and detect NaN/Inf pixels

extract_exr_part

Extract one part into a new single-part EXR file

reframe_exr

Adjust aspect ratio by expanding (black borders) or cropping

exr_sequence_to_video

Convert EXR sequence to mp4 or mov with color space conversion

reframe_exr details

Adjusts an EXR to a target aspect ratio (width/height).

  • mode: expand adds zero-value padding on one axis; crop removes pixels from one axis

  • target_ratio: e.g. 2.35, 1.85, 1.7778 (16:9), 1.0

  • anchor: controls which side stays fixed (default center)

    • Width changes (horizontal): left · center · right

    • Height changes (vertical): top · center · bottom

exr_sequence_to_video details

Converts an EXR image sequence to video. The bundled ffmpeg binary is used automatically — no external ffmpeg installation required.

  • codec: h264 (.mp4) · h265 (.mp4) · prores_hq (.mov) · prores_4444 (.mov)

  • input_colorspace: linear (Rec.709 linear, default) · acescg (AP1 linear) · srgb (gamma-encoded)

  • output_colorspace: srgb (display-ready, default) · linear (Rec.709 linear) · acescg (AP1 linear)

  • tonemap: none (clamp, default) · reinhard (soft roll-off, useful when source has HDR values > 1)

  • crf: CRF quality for h264/h265 (0–51, lower = better; defaults: h264=18, h265=20). Ignored for ProRes.

  • exposure: Multiplier applied before tone mapping (default 1.0)

  • scale: Output resolution scale, e.g. 0.5 = 50% (default 1.0)

  • channels: null = auto-detect (R/G/B or packed RGBA); or specify explicitly e.g. ["beauty.R","beauty.G","beauty.B"]

Typical usage:

Source EXR

Target

Settings

ACEScg render

sRGB review (mp4)

input_colorspace='acescg', output_colorspace='srgb'

Linear render

sRGB review (mp4)

input_colorspace='linear', output_colorspace='srgb'

ACEScg render

ACEScg editorial (ProRes)

input_colorspace='acescg', output_colorspace='acescg', codec='prores_hq'

TX (MIP-mapped textures)

TX files are MIP-mapped textures generated by maketx (OpenImageIO/Arnold), used in RenderMan and Arnold rendering pipelines.

Tool

Description

get_tx_info

Resolution, MIP pyramid, channel list, tile size, color space

get_tx_header

Full metadata for a given MIP level

get_tx_channels

Channel names, pixel types, and tiling info

get_tx_pixel_stats

Pixel stats per channel; use a higher mip_level for fast approximate stats on large textures

get_tx_sequence_info

Scan TX sequences, detect missing frames and inconsistencies

DPX

DPX (Digital Picture Exchange) files are commonly used in film scanning, digital intermediate (DI), and VFX pipelines. Supports 8-, 10-, 12-, and 16-bit formats.

Tool

Description

get_dpx_info

Resolution, channel list, pixel format, bit depth, and color space

get_dpx_header

Full DPX header metadata including film/TV-specific fields

get_dpx_pixel_stats

Pixel stats: min/max/mean, percentiles, NaN/Inf counts

Claude Desktop Configuration

Add the following to claude_desktop_config.json:

{
  "mcpServers": {
    "openexr": {
      "command": "uv",
      "args": [
        "run",
        "--directory",
        "/path/to/mcp-server-openexr",
        "main.py"
      ]
    }
  }
}

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers