Skip to main content
Glama

lightroom-mcp

npm version build & tests GitHub stars license MIT node >=22.13 last commit PRs welcome

Node.js JavaScript SQLite npm OAuth 2.0

Claude MCP Claude Desktop extension (.mcpb) Adobe Lightroom

An MCP server that lets Claude (and other MCP clients) search, preview and organise your Adobe Lightroom cloud library. It runs on your own computer, with your own Adobe API keys.

  • Search by lens, camera, date, place, ISO, focal length or aperture. Loose names work: "Canon 45mm f1.2" finds RF45mm F1.2 STM.

  • Look at photos: up to 4 previews per call, shown directly to Claude.

  • Library statistics: camera, lens, country and city breakdowns.

  • Organise: create albums and folders, and add photos to albums. Anything it creates goes inside a top-level Automation folder. It never deletes or edits photos.

Search uses a metadata index kept locally in SQLite. Photos themselves are never stored. See PRIVACY.md.

Install from npm: npx -y lightroom-mcp. See the step-by-step guide. There's also a Claude Desktop extension, or you can build from source.

Unofficial and not affiliated with Adobe. You need your own Adobe Developer Console project.

Requirements

  • Node.js 22.13 or newer, for the built-in SQLite. Check with node --version.

  • An Adobe Developer Console project with the Lightroom Services API.

  • A browser on the same computer, for the one-time Adobe sign-in.

Related MCP server: Lightroom MCP Elite

1. Get your Adobe keys

  1. Open the Adobe Developer Console and create a project.

  2. Add API → Lightroom Services, and choose the OAuth Web App credential.

  3. Register this redirect URI on the credential. It must match exactly:

    http://localhost:8787/callback

    If Adobe only accepts https://, register https://localhost:8787/callback instead and set ADOBE_REDIRECT_URI to the same value. After you sign in, the browser will show an error page. Copy that page's address into the sign-in page, which has a box for it.

    If port 8787 is already in use on your computer, pick another port. Use it both in the redirect URI you register and in ADOBE_REDIRECT_URI.

  4. Copy the Client ID, which Adobe also calls the API key, and the Client Secret.

2. Set up with npm (step by step)

The package is lightroom-mcp on npm. You don't need to install anything globally: npx -y lightroom-mcp downloads it and runs it. Every step below was run against the packed npm package, and the output shown is what you'll see.

Step 1: Check it runs

npx -y lightroom-mcp --version
27.1.0

If you get an error about node:sqlite, update Node.js to 22.13 or newer.

Step 2: Save your Adobe keys

npx -y lightroom-mcp init
Created /Users/you/.config/lightroom-mcp/.env
Open it and fill in ADOBE_CLIENT_ID and ADOBE_CLIENT_SECRET, then run: lightroom-mcp login

This creates the file readable only by you (mode 600). Open it and fill in the two values from Get your Adobe keys:

ADOBE_CLIENT_ID=your-client-id
ADOBE_CLIENT_SECRET=your-client-secret

On Windows the file is %APPDATA%\lightroom-mcp\.env.

Step 3: Sign in to Adobe

npx -y lightroom-mcp login
Opening http://localhost:8787/
Sign in with the Adobe account that owns your Lightroom library. Waiting (15 minutes max)...
Signed in. Tokens saved to /Users/you/.config/lightroom-mcp/tokens.json

Your browser opens a small sign-in page that runs only on your computer. Click Sign in with Adobe, sign in, and you'll land on "Lightroom is connected". On a machine with no browser, add --no-browser and open the printed link yourself. Tokens refresh automatically, so you only do this once.

Step 4: Check everything

npx -y lightroom-mcp status
lightroom-mcp 27.1.0 on Node 22.13.0
Data folder:   /Users/you/.config/lightroom-mcp
Client ID:     set (a1b2…)
Client Secret: set
Redirect URI:  http://localhost:8787/callback
Signed in:     yes, since 2027-01-05T09:30:12.000Z
Catalog:       7f3c2b1a9e8d4c6b5a4f3e2d1c0b9a8f
Index:         0 images, not_started

Step 5: Build the search index

npx -y lightroom-mcp sync
3000 images indexed (full, +3000 this pass)
6000 images indexed (full, +3000 this pass)
...
Index complete.

This step is optional: Claude builds the index itself, about 3,000 photos per search. For a big library, running it here first is faster. After that, every search picks up new and changed photos on its own. If you stop it, run it again and it carries on from where it stopped.

Step 6: Connect it to Claude

Claude Code:

claude mcp add lightroom -- npx -y lightroom-mcp

Run claude mcp list to check. It should say lightroom: npx -y lightroom-mcp - ✔ Connected.

Claude Desktop, or any MCP client: add this to claude_desktop_config.json (in Claude Desktop, Settings → Developer → Edit Config), then restart Claude Desktop:

{
  "mcpServers": {
    "lightroom": { "command": "npx", "args": ["-y", "lightroom-mcp"] }
  }
}

The server reads your keys from the .env you made in step 2. You can put them in the config instead, under "env": { "ADOBE_CLIENT_ID": "...", "ADOBE_CLIENT_SECRET": "..." }.

npx -y lightroom-mcp install-skill
Installed the lightroom-search skill to /Users/you/.claude/skills/lightroom-search

The skill teaches Claude how to use these tools well. It covers when results are partial, how to resolve loose lens and camera names, how to cross-check counts against Adobe, and how to write a library statistics report. The command above installs it for Claude Code. For Claude Desktop or claude.ai, zip the skills/lightroom-search folder from this repository and upload it under Settings → Capabilities → Skills.

Step 8: Try it

Ask Claude:

Find my photos shot with the 45mm in Japan

Claude calls lightroom_search_assets with lens: "45mm" and country: "Japan". The loose "45mm" is matched to the lens name actually stored in your library:

resolved: lens "45mm" → RF45mm F1.2 STM, country "Japan" → Japan
matches: 2
  IMG_0533.CR3  2025-04-06  Canon EOS R6 | RF45mm F1.2 STM | f/1.2 1/500 ISO 400 | Tokyo, Japan
  IMG_0412.CR3  2025-04-03  Canon EOS R6 | RF45mm F1.2 STM | f/1.2 1/500 ISO 400 | Kyoto, Japan

Then try:

  • "Show me the first two": lightroom_preview shows the photos to Claude.

  • "Make an album called Japan 45mm with these": lightroom_create_album puts it inside Automation.

  • "Which lenses do I use most?": lightroom_index_summary.

If Claude says you're not signed in, ask it to "connect Lightroom" and open the link it gives you. This does the same thing as step 3.

Updating, pinning, or installing globally

  • npx -y lightroom-mcp uses the copy npx has cached. To pick up a new release, run any command with @latest once, for example npx -y lightroom-mcp@latest --version.

  • To pin a version, use lightroom-mcp@27.1.0 in the commands and the MCP config.

  • To install globally instead of using npx, run npm install -g lightroom-mcp. Then use lightroom-mcp login, lightroom-mcp status, and so on, with "command": "lightroom-mcp" and no args in the MCP config.

  • To sign out, run npx -y lightroom-mcp logout. To remove everything, delete ~/.config/lightroom-mcp.

3. Other ways to install

Claude Desktop extension (.mcpb)

  1. Download lightroom-mcp.mcpb from the Releases page, or build it with npm run pack:mcpb.

  2. Double-click it, or drag it onto Claude Desktop → Settings → Extensions.

  3. Enter your Client ID and Client Secret when asked. The secret is stored in your system keychain.

  4. Ask Claude to "connect Lightroom" and open the link it gives you to sign in.

From source

git clone https://github.com/andriantam/lightroom-mcp.git
cd lightroom-mcp
cp .env.example .env        # fill in ADOBE_CLIENT_ID and ADOBE_CLIENT_SECRET
npm install                 # dev tools only; the server has no runtime dependencies
npm test
node bin/lightroom-mcp.mjs login
claude mcp add lightroom -- node "$PWD/bin/lightroom-mcp.mjs"

Commands

Command

What it does

lightroom-mcp

Run the MCP server over stdio. This is what Claude starts.

lightroom-mcp init

Create ~/.config/lightroom-mcp/.env for your Adobe keys

lightroom-mcp login [--no-browser]

Sign in to Adobe in your browser

lightroom-mcp status

Show settings, sign-in, catalog and index status

lightroom-mcp sync [--full]

Build or update the index until it is complete

lightroom-mcp install-skill [--dir <folder>]

Copy the skill to ~/.claude/skills

lightroom-mcp logout

Delete the saved tokens

All commands accept --env-file <path>.

Tools

Tool

What it does

lightroom_connect

Sign in, or check the sign-in. Returns a local link when not signed in.

lightroom_search_assets

Search the index by lens, camera, date, ISO, focal length, aperture, place or file name

lightroom_index_summary

Counts by lens, camera, year, country or city

lightroom_standard_names, lightroom_add_alias

The standardised lens, camera and place names, and your own nicknames for them

lightroom_cross_check

Compare index results with Adobe, field by field

lightroom_sync, lightroom_index_status

Advance the index, or show its state

lightroom_preview

Show up to 4 photos to Claude (640, 1280 or 2048 px)

lightroom_library_structure

The full folder and album tree, including API-made folders

lightroom_list_albums, lightroom_list_album_assets

Albums and their photos, read live from Adobe

lightroom_create_folder, lightroom_create_album, lightroom_add_to_album

Create and add only, inside Automation

lightroom_list_catalogs, lightroom_list_assets, lightroom_list_all_assets, lightroom_get_asset, lightroom_health

Raw Adobe reads

Settings

Settings come from environment variables. Values set by the MCP client win. Otherwise the server reads .env files from these places, in order:

  1. --env-file or LIGHTROOM_MCP_ENV

  2. ./.env

  3. the package folder

  4. ~/.config/lightroom-mcp/.env

Variable

Default

ADOBE_CLIENT_ID

(required)

The Client ID, also called the API key

ADOBE_CLIENT_SECRET

The Client Secret

ADOBE_REDIRECT_URI

http://localhost:8787/callback

Must match the credential. The sign-in page uses its port.

LIGHTROOM_MCP_HOME

~/.config/lightroom-mcp (%APPDATA%\lightroom-mcp on Windows)

Where tokens and the index are kept

SYNC_PAGE_BUDGET

6

Pages of 500 photos per index update inside a tool call

Development

npm test             # offline tests; Adobe is mocked
npm run manifest     # regenerate manifest.json from the tool list (a test checks it)
npm run pack:mcpb    # build lightroom-mcp.mcpb

The server has no runtime dependencies: it uses Node's built-in fetch, http and node:sqlite, and a small JSON-RPC loop over stdio.

Versioning

Versions are YY.MAJOR.MINOR, for example 27.2.1:

Part

Means

Bump when

YY

Two-digit year of the release (27 = 2027)

Automatic. The first release of a new year is YY.1.0.

MAJOR

A release users should read about

New tools, changed behaviour, new settings, anything users must act on

MINOR

A maintenance release

Fixes and small improvements that change nothing users rely on

The year never goes backwards. Every version is valid semver, so npm and Claude Desktop accept it. Changes are listed in CHANGELOG.md.

To release:

  1. Add the notes to CHANGELOG.md and commit.

  2. Run npm run release -- minor or npm run release -- major. Add --dry-run to only see the next version. This sets the version in package.json and manifest.json, commits, and tags vYY.MAJOR.MINOR.

  3. Publish:

    npm run pack:mcpb && npm publish && git push --follow-tags
  4. Attach lightroom-mcp.mcpb to a GitHub release for the new tag.

License

MIT


Made by andriantam

Available Tools

20 tools
lightroom_add_aliasA

Teach the standardised list an extra name for an existing canonical value, e.g. alias "nifty fifty" for lens "RF50mm F1.8 STM". Only add one when the user asks or confirms it.

Inputs: kind (required), alias (required), canonical (required).

lightroom_add_to_albumA

Add images to an existing album anywhere in the library, the album the user names (app-made or API-made). Only adds; never removes. Ids that are already in the album are reported as failed, not duplicated. Album ids come from lightroom_list_albums. Folders are refused.

Inputs: album_id (required), asset_ids (required).

lightroom_connectA

Sign in to Adobe Lightroom, or check the sign-in. If not signed in, returns a local link (http://localhost:...) for the user to open in their browser and sign in with their Adobe account; give the user that link. If signed in, reports the catalog. Pass reconnect=true to sign in again (for example with another Adobe account).

Inputs: reconnect.

lightroom_create_albumA

HOUSE RULE: everything is created inside the top-level "Automation" folder (found or created automatically), never loose in the user's workspace. Create a new album in Lightroom and optionally put images in it, so the user can open it in the Lightroom app to edit and export. Only creates; never deletes or edits anything. Use asset ids from lightroom_search_assets. Albums made through the API are "project" albums and may appear under Connections / the integration section of the Lightroom app rather than in the normal albums list.

Inputs: name (required), asset_ids, folder_id.

lightroom_create_folderA

HOUSE RULE: created inside the top-level "Automation" folder (found or created automatically), one sub-folder per project. Creates a folder (Adobe calls it a project set) that albums can sit in. Only creates. Pass the returned album_id as folder_id to lightroom_create_album. May appear under Connections in the Lightroom app like API albums.

Inputs: name (required), parent_folder_id.

lightroom_cross_checkA

Compare the index with Adobe right now. Runs the same filters as lightroom_search_assets, then fetches a spread of the returned images live from Adobe and compares camera, lens, settings, place and capture time field by field, and reports any changes in Adobe the index has not picked up. Use when the user asks to verify results, or when a number matters.

Inputs: city, lens, limit, order, +14 more.

lightroom_get_assetC

Get full metadata for one asset.

Inputs: asset_id (required), catalog_id (required).

lightroom_healthB

Check that Adobe accepts this connection and the Lightroom API is reachable.

Inputs: no named parameters.

lightroom_index_statusA

Shows how many images are indexed, whether the first sync has finished, and when the index last checked Adobe. Does not contact Adobe for images.

Inputs: no named parameters.

lightroom_index_summaryA

Counts images in the synced index grouped by lens, camera, year, country or city. Use it to see which lenses or cameras exist before searching.

Inputs: group, limit, refresh.

lightroom_library_structureA

The complete folder and album structure of the account. Reads every page of all four album types (app-made: collection, collection_set; API-made: project, project_set) and draws the tree: [F] folder, [A] album, "api" marks API-made items, each with its id, and folders with album and sub-folder counts. API-made folders such as "Automation" are NOT shown by lightroom_list_albums or, usually, in the main album list of the Lightroom apps. Use find to locate one by name and get its full path and parent. By default only folders are drawn (to keep it short): pass include_albums for albums, folder_id to draw one folder.

Inputs: find, folder_id, max_depth, include_albums.

lightroom_list_album_assetsA

Read-only. One page of the photos inside one album (album_id from lightroom_list_albums). Returns the raw Adobe page: each resource has the asset id, and the embedded asset details when Adobe includes them. Use lightroom_get_asset on an id for full metadata.

Inputs: album_id (required), catalog_id (required), limit.

lightroom_list_albumsA

Every album and folder in the catalog, all pages, both app-made (collection, collection_set) and API-made (project, project_set) families. Each record: subtype, payload.name, payload.parent.id (the containing folder). Folders have subtype collection_set or project_set. Use lightroom_library_structure to draw the tree.

Inputs: catalog_id (required).

lightroom_list_all_assetsA

Read up to max raw asset records across pages. Output is very large (about 10 KB per image). Prefer lightroom_search_assets for finding images.

Inputs: catalog_id (required), max.

lightroom_list_assetsB

List one page of assets (images by default). Pass next_url from a previous result for the next page.

Inputs: catalog_id (required), limit, subtype, next_url.

lightroom_list_catalogsB

List the Lightroom catalogs this account can access.

Inputs: no named parameters.

lightroom_previewA

Look at images. Fetches up to 4 previews live from Adobe and returns them as pictures you can see, each labelled with file name, capture time, camera, lens, aperture and ISO. Nothing is stored. Use asset ids from lightroom_search_assets. Sizes: 640, 1280 (default), 2048. Previews are processed JPEGs, so they are good for composition, bokeh and overall quality, but not for judging pixel-level sharpness.

Inputs: asset_ids (required), size.

lightroom_search_assetsA

PREFERRED way to find images. Searches the local library index by lens, camera, date, ISO, focal length, aperture, place or file name, and returns compact rows. The index is brought up to date on every call. If index.complete is false the first sync is still running: results are partial and calling again continues it.

Inputs: city, lens, limit, order, +14 more.

lightroom_standard_namesA

The standardised list of lens, camera, country or city names found in the library, each with the spellings it is stored under, its image count and a status (auto, flagged = needs a look, confirmed). Use it to resolve a loose name ("Canon 45mm f1.2") to the real one before searching. Searches already resolve names automatically and report what they matched.

Inputs: kind, refresh.

lightroom_syncA

Advance the library index now. The first sync of a large library takes several calls: keep calling until complete is true. Pass full=true to re-walk the whole library (this also removes images deleted in Lightroom).

Inputs: full.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 20 tools

    Disambiguation4/5

    Most tools have clearly distinct purposes, and the descriptions do unusually explicit disambiguation work (search_assets is marked PREFERRED, list_all_assets says 'prefer search_assets', library_structure tells you to use it for the tree). The residual confusion sits in clusters: search_assets/list_assets/list_all_assets all list images, and index_summary/standard_names both report lens/camera counts, so an agent still has to read carefully to pick the right one.

    Naming Consistency4/5

    All 20 names share a consistent lightroom_ prefix and snake_case, which makes the set easy to scan. A handful drop the verb form (lightroom_preview, lightroom_health, lightroom_sync, lightroom_index_summary, lightroom_library_structure) while the rest follow verb_noun (list_albums, create_album, get_asset), so the pattern is mostly but not fully predictable.

    Tool Count3/5

    Twenty tools is at the heavy end for a single integration, and several earn their place only marginally: list_all_assets is explicitly discouraged in favor of search_assets, and index_status/sync/cross_check/health/index_summary form a five-tool index-maintenance cluster. The core capability set (search, preview, get, albums, folders) is reasonably sized, but pruning the redundant listing and index tools would tighten the surface.

    Completeness3/5

    Read, search, indexing, album/folder creation and add-to-album are covered well, but the write surface is deliberately create-only: there is no delete album, remove-from-album, rename, or any asset metadata/rating/keyword editing, so lifecycle operations dead-end after creation. An agent asked to clean up an album or correct a mistake has no tool for it.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      Enables AI agents to control Adobe Lightroom Classic on macOS for professional photo editing and catalog management. It allows users to inspect photos, apply develop settings, and automate workflows through a secure local bridge without direct catalog database manipulation.
      59
      5
      MIT
    • A
      license
      C
      quality
      D
      maintenance
      Enables AI agents to control Adobe Lightroom Classic develop settings, manage presets and catalogs, and perform round-trip handoffs with Adobe Photoshop for advanced retouching. Provides native socket bridging for exposure, color grading, search, ratings, keywords, collections, and export workflows.
      40
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to drive Adobe Lightroom Classic directly — searching and organizing catalogs, reading and writing the full set of develop parameters, building geometric and AI-generated masks (sky, subject, mountains, water, people), applying presets, and rendering previews, histograms, and exports. All capabilities are exposed as 167 MCP tools over a Lua plugin bridge, with write-confirmation sentinels so silently dropped edits surface as explicit errors.
      1
      Apache 2.0
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI agents to browse and search Adobe Photoshop Lightroom cloud catalogs, view edited photo renditions, download JPEGs, inspect capture and edit metadata, check account storage, and manage API-owned project albums through the Lightroom Partner API.
      10
      2
      MIT