Purpose
immich-photo-manager is an unofficial community plugin for managing a self-hosted Immich photo library through an AI assistant. When the photo library grows beyond what can be organized manually, it lets the AI assistant access the Immich instance directly and complete searching, organizing, deduplication, and album curation through natural conversation. It communicates with the server through Immich's public API and supports Claude, Gemma, or any client compatible with MCP (Model Context Protocol).
Main Capabilities
- AI Search: CLIP-based natural language photo search, such as "beach sunset" or "birthday cake."
- Geographic Albums: Combines GPS, CLIP visual search, and time matching to create albums by location.
- Metadata Repair: Corrects noon/midnight timestamps, infers missing GPS from neighboring photos, and corrects time zone offsets.
- Library Cleanup: Detects screenshots, duplicates, and low-quality images through multi-signal analysis; near-duplicates and bursts can be stacked behind the best photo instead of being deleted directly, and this is reversible.
- Duplicate Detection: Uses perceptual hashing for cross-source analysis and can find re-encoded copies imported from Apple Photos, Google Photos, and other sources.
- Batch Rotation: Rotates an entire album or selected content at once (90°/180°/270°), non-destructively, cumulatively, and with one-click restoration.
- PDF Reports: Exports albums or selected content as PDFs with metadata, video frames, and AI captions, generated locally; album layouts can provide a full page and separate captions for each selected video moment, with optional cover/index/location pages.
- Video Frames: Captures frames from any clip at even intervals, or by segment (start/end), with a minimum interval down to one frame per second, for the AI to describe video content.
- People and Face Management: Lists, searches, merges, and organizes recognized people; reassigns misidentified faces; views face thumbnails.
- Trash and Asset Lifecycle: Safely deletes to trash, permanently deletes, and restores from trash.
- Library Health: Gets an asset inventory, metadata quality, storage distribution, and recommendations with one command.
- Tags and Organization: Creates, applies, and manages tags; adds or removes tags in bulk.
- Server Awareness: Reports the Immich version and enabled features (OCR, smartsearch, faces, maps) and the known behavior of that major version.
- Text in photos: OCR finds text in photos (receipts, street signs), and explore, city, and suggestion calls return the exact spelling needed for filters.
- Date view: a calendar heatmap bucketed by month, showing gaps and busy dates, plus Immich's "On This Day" memories.
- Two-way sharing: partner libraries (Immich family sharing) as well as comments and likes on shared albums.
- Original file export: package an album or selected content into a single zip downloaded locally, reporting the size before download.
- Cross-session notes: store decisions and actions on each asset so the next cleanup can skip already-reviewed content.
- Docker run: multi-architecture images, serving MCP over HTTP on port 8626, supporting both protocol eras, with the same 94 tools.
- Interactive gallery: self-contained HTML pages with embedded thumbnails, 3 themes, 4 view modes, and a Cowork Actions Panel for batch operations.
How to use
Prerequisites: a running Immich instance (self-hosted, v1.90+), an Immich API key, Python 3.10+ and pip.
Install (Claude Code plugin): after installation, it will prompt that the server URL and API key are not set. You can enter them in-session via the /plugin dialog (the key is stored in the system secure storage), or pass them in the shell via --config immich_base_url=... --config immich_api_key=.... After restarting Claude Code, you can connect to Immich via guided setup or a one-line command, and the credentials will be saved for subsequent sessions.
Update the plugin: update with a one-line command, no reinstall needed, then restart Claude Code. After pulling a new version, you need to rerun pip3 install -r src/requirements.txt.
Other MCP clients: you can run the package entry point directly with uvx. MCP stdio transport is used by default; setting MCP_TRANSPORT=http runs it as a Streamable HTTP service.
Docker: images are available on the GitHub Container Registry (amd64 + arm64), serving MCP over HTTP on port 8626. Point a Streamable HTTP client at http://localhost:8626/mcp。健康检查在 /health. Tools that write files will place files in /data, requiring a mounted volume.
Claude Desktop (macOS): The app cannot see the shell's PATH, so the full path to uvx must be written in "command". First run uvx immich-photo-manager --help once in the terminal to complete the initial download, then quit and reopen Claude Desktop.
Use Cases
- Photo libraries are large and difficult to organize manually, and you want to batch-create albums and search photos via natural language.
- You need to clean up duplicate photos, screenshots, and low-quality images while keeping operations reversible.
- You need to fix metadata issues such as timestamps and GPS.
- You need to generate PDF albums, video frame descriptions, or interactive HTML galleries.
- You need to manage people's faces, tags, shared links, and the trash.
Limitations and Notes
- This plugin is an unofficial community project and is not affiliated with, sponsored by, or endorsed by Immich or FUTO.
- The plugin process runs locally and only communicates with the user-configured Immich; however, the content the assistant reads (file names, dates, EXIF, album lists, and thumbnails when images are requested for viewing, 250px by default, 1440px previews on demand) is sent to the model being used. Original files are never fetched. When using a local model (LM Studio, Ollama), data does not leave the network.
- PDF reports are written to local disk and are not sent anywhere unless return_base64=true is passed.
- When an asset has GPS, the Places page loads map tiles from tile.openstreetmap.org, which is the server's only third-party call; pass map=false to skip it.
- Gallery pages do not load external resources; the travel map loads Leaflet and its two plugins from unpkg.com and tiles from OpenStreetMap.
- Credentials entered in the plugin configuration dialog are stored in the system secure storage; when provided in a conversation, they pass through the model and are stored in two files readable only by the user.
- Links created by create_shared_link can be opened by anyone who has the URL.
- delete_assets moves assets to the trash, and restore_assets can undo it; force=true is required for permanent deletion, and empty_trash is also a permanent operation. The cleanup and deduplication skills show results first and wait for confirmation.
- The plugin does not change Claude's permission settings.
- Only one Immich instance can be connected at a time.
- Tested on Immich 2.7.5 and 3.1.0, with 364 unit tests run on each push.