Logo Lightroom Classic MCP Server

Lightroom Classic MCP Server

Cộng đồng
Automaat

MCP server for Adobe Lightroom Classic

Nhà phát hànhAutomaat
Kho mãlightroom-mcp
Ngôn ngữLua
Bản fork
26
Sao
116
Công cụ có sẵn
0
Phương thức truyền tảistdio
Danh mục
Giấy phépMIT
Liên kết
  • Kết nối công cụ với quy trình làm việc AI

    Lightroom Classic MCP Server cung cấp các khả năng MCP mà ứng dụng khách và tác nhân AI tương thích có thể sử dụng.

  • 0 công cụ có sẵn

    Xem các thao tác có thể gọi bên dưới, kèm tên và mô tả nếu máy chủ cung cấp.

  • Cấu hình sẵn để sao chép

    Dùng các đoạn cấu hình cài đặt mẫu để thiết lập máy chủ này trong ứng dụng khách MCP bạn muốn dùng.

  • Chỉ số quan tâm đến mã nguồn mở

    116 sao và 26 bản fork từ kho mã được liên kết.

Lightroom Classic MCP Server

Lets Claude (and other AI assistants) talk to your Adobe Lightroom Classic photo catalog. Search photos, set ratings, edit develop settings, manage collections, import/export — all by chatting.

npm release

Works with: Claude Desktop, Claude Code, Codex CLI, Cursor, Windsurf, VS Code. Needs: Lightroom Classic on macOS or Windows. Nothing else — no programming required. Other languages: 繁體中文


Install (Claude Desktop — easiest, 3 steps)

This is the recommended path. Takes ~2 minutes, no terminal needed.

1. Download the installer

Go to the latest release page and download the file ending in .mcpb (it's near the top, called lightroom-mcp-<version>.mcpb).

2. Double-click the downloaded file

Claude Desktop opens automatically and asks: "Install Lightroom Classic extension?". Click Install.

Don't have Claude Desktop yet? Get it free from claude.com/download. It runs on Mac and Windows.

3. Turn on the plugin in Lightroom

  1. Quit and reopen Lightroom Classic. (The plugin needs a restart to show up.)
  2. In Lightroom, click File in the menu bar → Plug-in Manager.
  3. In the left list, click Lightroom MCP.
  4. On the right, click the Start Server button.
  5. You should see "Server running" appear. Done!

Try it

Open Claude Desktop and type:

List all my Lightroom collections.

Claude will list every collection in your catalog.

Some other things to try:

  • "Find all my 5-star photos from last summer."
  • "Add the keyword 'portfolio' to the photos I have selected in Lightroom."
  • "Apply the 'Vivid' develop preset to these photos."
  • "Compare my approved 'John Warm v3' preset with the current candidate."
  • "Create a versioned preset checkpoint from this representative photo and export it."
  • "Export the selected photos to my Desktop as JPEGs at 2000px wide."

Install (other AI tools)

Already using Claude Code, Codex, Cursor, Windsurf, or VS Code? Pick your tool below. All paths still end with the Lightroom step from the section above — restart Lightroom and click Start Server in Plug-in Manager.

Same .mcpb file as Claude Desktop above — Claude Code accepts it too. Or install via the CLI:

bash
claude mcp add lightroom -- npx -y @mskalski/lightroom-mcp
bash
codex mcp add lightroom -- npx -y @mskalski/lightroom-mcp

The Lightroom plugin installs itself the first time Codex talks to the server.

Open your client's MCP settings and add:

json
{
  "mcpServers": {
    "lightroom": {
      "command": "npx",
      "args": ["-y", "@mskalski/lightroom-mcp"]
    }
  }
}

The plugin installs itself the first time your client starts the server. If your client only starts the server on first tool call, you can install the plugin upfront:

bash
npx -y @mskalski/lightroom-mcp install-plugin
  1. Download the right file from the latest release:

    • Mac (Apple Silicon, M1/M2/M3/M4): lightroom-mcp-darwin-arm64
    • Mac (Intel): lightroom-mcp-darwin-x64
    • Windows: lightroom-mcp-windows-x64.exe
  2. macOS only — make it runnable and bypass Gatekeeper (the binary isn't signed):

    bash
    chmod +x ~/Downloads/lightroom-mcp-darwin-arm64
    xattr -d com.apple.quarantine ~/Downloads/lightroom-mcp-darwin-arm64
  3. Install the Lightroom plugin:

    bash
    ~/Downloads/lightroom-mcp-darwin-arm64 install-plugin
  4. Point your AI tool at the binary's full path. Example for Codex:

    bash
    codex mcp add lightroom -- /Users/you/Downloads/lightroom-mcp-darwin-arm64

If you'd rather drop the plugin in by hand:

  1. Download the matching zip from the latest release:
    • Mac: LightroomMCP-macos.lrplugin.zip
    • Windows: LightroomMCP-windows.lrplugin.zip
  2. Unzip it. You get a folder called LightroomMCP.lrplugin.
  3. Move that folder into Lightroom's Modules folder:
    • Mac: ~/Library/Application Support/Adobe/Lightroom/Modules/
    • Windows: %APPDATA%\Adobe\Lightroom\Modules\
    • (If the Modules folder doesn't exist, create it.)
  4. Restart Lightroom → Plug-in Manager → Start Server.

Something not working?

  1. Open Lightroom → File → Plug-in Manager → Lightroom MCP → Show Status. Both sockets should say connected: true. If not, click Start Server.
  2. Make sure you fully quit and reopened Lightroom after install (Cmd+Q on Mac, Alt+F4 on Windows). "Reload Plug-in" alone is not enough.
  3. See Troubleshooting below for specific errors.

Tools

ToolWhat it does
search_photosSearch by filename / keywords / rating / date range.
get_selected_photosPhotos selected in Lightroom (or filmstrip).
get_photo_metadataEXIF, GPS, IPTC location, copyright + develop settings for one photo.
list_collectionsAll collections and collection sets.
create_collectionNew collection (optional parent set).
add_to_collectionAdd photos to a named collection.
set_keywordsAdd or remove keywords on photos.
set_ratingSet 0-5 star rating on photos.
import_photosImport a file or folder into the catalog.
export_photosExport with format / quality / dimensions.
list_develop_presetsDiscover Lightroom-visible presets and plugin checkpoints.
get_develop_presetRead settings and backing-file metadata for one exact preset.
compare_develop_presetsDiff an approved historical preset against a candidate.
create_develop_presetCapture explicit settings from a photo as a versioned plugin checkpoint.
export_develop_presetCopy a custom/checkpoint preset backing file without overwriting.
apply_develop_presetApply an exact preset by UUID or disambiguated name.
copy_develop_settingsCopy develop settings between photos.
set_develop_settingsWrite SDK setting key/values directly.

Full schemas and parameter docs: server/src/list-tools-handler.ts.

Iterative preset workflow

Use a representative photo or virtual copy rather than a master edit:

  1. Read an approved historical preset with get_develop_preset.
  2. Apply bounded setting changes to the representative and export a Lightroom-rendered JPEG.
  3. Create a uniquely named checkpoint such as John Warm v4 with create_develop_preset.
  4. Compare it with the approved preset using compare_develop_presets.
  5. Repeat the render/inspect cycle; export the accepted checkpoint with export_develop_preset.

create_develop_preset uses Adobe's plugin preset API. These checkpoints are intentionally hidden from the Develop panel and are listed with scope: "plugin". They are versioned instead of overwritten. export_develop_preset refuses existing destinations and preserves the backing file format Lightroom supplies. Built-in presets without a backing file cannot be exported.

Point curves

set_develop_settings accepts Lightroom's composite and per-channel point curve keys: ToneCurvePV2012, ToneCurvePV2012Red, ToneCurvePV2012Green, and ToneCurvePV2012Blue. Each value is a flat list of 2 to 32 input/output pairs. Values are integers from 0 to 255, inputs must be strictly increasing, and each curve must start at input 0 and end at input 255.

json
{
  "photo_id": "283615",
  "settings": {
    "ToneCurveName2012": "Custom",
    "ToneCurvePV2012": [0, 0, 40, 25, 128, 132, 220, 240, 255, 250],
    "ToneCurvePV2012Blue": [0, 0, 64, 58, 192, 198, 255, 255]
  }
}

How it works

┌─────────────┐    stdio    ┌──────────────────┐  TCP :58763 →   ┌──────────────────┐
│  AI client  │ ◄─────────► │   MCP server     │ ──────────────► │ Lightroom plugin │
│ (Claude/    │             │  (Node TCP)      │ ←────────────── │   (LrSocket)     │
│  Codex/...) │             └──────────────────┘   ← TCP :58764  └──────────────────┘
└─────────────┘                                                           │
                                                                          ▼
                                                                catalog:withReadAccessDo

Plugin binds two LrSocket servers on localhost (58763 request, 58764 response). Server connects as TCP client. Frame: line-delimited JSON, \n terminator. Auto-reconnect on both sides. Same dual-port pattern as MIDI2LR.

CLI reference

lightroom-mcp [stdio]            Run MCP over stdio (default)
lightroom-mcp install-plugin     Copy bundled plugin into Lightroom Modules folder
lightroom-mcp --help | --version

Env vars:

VarDefaultPurpose
LIGHTROOM_MCP_REQUEST_PORT58763Plugin request port.
LIGHTROOM_MCP_RESPONSE_PORT58764Plugin response port.
LIGHTROOM_MCP_TOKEN_PATH~/.config/lightroom-mcp/tokenAuth token file.

If you change ports on the server side, change them in Plug-in Manager → Lightroom MCP to match.

Security

The plugin generates a 256-bit token in ~/.config/lightroom-mcp/token on Start Server. The MCP server attaches it to every request. Localhost-only — no remote attack surface.

Develop

bash
mise install                        # tools (node, bun, lua + luarocks, selene)
mise run install                    # npm ci
mise run build                      # tsc
mise run test                       # jest
mise run mcpb                       # build .mcpb bundle
mise run binary                     # build single-file binaries via Bun
mise run lua:lint                   # selene-lint the Lua plugin
mise run lua:test                   # busted specs for the Lua plugin

Repo layout:

  • server/ — TypeScript MCP server (ESM, NodeNext).
  • plugin/LightroomMCP.lrplugin/ — Lua plugin loaded by Lightroom Classic.
  • mcpb/manifest.json — .mcpb bundle manifest.
  • scripts/build-mcpb.mjs — pack the .mcpb.
  • scripts/build-binary.mjs — Bun --compile per-target binaries.
  • manual-test.mjs — direct TCP probe (bypasses MCP).

Adding a new tool

  1. Add a new Handler*.lua under plugin/LightroomMCP.lrplugin/.
  2. Register it in the DISPATCH table in PluginInfoProvider.lua.
  3. Add a contract entry in server/src/tool-contracts.ts.
  4. Declare any new LR globals in lightroom.yml (selene std).

Troubleshooting

  • failed to open localhost:58763 after Reload Plug-in — old async task still owns the port. Quit Lightroom (Cmd+Q on macOS / Alt+F4 on Windows) and reopen.
  • Plugin not connected — the server now self-restarts after a Reload Plug-in that tore down a running instance. If it's still stopped, click Start Server in Plug-in Manager; it reconnects within ~1s.
  • Lightroom hangs on "performing shutdown tasks" when quitting, or warns that "a shutdown task for the plug-in became unresponsive" — fixed by removing the plugin's shutdown hooks. LrShutdownApp requires the script to return a table whose LrShutdownFunction calls Lightroom's doneFunction; without it Lightroom waits out a no-progress timeout on every quit, and even with it the shutdown dialog still costs about a second. The hooks bought nothing: Lightroom cancels the plugin's function context on quit, disable and reload, and that cleanup handler already closes both ports. Measured on macOS: 7.7 s with the hooks, 0.1 s without. If a future change needs work done at quit, re-register LrShutdownApp and return that table.
  • Timeout errors — handler may be scanning a large catalog without filters; add rating, filename, keywords, or date filters to narrow.
  • macOS "cannot be opened because the developer cannot be verified" (binary path) — xattr -d com.apple.quarantine /path/to/binary. Or right-click → Open the first time.
  • Windows SmartScreen blocks the .exe — More info → Run anyway.

Logs:

ComponentmacOSWindows
Plugin~/Documents/LrClassicLogs/LightroomMCP.log%USERPROFILE%\Documents\LrClassicLogs\LightroomMCP.log
Claude Desktop~/Library/Logs/Claude/mcp*.log%APPDATA%\Claude\Logs\mcp*.log

The plugin resolves its log path via the OS (LrPathUtils), so on Windows with OneDrive-redirected Documents the file follows the redirect. The exact resolved path is shown as Log file: in Plug-in Manager → Show Status — use that if the table path above is empty.

License

MIT

Cài đặt

TypingMind
{
  "mcpServers": {
    "lightroom-mcp": {
      "command": "node",
      "args": [
        "/Users/YOUR_USERNAME/sideprojects/lightroom-mcp/server/dist/index.js"
      ]
    }
  }
}

Dùng MCP Lightroom Classic MCP Server với nhiều mô hình AI

TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên sau khi kết nối Lightroom Classic MCP Server, bạn có thể dùng với nhiều mô hình AI khác nhau trong TypingMind thay vì phải thiết lập riêng cho từng mô hình. MCP này chạy cục bộ thông qua trình kết nối MCP của TypingMind trên thiết bị của bạn.

Hướng dẫn thiết lập để dùng trình kết nối cục bộ

Dùng cách này khi máy chủ MCP cần truy cập các tệp, ứng dụng hoặc tài nguyên riêng tư trên máy tính của bạn.

1

Mở cài đặt MCP

Trong TypingMind, vào Cài đặt, Cài đặt nâng cao, rồi đến Giao thức ngữ cảnh mô hình và chọn Cài trình kết nối.

  1. Mở TypingMind trong trình duyệt của bạn.
  2. Nhấp vào biểu tượng Cài đặt.
  3. Vào Cài đặt nâng cao.
  4. Mở mục Giao thức ngữ cảnh mô hình.
  5. Nhấp vào Cài trình kết nối rồi chọn Thiết bị này.
Màn hình thiết lập trình kết nối MCP của TypingMind với tùy chọn Thiết bị này được chọn
2

Chạy lệnh trình kết nối

Chọn Thiết bị này, sao chép lệnh từ TypingMind và chạy trong Terminal. Giữ tiến trình chạy trong khi bạn dùng MCP.

  1. Sao chép lệnh thiết lập hiển thị trong TypingMind.
  2. Mở Terminal trên macOS hoặc Windows Terminal trên Windows.
  3. Dán và chạy lệnh.
  4. Xác nhận cài đặt gói nếu Terminal hỏi bạn có muốn tiếp tục không.
  5. Giữ tiến trình trong cửa sổ Terminal chạy trong khi dùng các công cụ MCP.
3

Thêm Lightroom Classic MCP Server làm máy chủ

Khi trạng thái trình kết nối là Sẵn sàng, nhấp vào Sửa máy chủ và dán cấu hình máy chủ MCP.

  1. Đợi đến khi trạng thái trình kết nối hiển thị Sẵn sàng.
  2. Nhấp vào Sửa máy chủ.
  3. Dán cấu hình máy chủ MCP của Lightroom Classic MCP Server.
  4. Lưu danh sách máy chủ.
  5. Làm mới nếu bạn muốn xác nhận trình kết nối vẫn sẵn sàng.
Cài đặt MCP của TypingMind hiển thị máy chủ đang hoạt động và nút Sửa máy chủ
{
  "mcpServers": {
    "lightroom-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Dùng kết nối với nhiều mô hình

Lưu danh sách máy chủ, mở Plugin, bật các công cụ MCP của Lightroom Classic MCP Server, sau đó chọn bất kỳ mô hình AI nào được hỗ trợ trong TypingMind và dùng các công cụ trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.

  1. Mở trang Plugin trong TypingMind.
  2. Bật các công cụ MCP của Lightroom Classic MCP Server.
  3. Bắt đầu cuộc trò chuyện và chọn mô hình AI bạn muốn dùng.
  4. Dùng các công cụ MCP trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.
  5. Chuyển sang mô hình AI khác bất cứ khi nào cần mà không phải kết nối lại MCP.
Cuộc trò chuyện TypingMind dùng các công cụ MCP đã bật với một mô hình AI được chọn
Bạn có thể dùng Lightroom Classic MCP Server giúp tôi làm việc này không?
Lightroom Classic MCP Server
Được. Tôi đã đọc.
Đây là kết quả tôi tìm được bằng Lightroom Classic MCP Server.

Câu hỏi thường gặp

Máy chủ MCP Lightroom Classic MCP Server dùng để làm gì?

Lightroom Classic MCP Server là máy chủ MCP cho phép các ứng dụng AI tương thích kết nối với công cụ và ngữ cảnh bên ngoài. Trong TypingMind, bạn chỉ cần thêm máy chủ MCP này một lần để các công cụ của nó có sẵn trong không gian làm việc AI của bạn.

Bạn có thể dùng MCP Lightroom Classic MCP Server với nhiều mô hình AI trong TypingMind không?

Có. TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên bạn có thể dùng Lightroom Classic MCP Server với nhiều mô hình AI như Claude, ChatGPT, Gemini hoặc các mô hình khác đã cấu hình trong TypingMind mà không cần thiết lập máy chủ MCP riêng cho từng mô hình.

Vì sao nên dùng MCP Lightroom Classic MCP Server với TypingMind?

TypingMind là một trong những giao diện trò chuyện với LLM tốt nhất vì tập hợp nhiều mô hình AI, prompt, plugin, tác nhân AI, khóa API và công cụ MCP vào một không gian làm việc. Khi kết nối Lightroom Classic MCP Server, bạn có thể dùng các công cụ MCP của dịch vụ này với những mô hình ưa thích, đồng thời giữ quy trình trò chuyện gọn gàng trong TypingMind.

Làm cách nào để kết nối MCP Lightroom Classic MCP Server với TypingMind?

Lightroom Classic MCP Server hoạt động thông qua trình kết nối MCP cục bộ của TypingMind. Đây là lựa chọn phù hợp nhất khi máy chủ MCP cần truy cập tệp cục bộ, ứng dụng máy tính, công cụ dòng lệnh hoặc tài nguyên riêng trên máy tính của bạn.

MCP Lightroom Classic MCP Server cung cấp những công cụ nào trong TypingMind?

Lightroom Classic MCP Server cung cấp các chức năng MCP mà bạn có thể bật từ trang Plugin của TypingMind để dùng trong trò chuyện hoặc gán cho tác nhân AI.

Bạn có cần chia sẻ khóa API với TypingMind để dùng MCP Lightroom Classic MCP Server không?

Không. TypingMind ưu tiên xử lý cục bộ và cho phép bạn kiểm soát nhà cung cấp mô hình, khóa API, prompt và cấu hình MCP. Nếu Lightroom Classic MCP Server yêu cầu xác thực, hãy thêm các header, cài đặt OAuth hoặc cấu hình cục bộ cần thiết cho máy chủ MCP đó khi tạo kết nối.

Máy chủ MCP liên quan

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇