ThumbGen MCP server
thumbgen-mcp lets an MCP client inspect local image metadata and render previews from OpenEXR, PSD, HDR and other ThumbGen inputs over stdio.
Install and connect
The server ships with the ThumbGen wheel for Windows x64 and Linux x86_64. To launch it with uv, run:
uvx --from thumbgen-cli thumbgen-mcpIf you prefer an installed command:
pip install thumbgen-cli
thumbgen-mcpThe process waits for messages from the client. You can also launch the installed package with python -m thumbgen_cli.mcp.
Use the same JSON configuration in the following clients. If the file already has an mcpServers object, add just the thumbgen entry.
- Claude Code. Add it to
.mcp.jsonat the project root. Claude Code MCP setup - Cursor. Add it to
.cursor/mcp.jsonat the project root or~/.cursor/mcp.jsonfor all projects. Cursor MCP setup - Claude Desktop. Open Settings → Developer → Edit Config to edit
claude_desktop_config.json. Quit and reopen the app after saving. Claude Desktop local server setup
{
"mcpServers": {
"thumbgen": {
"command": "uvx",
"args": ["--from", "thumbgen-cli", "thumbgen-mcp"]
}
}
}For a pip installation, set "command": "thumbgen-mcp" and "args": []. If the client cannot find the launcher, use its absolute path in command. Pass absolute image paths because the client's working directory can differ from your shell's.
Tools and limits
| Tool | Result | Defaults and limits |
|---|---|---|
inspect_image | Metadata JSON for one path, including dimensions, parts and channels | 15 s timeout, adjustable from 1 to 60 s |
render_preview | Summary JSON and an inline image for one path | PNG, 768 px longest edge, balanced preset, two threads, 30 s timeout. Size 64–1024 px, timeout 1–60 s |
render_batch_previews | Counts and per-input results, with a label and inline image for each success unless include_images is false | 1–16 inputs. JPEG quality 85, 384 px longest edge, fast preset, two workers, 60 s timeout. Size 64–512 px, workers 1–4, timeout 1–120 s |
Both preview tools support PNG, JPEG and WebP, plus channel or part selection, data visualization, Deep EXR flattening and OCIO color options. Use either part or part_name, and supply display and view together. Both tools default to a 512 MiB decoded-source buffer limit and accept max_decode_mib from 1 to 2048. The batch scheduler adds twice the decode limit to its fixed reserve, with a 4096 MiB cap on the total. The fixed reserve includes 128 MiB for the controller and 128 MiB plus 8 MiB per assigned thread for each active worker.
ThumbGen cleans up temporary previews after reading them. To keep a single preview, set output_path with an extension matching format. ThumbGen creates missing parent directories, renders into a staging directory beside the destination and publishes the finished file atomically. An existing file produces an error by default. Set existing to "replace" to overwrite the file or "skip" to keep it. A skipped image is returned inline when it fits the requested longest edge and the remaining inline byte budget. The summary reports skipped files and any size-related omissions. Single previews allow up to five extra seconds for native cleanup after the configured timeout.
Each JSON-RPC response can include up to 8 MiB of image data before Base64 encoding. A JSON-RPC batch accepts up to 16 entries, including notifications, and shares that budget across all tool calls in the batch. The server considers calls and input images in order. Summaries report images omitted for exceeding the remaining budget. Saved previews still go to disk when inline image data is omitted.
Local privacy
ThumbGen reads and processes assets on your machine and returns results to the MCP client over stdio. Original assets stay local. If you send previews or inspection metadata to a cloud model through your client, that content leaves your machine. The server can access paths that the account running your client can read or write.