lr-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| LR_MCP_HOME | No | Directory to store state (e.g., .env and tokens). Defaults to ~/.config/lr-mcp or $XDG_CONFIG_HOME/lr-mcp if set. | |
| LR_MCP_PORT | No | Sign-in callback port. | 8000 |
| ADOBE_CLIENT_ID | Yes | Client ID (also called API key) for the Adobe Lightroom API. | |
| ADOBE_CLIENT_SECRET | Yes | Client secret for the Adobe Lightroom API. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Browse a Lightroom (cloud) catalog, look at photos and export them. Find album ids with lr_list_albums, filter photos with lr_list_photos, then look at candidates with lr_view_photos. The API does not allow changing edits or ratings of existing photos, deleting photos, or modifying albums the user created; writes are limited to project albums created by this server.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| lr_loginA | 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_accountA | Account info: subscription status and cloud storage usage. |
| lr_list_albumsA | 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 finish in that time). An album whose count failed is also listed with '? photos' and the first line quotes the error. Counts are cached for up to 10 minutes. |
| lr_list_photosA | 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: 'YYYY-MM-DD' or 'YYYY-MM-DDTHH:MM:SS'. min_rating: minimum star rating (1-5). flag: 'pick' or 'reject'. camera / lens / filename: case-insensitive substrings. min_iso: minimum ISO. hour_from / hour_to: time of day in the camera's local capture time, 0-23 inclusive; wraps past midnight when hour_from > hour_to (e.g. 19 and 4 for night shots). max_fnumber / min_fnumber: f-number bounds, e.g. max_fnumber=2 for f/2 or wider, min_fnumber=8 for f/8 or narrower. Useful when lens info is missing (manual lenses). Photos without the needed capture time or f-number are excluded when these are set. A scan stops after 20000 assets or 60 s; the first line then says the results are partial, so on a large catalog narrow with captured_after up front. Each line: id | file | captured | rating | flag | exposure | camera + lens | title: ... | caption: ... Empty fields are left out; title and caption are cut to 60 characters (lr_get_photo has them in full). |
| lr_get_photoB | 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. |
| lr_view_photosA | 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'. |
| lr_download_photosA | 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/. 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 .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 each photo as soon as it is saved, so an interrupted call keeps its progress; on the next call into the same folder, photos whose file, size and edit time are unchanged are skipped. This needs a stable folder: album_id or an explicit dest_dir (asset_ids alone get a new export- folder each time). A .lr-mcp.json.lock file stays next to it. force=True re-downloads everything, e.g. if a saved file looks stale. Each file is written under a temporary name and renamed when complete, so the folder must be writable (in a read-only one every photo fails). A rendition still being generated after a minute, or a failed generation request, gets one more try. After 8 photos in a row fail with network or server errors (not e.g. a 404 for one photo) the rest are not tried, and the reply says how many; call again to continue. |
| lr_create_project_albumB | Create a project album owned by this server (shown under Connections in Lightroom). Adds asset_ids right away if given. |
| lr_add_to_project_albumB | Add photos to a project album. Albums the user created cannot be modified. |
| lr_delete_project_albumA | Delete a project album created by this server. Only the album is removed; photos stay in the catalog. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 10 tools
Each tool has a clearly distinct purpose: viewing images, listing/filtering photos, getting single-photo metadata, downloading files, and album/account/auth management. Overlap-prone pairs like lr_view_photos vs lr_download_photos vs lr_get_photo are explicitly differentiated by their descriptions (look at images, save files, read metadata).
All tools use a consistent lr_ prefix and snake_case, mostly following verb_noun patterns (lr_list_photos, lr_get_photo, lr_create_project_album). Minor deviations are lr_account (noun only) and lr_login (verb only), but these remain clear and readable.
Ten tools is well-scoped for a Lightroom catalog MCP: browsing, viewing, exporting, album management, and auth each earn their place without obvious redundancy. No tool feels trivial or excessive for the stated purpose.
Core read/export and project-album workflows are covered, but the surface lacks update operations entirely: no setting ratings, flags, keywords, titles, or captions, and no removing photos from an album. Searching by keyword or title is also missing, which are notable gaps for a photo catalog tool.