lr-mcp

v0.5.0
lr-mcp Checked 4 days ago Published 21 days ago

Unofficial MCP server for the Adobe Photoshop Lightroom Partner API: browse albums, filter and view photos, export renditions

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

lr_login

Sign in to Adobe in the browser and store tokens. Only needed when another tool reports that the user is not signed in or the token refresh failed. Waits up to 5 minutes for the user to finish signing in. The callback is https://localhost:8000/callback (or LR_MCP_PORT). If port 8000 is busy, another port is used, which needs the redirect URI pattern https://localhost:[0-9]+/callback in the Adobe console; with an older pattern such as https://localhost:8000/.* the browser lands on the other app at :8000 and sign-in times out. The reply says when this happened.

lr_account

Account info: subscription status and cloud storage usage.

lr_list_albums

List albums as 'Folder / Album' paths with their ids. query: case-insensitive substring of the path, e.g. 'kyoto' or '2024'. Folders are tagged [folder]; project albums created by this server are tagged [project]. include_counts: append each album's photo count (videos included), e.g. '... (id) 112 photos'. Folders get no count. This costs a request per album, so pass a query when you can. Counting stops after 60 s; the first line then says how many albums are left, they are listed with '? photos', and calling again continues from there (an album of tens of thousands of photos may never finis…

ParameterTypeDescription
include_countsboolean
include_foldersboolean
query

lr_list_photos

List photos matching filters, oldest capture first (in an album: the album's order, see sort). album_id: search inside one album; omit to search the whole catalog (then narrow it with captured_after). sort (with album_id only): 'album' (default) keeps the album's own order as set in Lightroom (custom order, or capture date ascending/descending); 'captured' forces oldest capture first. The first line names the album's order, e.g. 'album order: customAsc'; limit applies after sorting. Without album_id, sort is ignored and results are always oldest capture first. captured_after / captured_before:…

ParameterTypeDescription
album_id
camera
captured_after
captured_before
filename
flag
hour_from
hour_to
lens
limitinteger
max_fnumber
min_fnumber
min_iso
min_rating
sortstring

lr_get_photo

Details for one photo: capture info, rating/flag, title, caption, keywords, original file, original and cropped pixel size, orientation (EXIF value; 6 and 8 are 90-degree rotations; the sizes are as stored and are not swapped for it), GPS when present, and a summary of its edits.

ParameterTypeDescription
asset_id *string
include_developboolean

lr_view_photos

Fetch photos as images to look at them (JPEG with edits applied). Up to 12 per call. size: 'thumbnail2x' (small, for scanning many) | '640' | '1280' | '2048'.

ParameterTypeDescription
asset_ids *array
sizestring

lr_download_photos

Save photos as JPEG files. Pass either asset_ids or album_id (the whole album). size: '640' | '1280' | '2048' | '2560' | 'fullsize' (original resolution with edits; slower). dest_dir defaults to ~/Downloads/lightroom/<album name or export-timestamp>. naming: 'file' (default) names files after the original file name with a .jpg extension (IMG_1.jpg, then IMG_1-2.jpg for a second photo with that name); 'id' names them <asset id>.jpg, which stays the same when a photo is renamed. Switching naming in one folder keeps both copies; each name has its own cache entry. <dest_dir>/.lr-mcp.json records e…

ParameterTypeDescription
album_id
asset_ids
dest_dir
forceboolean
namingstring
sizestring

lr_create_project_album

Create a project album owned by this server (shown under Connections in Lightroom). Adds asset_ids right away if given.

ParameterTypeDescription
name *string
asset_ids

lr_add_to_project_album

Add photos to a project album. Albums the user created cannot be modified.

ParameterTypeDescription
album_id *string
asset_ids *array

lr_delete_project_album

Delete a project album created by this server. Only the album is removed; photos stay in the catalog.

ParameterTypeDescription
album_id *string