darktable-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@darktable-mcpMake the barn photo warmer and moodier"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
dark-table-mcp
Tell Claude how you want a photo to look — and watch darktable change it live.
dark-table-mcp is a Model Context Protocol server that turns Claude into a hands-on photo-editing and library assistant for darktable. You describe the look you're after in plain language — "open the barn photo, make it warmer and moodier, and lift the shadows" — and Claude drives the real sliders in your live darktable darkroom. The image re-renders in front of you as it works. You never have to know which module or slider does what; that knowledge lives in the server.
Beyond editing, Claude can browse and organize your library: rate and label photos, add tags and metadata, geotag, apply and save styles, batch a look across a whole selection, and export finished files.
Validated against darktable 5.6.0 (Lua API 9.7.0) on Windows.
See it in action
Claude edited this barn-under-the-northern-lights shot live — a single instruction to reveal
the near-black foreground while keeping the aurora vivid. It lifted the shadows to bring out the
barn and field, protected the intense red highlights, and added contrast and vibrance for pop,
checking its own get_preview along the way.
Before | After |
|
|
Straight-out-of-camera raw (left) vs. Claude's live darktable edit (right).
Related MCP server: Lightroom Classic MCP
Highlights
Live, conversational editing. Claude nudges exposure, white balance, contrast, saturation, vibrance, shadows, highlights and more on the photo open in your darkroom — you see every change land in real time.
Semantic "looks." One-word vibes like
moody,cinematic,golden,vivid, orfadedmove several controls together for a coherent starting point, then Claude fine-tunes to taste.See-the-result preview.
get_previewrenders the current edit to an actual image Claude can look at, so it edits with its eyes open — make a change, check it, decide the next move.Styles, including imported packs. Apply, create, export, and delete darktable styles. Import downloaded
.dtstylefiles — including LUT-based look packs — and apply them live.A ready-made starter pack.
build_starter_stylesbakes 21 curatedMCP - …styles straight from the live pipeline, so Claude has a rich palette of looks to reach for.Full library organizing. Star ratings, color labels, keyword tags, metadata (title/creator/…), read-only EXIF, and GPS geotagging.
Batch over a selection. Most organizing tools and
apply_styleacceptall_selected=trueto act on the entire lighttable selection at once.copy_editclones one good edit onto a burst.Real exports. Write the edited photo out to a genuine JPEG / PNG / TIFF at full or capped resolution.
Robust, diagnosable errors. Tools never crash the conversation — they return structured results, and a dedicated
diagnosetool troubleshoots the connection when something's off.
How it works
Claude calls an MCP tool; the Python bridge shells out to darktable's own bundled gdbus.exe to
invoke the DBus Remote.Lua method, which runs a small companion Lua helper inside your live
darktable session. That helper moves the real GUI sliders (via darktable's action system), and
the darkroom re-renders. Results come back as JSON.
You ──▶ Claude ──▶ MCP tool (server.py)
│
▼
bridge.py ──▶ gdbus.exe ──▶ darktable DBus
│ org.darktable.service.Remote.Lua
│ │
│ ▼
│ dtmcp.lua helper (in the LIVE session)
│ │
│ ▼
│ darkroom re-renders 🖼️ (you see it change)
▼ │
JSON reply ◀───────────────────────┘The Lua helper (darktable_mcp/lua/dtmcp.lua) is auto-injected over DBus on first use — you do
not need to edit luarc or install anything into darktable. Because everything runs inside the
one already-open session, there's no second process and no database-lock contention.
For the full architecture and design rationale, see
docs/plans/2026-07-05-darktable-mcp-design.md.
Requirements
darktable 5.x with Lua support enabled (
LuaEnabled = true) and the GUI running. This bridge drives a live session;darktable-clidoes not expose it.Python 3.10+
Windows. Paths default to
C:\Program Files\darktable\bin(the folder containinggdbus.exeanddarktable.exe); override with theDARKTABLE_BIN_DIRenvironment variable if darktable is installed elsewhere.
Installation
Clone the repo, then install it (editable) into your environment:
git clone https://github.com/yourname/dark-table-mcp.git
cd dark-table-mcp
# with uv (recommended)
uv venv
uv pip install -e .
# …or with plain pip
pip install -e .This installs the darktable-mcp entry point (defined in pyproject.toml).
uv note:
uv pip installneeds a virtual environment. Runuv venvfirst (as above), thenuv pip install -e .installs into that venv.
Configuration for an MCP client
Point your MCP client at the installed darktable-mcp entry point. On Windows this lives in your
venv's Scripts directory.
Claude Desktop — add to claude_desktop_config.json:
{
"mcpServers": {
"darktable": {
"command": "C:\\path\\to\\dark-table-mcp\\.venv\\Scripts\\darktable-mcp.exe",
"env": {
"DARKTABLE_BIN_DIR": "C:\\Program Files\\darktable\\bin",
"DARKTABLE_MCP_TIMEOUT": "30"
}
}
}
}Both env entries are optional — omit them to use the defaults (bin dir
C:\Program Files\darktable\bin, timeout 30 seconds).
Claude Code — register the same command as an MCP server, e.g.:
claude mcp add darktable -- "C:\path\to\dark-table-mcp\.venv\Scripts\darktable-mcp.exe"Environment variables
Variable | Default | Purpose |
|
| darktable's |
|
| Default per-call timeout, in seconds. Raise it for slow full-resolution exports of large raws. |
Usage — the live loop
Open darktable first. The server talks to a running GUI session, so launch darktable and let it finish loading before you start.
Then just talk to Claude. A realistic exchange:
You: Open the barn photo and make it warmer and moodier.
Claude: calls
open_in_darkroom("barn"), thenapply_look("moody"), thenget_previewto see the result — "Here's the barn with a moodier grade: cooler-then-warm balance, deeper shadows, a touch less saturation. Want it warmer still, or should I open the shadows back up?"You: A bit warmer, and lift the shadows so the barn wall isn't so dark.
Claude: calls
adjust("warmth", "up", 2)andadjust("shadows", "up", 3), previews again — "Warmer and the wall reads better now. Happy with this? I can save it as a reusable style."You: Love it — save it and give it 4 stars.
Claude:
create_style_from_current("Barn Dusk"),set_rating(4)— "Saved and rated."
The rhythm is: open → apply a look → preview → nudge → preview → save/rate/export. Claude reads
the built-in darktable_guide to translate your words ("moody", "faded", "punchier") into the
right controls.
Tools reference
The server exposes 33 tools. All editing/organizing tools act on the photo currently open in
the darkroom by default; those noted below accept all_selected=true to act on the entire
lighttable selection instead.
Editing
Tool | Parameters | Description |
|
| Open the first photo whose filename contains |
| — | Report which photo is open in the darkroom (the one edits apply to). |
|
| Nudge one control and watch it change live. |
| — | Discard all edits on the current photo and start over. |
Looks & styles
Tool | Parameters | Description |
| — | List the one-word semantic looks available to |
|
| Apply a one-word semantic look (e.g. |
| — | List the saved styles (looks) available in darktable. |
|
| Apply a saved style to the current photo — or the whole selection. |
|
| Save the current photo's edit as a reusable named style. |
|
| Build the 21 |
|
| Import a |
|
| Export a saved style to a |
|
| Delete a saved style by name. |
|
| Copy the full edit from one photo (matched by filename substring) onto the current photo or the whole selection. |
Preview
Tool | Parameters | Description |
|
| Render the current darkroom edit to a JPEG (long edge capped at |
Organizing
Tool | Parameters | Description |
|
| Set the star rating: |
| — | Get the current photo's star rating and color labels. |
|
| Toggle a color label: red/yellow/green/blue/purple. |
|
| Attach a keyword tag, creating it if needed. |
|
| Detach a tag from the current photo (or the selection). |
| — | List the tags attached to the current photo. |
|
| Set a metadata field: title/creator/publisher/rights/description. |
| — | Get the current photo's metadata, key EXIF (camera, lens, ISO, aperture, exposure), and GPS. |
|
| Geotag the current photo with GPS coordinates (elevation in metres, optional). |
Library & export
Tool | Parameters | Description |
|
| List photos in the library, optionally filtered by a filename substring. |
|
| List photos in darktable's current collection (the active lighttable filter). |
| — | List the photos currently selected in the lighttable. |
| — | Create a virtual copy of the current photo with its own independent edits. |
|
| Import a photo file or a whole folder into the library. |
|
| Export the current edited photo to a real file. |
Diagnostics
Tool | Parameters | Description |
| — | Check whether darktable is running; report version, Lua API, and image count. |
| — | Troubleshoot the connection: gdbus path, whether darktable is running, version, config directory, and any stale lock files. Call this first when other tools fail. |
| — | Return the intent→control guide Claude uses to translate plain-language requests. (Also exposed as the |
Control vocabulary & semantic looks
Controls (all validated live against darktable 5.6.0)
Friendly names you can ask Claude to adjust, and the darktable module/slider each maps to:
Friendly name | darktable action path |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Semantic looks (apply_look)
warmer · cooler · brighter · darker · punchy · vivid · muted · faded · moody ·
golden · cinematic · soft
Each is a curated sequence of nudges — for example, moody cools the white balance, dims the
image, drops saturation, adds contrast, and deepens the shadows.
The MCP - … starter style pack (build_starter_styles)
Running build_starter_styles bakes 21 reusable styles from the live pipeline:
Warm Punch · Golden Hour · Moody · Vivid Pop · Faded Film · Cinematic ·
Teal & Orange · Nordic Cool · Vintage Matte · Bright & Airy · Low Key · Autumn Warmth ·
Pastel Portrait · Landscape Pop · Sunset Glow · Clean Neutral · Stormy Sky ·
Retro Film · Punchy Street · Dreamy Soft · Rich & Deep
They're saved in darktable prefixed with MCP - (e.g. MCP - Golden Hour) so list_styles and
apply_style can find them.
Troubleshooting
Start with diagnose. When any tool misbehaves, ask Claude to run diagnose — it reports the
gdbus path (and whether it exists), whether darktable is running, its version, the config
directory, the current timeout, and any stale lock files, all without assuming darktable is up.
Symptom | Cause & fix |
"darktable is not running" | The GUI isn't open. This bridge drives a live session; |
"lost connection to darktable" after it was working | darktable crashed or was closed. Reopen it. If a crash left stale |
"gdbus not found" | The bridge couldn't find |
Timeout, especially on a full-resolution export | Large raws render slowly. |
Limitations / not yet supported
Relative nudges, not absolute values. darktable's sliders read back in mixed units (some normalized, some native), so Claude adjusts controls up/down rather than setting exact numbers. This suits the conversational, watch-it-change loop.
A live GUI session is required. This is not a headless renderer; it drives the running darktable GUI. (Headless export via
darktable-cliis a possible later addition.)Crop / rotate are deferred. The geometry modules are reachable via the action system but produced no change in the exported render — they appear to need the interactive crop commit the action bridge doesn't trigger. Left out rather than shipped as no-ops.
LUTs only via styles. There's no direct LUT tool; import a LUT-based
.dtstylelook pack withimport_style, then apply it.No delete or move. Removing images from the library or moving files on disk is intentionally omitted to keep the server safe to hand to an assistant.
Development
Project layout
dark-table-mcp/
├── darktable_mcp/
│ ├── server.py # the MCP tools (FastMCP) — the source of truth for the tool list
│ ├── bridge.py # DBus Remote.Lua transport via gdbus; error types; diagnose()
│ ├── controls.py # control registry, semantic looks, starter styles, the intent guide
│ ├── config.py # binary/gdbus location, DBus constants, timeout
│ ├── extra_styles.py # 15 additional starter-style recipes (merged into the pack)
│ └── lua/
│ └── dtmcp.lua # companion Lua helper, auto-injected into the live session
├── docs/plans/2026-07-05-darktable-mcp-design.md
├── tests/
└── pyproject.toml # deps, entry point (darktable-mcp), Python 3.10+Running the tests
pytest -m "not integration" # unit tests — mocked gdbus, no darktable needed
pytest -m integration # smoke tests — require a running darktable GUIUnit tests cover bridge reply-parsing and error mapping and assert that the Python and Lua control registries stay in sync. The integration marker is opt-in (skipped in CI) because it needs a live session.
License
MIT. See the license field in pyproject.toml.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Caleb68864/darktable-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server

