lightroom-ai-bridge
Lightroom MCP server (Model Context Protocol) for Adobe Lightroom Classic on macOS.
An open-source Lightroom MCP server for Adobe Lightroom Classic on macOS. Connect Claude Desktop, Claude Code or another Model Context Protocol (MCP) client to inspect photos, edit Develop settings and compare rendered previews. Includes a Lightroom plug-in, a command-line interface and optional Claude Code skills. Requires Lightroom Classic 15.3+; cloud Lightroom is not supported.
Summary extracted from the README.
Lightroom AI Bridge - MCP server for Lightroom Classic
An open-source Lightroom MCP server for Adobe Lightroom Classic on macOS. Connect Claude Desktop, Claude Code or another Model Context Protocol (MCP) client to inspect photos, edit Develop settings and compare rendered previews. Includes a Lightroom plug-in, a command-line interface and optional Claude Code skills. Requires Lightroom Classic 15.3+; cloud Lightroom is not supported.
This drives Lightroom's actual Develop module: exposure, white balance, tone, color grading, HSL, Point Color, crop and straighten with a measured geometry workflow, AI masks (select sky, select subject), presets with strength, ratings and flags, snapshots, undo. Every change is a normal, non-destructive Develop step that shows up in your History panel as "Claude: ...", on your own RAW files, in your own catalog. Your originals are never touched.
The MCP server returns JPEG previews inline so an image-capable AI client can see the photo through Lightroom's rendering pipeline, edit it, render again and compare. Look, edit, look.
MCP client (Claude Desktop, Claude Code, other stdio clients)
| Model Context Protocol over stdio: tools + inline JPEG previews
v
lightroom-bridge MCP server lrc CLI / Claude Code skills
| |
+------------> shared local daemon <-+
| localhost TCP: 49463 / 49464
v
ClaudeBridge.lrplugin
| Adobe Lightroom Classic SDK
v
Adobe Lightroom Classic
It is built entirely on Adobe's public Lightroom Classic SDK using the same socket-based "external control" mechanism Adobe documents in the Controller SDK Guide (the approach hardware vendors use to map a physical knob to a Develop slider). No private APIs, no screen-scraping, localhost only.
New here? Read docs/USER-GUIDE.md. It walks from "I have Lightroom and nothing else" to a finished edit, in order, with what to type. For the client configuration, jump to Lightroom MCP setup.
One name to know: inside Lightroom the plug-in appears as Claude Bridge (in the Plug-in Manager and the Plug-in Extras menu). That is this project.
What you get
| Piece | What it is |
|---|---|
MCP server (lightroom-bridge) |
62 tools, including seven knowledge-base tools and six geometry tools, for stdio MCP clients. Rendered previews are returned as inline images. |
ClaudeBridge.lrplugin/ |
The Lightroom plug-in. Install it once into Lightroom. |
lrc CLI |
40+ commands: tone, WB, Point Color, crop and geometry, masks, presets, Enhance, ratings, snapshots, render. Pure Python 3 stdlib (the geometry commands use an optional extra). |
skills/ |
Two Claude Code skills: /lightroom-bridge (everyday editing and culling) and /lightroom-bridge-pro (a full professional edit of the selected shot, zero questions). |
kb/ |
A self-improving knowledge base of photographic judgment. Ships empty on purpose. It fills with your taste as you work. |
bridge/ |
Durable helper scripts: contact-sheet review, the two-stage culling funnel, verified batch apply, named-reference geometry measurement, attention-hierarchy check. |
Requirements: macOS and Adobe Lightroom Classic 15.3 or newer (the
plug-in declares 15.3 as its minimum). The lrc CLI needs only Python 3
(already on macOS, no third-party packages). The MCP server additionally needs
fastmcp and Python 3.10+, both provisioned automatically by uv run in
the source-checkout setup below. Pillow (pip3 install --user Pillow) is
needed only for the contact-sheet helpers. The geometry workflow needs the
optional geometry extra (numpy, Pillow, scikit-image):
uv pip install -e '.[geometry]', or add --extra geometry to uv run.
macOS only: the bridge uses a Unix domain socket and ~/Library paths; Windows
and Linux are untested.
Install in three steps
1. The Lightroom plug-in (once)
- Open Lightroom Classic.
- File > Plug-in Manager...
- Click Add, choose this repo's
ClaudeBridge.lrpluginfolder, click Add Plug-in. - It should read Status: This plug-in is enabled and running.
The plug-in starts with Lightroom from then on, and shows a brief "Claude Bridge running" badge in the top-left when it does.
2. Check the connection
Select a photo in Lightroom, then:
./lrc ping
{ "ok": true, "result": {
"plugin": "Claude Bridge",
"lightroom": "Adobe Lightroom Classic ...",
"module": "develop",
"active": { "filename": "DSC_0001.ARW", "uuid": "...", "path": "..." } } }
The first call quietly launches a background daemon that keeps the Lightroom connection open; later calls are instant.
3. Pick how you want to drive it
Lightroom MCP setup
A. Connect an MCP client. Install uv
if needed. The server runs locally over stdio and connects to the installed
Lightroom plug-in through the shared daemon. For clients using mcpServers
configuration, such as Claude Desktop, add:
{ "mcpServers": { "lightroom": {
"command": "uv",
"args": ["run", "--directory", "/absolute/path/to/this/repo", "lightroom-bridge"]
} } }
In Claude Code that is one line:
claude mcp add lightroom -- uv run --directory /absolute/path/to/this/repo lightroom-bridge
Replace /absolute/path/to/this/repo with your checkout path. Restart or
reconnect the client, then ask it to "ping Lightroom". Use an image-capable
client for the look, edit, look workflow.
Install from source for now; the package is not yet published to PyPI. The
server exposes 62 tools in total, including seven kb_* tools and six
geometry_* tools, with before/after previews returned as inline images. It
shares one daemon with the CLI, so both can be used in the same session. The
geometry_* tools need the optional extra: add "--extra", "geometry" after
"run" in the args above (or --extra geometry in the Claude Code line).
After updating the repo, reload the plug-in and reconnect the client so it
discovers new tools.
B. Claude Code with skills.
./skills/install.sh
Then in Claude Code: /lightroom-bridge or /lightroom-bridge-pro, or just say
"open up the shadows on this shot". Details: skills/README.md.
C. Plain shell. Use ./lrc ... directly, or pip install -e . to get lrc
on your PATH.
Two minutes of it
./lrc render --out /tmp/before.jpg --size 1500 # look first
./lrc settings # read the numbers
./lrc set Exposure=0.35 Contrast=12 Shadows=25 Highlights=-20 Vibrance=10
./lrc wb --temp 5400 --tint 8
./lrc crop --left 0.05 --top 0 --right 0.95 --bottom 1 --angle -1.5
./lrc mask create aiSelection sky local_Exposure=-0.5 local_Temperature=-6
./lrc mask adjust local_Clarity=12 # targets the new mask; --id for any other
./lrc render --out /tmp/after.jpg --size 1500 # look again
./lrc undo # or snapshot-apply to roll back
Beyond the sliders: global and per-mask Point Color (point-color),
preset strength (preset apply --amount), explicit Enhance and Reflection
Removal requests, a capabilities report (capabilities), the selection you
made with Lightroom's own Assisted Culling or Duplicates view
(review-selection, bridge/cull.py triage --native-selection), and a
state-bound geometry workflow (geometry capture/plan/apply/audit) that
measures named horizontal and vertical references instead of trusting a slider
read-back. Geometry walkthrough: bridge/geometry-audit.md.
Full command reference: docs/COMMAND-REFERENCE.md.
Run ./lrc <command> -h for any command's flags, or ./lrc help to ask the
plug-in what it supports.
The knowledge base: why this gets better over time
A capable model with no memory re-derives your taste from scratch every session
and gets it slightly wrong every time. kb/ fixes that. It is plain Markdown
cards (culling rubric, genre knowledge, editing recipes, named looks, and your
taste profile) plus one rule the agent follows every session:
RECALL the cards that match this photo, APPLY them, LEARN from what
happened. Your correction becomes a lesson card; ten lessons get consolidated
into the cards they belong to; cards that earn their keep get promoted from
seed to tested to proven. It is a loop, not a pile.
This repo ships the KB empty, and that is deliberate. Taste is personal;
someone else's cards would argue with you on every edit. Three ways to fill it,
all described in kb/README.md:
- just work, and let your corrections accumulate (the honest way),
- ask Claude for a research seeding pass to write
seedcards for the genres you shoot, - drop your own references (presets, XMPs, newsletters, before/after pairs) into
knowledge/and have them ingested.
bridge/kb.py gives the loop deterministic tooling: recall, read, index,
new, bump, absorb, validate, stats. Every one of them degrades
gracefully on an empty KB.
Culling at scale
For rating hundreds or thousands of frames there is a two-stage funnel in
bridge/cull.py, and the reasoning behind it is the part worth stealing:
- Triage on contact sheets (~800px tiles, cheap model, all photos): reject throwaways, collapse near-duplicate bursts, assign rough stars.
- Judge the top tier on hi-res (one ~2560px image per file, strongest model, comparative pairs or triads): only this reliably separates 4 stars from 5, and it recovers the night and blue-hour frames that thumbnails bury.
Input resolution matters more than the model, and comparisons beat absolute star
numbers. For the purely technical cull (focus, blinks, duplicates), Lightroom's
own Assisted Culling is better than any LLM at any resolution. Run it first,
select its results in Lightroom, and python3 bridge/cull.py triage --native-selection feeds that selection into the funnel with ratings, flags
and stack membership preserved. Details in
docs/USER-GUIDE.md.
Repository layout
ClaudeBridge.lrplugin/ the Lightroom plug-in (Lua, public SDK only)
src/lightroom_bridge/ the Python package: transport core, lrc CLI, MCP server, KB engine
bridge/ durable helper scripts (see docs/COMMAND-REFERENCE.md)
skills/ Claude Code skills + installer
kb/ knowledge base scaffold (empty; fills with your taste)
knowledge/ inbox for raw reference material you want ingested
docs/ user guide, command reference, release runbook
scripts/ release_check.py, the pre-release gate
tests/ protocol, transport, plug-in and geometry tests (no Lightroom needed)
CLAUDE.md / AGENTS.md the operating cheat-sheet an agent reads (Claude / other agents)
Run the tests with
uv run --extra test --extra geometry python -m unittest discover -s tests
(they load the plug-in's Lua in a Lua 5.1 runtime with SDK doubles, talk to a
fake plug-in over real sockets, and check the geometry math on synthetic
images; Lightroom is not needed). The tests/live_*.py scripts are opt-in
integration runs against a virtual copy you name explicitly; unittest discover does not pick them up.
Not included: Adobe's Lightroom Classic SDK and its PDF guides. They are Adobe's material with redistribution restrictions, and they are not required at runtime. Download them from Adobe only if you want to modify the plug-in's Lua.
Troubleshooting
Lightroom not reachable... / Lightroom is not responding... Read the
error's diagnosis.hint first: it names whoever holds ports 49463/49464 and
says whether Lightroom is closed, or the plug-in is stopped, too old, busy (a
long export or an open dialog) or stuck, and what to do. ./lrc daemon status
shows the same diagnosis. Otherwise: is Lightroom Classic open? In Lightroom:
File > Plug-in Extras > Claude Bridge: Show Status. If "Run loop active" is
no, choose Claude Bridge: Start / Restart. Confirm it is enabled in
Plug-in Manager.
predates protocol json-1, unauthorized or parse error ... lrc daemon stop after upgrading: the plug-in and the CLI must both be 2.0+. Reload the
plug-in (Plug-in Manager, then Reload Plug-in, or restart Lightroom) and run
./lrc daemon stop; the next command starts the new daemon.
No active photo... Select a photo in Lightroom first. Most edits act on the
active photo.
Edits do not seem to apply. The plug-in switches to the Develop module for
slider and mask edits. Watch the History panel: each edit is logged as
"Claude: ...". The plug-in waits for Develop to be ready and reads back
absolute slider values, retrying within a bounded window, so the old
"first edit from Library is lost" problem is handled for absolute values.
Relative nudges (+, -) and toggles are never replayed automatically; if one
did not land, re-issue it yourself.
A new command or MCP tool is missing after updating. Reload the plug-in
(Plug-in Manager, then Reload Plug-in), run ./lrc daemon stop, and reconnect
or restart your MCP client so it re-reads the tool list. ./lrc ping should
then report plug-in 1.5.0 or newer.
A preview looks stale, or thumb errors. Use render, which is a
guaranteed fresh export that reflects every edit. thumb relies on Lightroom's
preview cache and is intermittent for the active photo in Develop; the CLI
auto-falls back to render.
Reset the daemon: ./lrc daemon stop && ./lrc ping.
Logs: ~/.claude-lrc-bridge/daemon.log (bridge side) and the in-Lightroom
Claude Bridge: Show Status dialog. More in
docs/USER-GUIDE.md.
How it works (protocol)
- The plug-in opens two
LrSocketlisteners on localhost (one receive, one send) and runs a command loop inside a single async task and function context, so every Develop, catalog and export call happens in a valid context. - Inbound (bridge to Lightroom): one JSON object per line, e.g.
{"id":7,"cmd":"set","params":{"Exposure":0.5},"token":"..."}. A strict data-only decoder parses it (nothing is evaluated), andtokenmust match the secret the plug-in wrote to~/.claude-lrc-bridge/auth.token. - Outbound (Lightroom to bridge): one JSON object per line, e.g.
{"id":7,"ok":true,"result":{...}}. - The Python daemon holds both sockets open for the whole session (the
stable, Adobe-documented model), exposes a Unix socket for the CLI, correlates
each reply by
id, and transparently reconnects if Lightroom restarts. It pings the plug-in (5 s limit) before trusting a fresh, idle or timed-out link, so a busy or stuck plug-in fails in seconds with a diagnosis. - When a client disconnects, the plug-in rebinds its response port, so the next client (a restarted daemon, for example) is served without restarting the plug-in. Commands whose replies can no longer be delivered are dropped, never run unanswered.
Security
- Localhost only (127.0.0.1). Nothing is exposed to your network.
- Inbound commands are data, never code: a strict JSON decoder, no
loadstring. (Releases before 2.0 parsed commands withloadstring, and because Lightroom's plug-in environment has nosetfenv, the intended sandbox did not exist: a local process that reached port 49463 could make Lightroom evaluate an expression. Upgrade.) - Every command must carry the per-start secret from
~/.claude-lrc-bridge/auth.token(a fresh 256-bit value from/dev/urandomeach time the plug-in starts; the folder is kept owner-only). Other local users, and software that cannot read your files (for example a web page posting tolocalhost:49463), cannot drive Lightroom. - The bridge can do anything you can do in Develop: treat it like handing an assistant your mouse. Everything is visible in History and reversible.
Status
Tested end-to-end against Adobe Lightroom Classic 15.3 and 15.4 on macOS
with .ARW RAW files; release 2.0.0 (protocol, token, reconnects and the
release smoke test) was verified against 15.6. Confirmed working: ping, status, settings,
list-selected, help, set, value, range, apply, wb, auto-tone,
auto-wb, crop, crop-reset, masking (create plus local adjustments,
visibly applied), reset, render before/after, preset list / apply /
save, snapshot and snapshot-apply, module switch, undo / redo, and
rating / flag / label including verified per-UUID writeback.
Release 2.1.0 (plug-in 1.5.0) was live-checked on Lightroom Classic 15.6 on a disposable JPEG virtual copy: global and per-mask Point Color, verified mask creation, duplicate-invert, mask components, visibility, empty-mask cleanup, preset strength, AI update requests, AI state and native selection triage. Not covered by that check: the visual result of Reflection Removal (its first enabled export timed out) and Enhance on supported RAW files. See CHANGELOG.md for every change and known limitation.
Two behaviors are handled automatically and worth knowing: thumb is
intermittent for the active photo in Develop and silently falls back to
render; and settings does not report mask values reliably (0 on 15.3, an
internal scale on 15.6), so read a mask value with value local_* or the
create/adjust response and verify its coverage by rendering. The full list of
verified quirks lives in CLAUDE.md, which is also what an agent
reads before it starts.
Get help
Open an issue on GitHub, or email support@speranda.com. Release history: CHANGELOG.md.
License
MIT (c) 2026 Mustafa Aslanov.
Adobe, Lightroom and Lightroom Classic are trademarks of Adobe Inc. Claude is a trademark of Anthropic. Lightroom AI Bridge is an independent project and is not affiliated with, sponsored by, or endorsed by Adobe or Anthropic.
This project bundles no Adobe code. Adobe's Lightroom Classic SDK and its documentation are Adobe's property and are not included in this repository. Download them from Adobe under Adobe's own license terms.