lightroom-mcp
# lightroom-mcp
[](https://www.npmjs.com/package/lightroom-mcp)
[](https://github.com/andriantam/lightroom-mcp/actions/workflows/test.yml)
[](https://github.com/andriantam/lightroom-mcp/stargazers)
[](LICENSE)
[](https://nodejs.org)
[](https://github.com/andriantam/lightroom-mcp/commits/main)
[](https://github.com/andriantam/lightroom-mcp/pulls)
[](https://nodejs.org)
[](https://developer.mozilla.org/docs/Web/JavaScript)
[](https://nodejs.org/api/sqlite.html)
[](https://www.npmjs.com/package/lightroom-mcp)
[](https://developer.adobe.com/developer-console/docs/guides/authentication/UserAuthentication/)
[](https://claude.ai)
[](https://modelcontextprotocol.io)
[](https://github.com/modelcontextprotocol/mcpb)
[](https://developer.adobe.com/lightroom/lightroom-api-docs/)
An [MCP](https://modelcontextprotocol.io) 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](PRIVACY.md).
**Install from npm:** `npx -y lightroom-mcp`. See the [step-by-step guide](#2-set-up-with-npm-step-by-step). There's also a [Claude Desktop extension](#claude-desktop-extension-mcpb), or you can [build from source](#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.
## 1. Get your Adobe keys
1. Open the [Adobe Developer Console](https://developer.adobe.com/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](https://www.npmjs.com/package/lightroom-mcp). 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
```bash
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
```bash
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](#1-get-your-adobe-keys):
```bash
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
```bash
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
```bash
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
```bash
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:**
```bash
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:
```json
{
"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": "..." }`.
### Step 7: Add the skill (recommended)
```bash
npx -y lightroom-mcp install-skill
```
```
Installed the lightroom-search skill to /Users/you/.claude/skills/lightroom-search
```
The [skill](skills/lightroom-search/SKILL.md) 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](https://github.com/andriantam/lightroom-mcp/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
```bash
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
```bash
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](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:
```bash
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](LICENSE)
---
Made by [andriantam](https://andriantam.com)
TDQS
Scored across 20 tools
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.
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.
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.
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.