immich-photo-manager
Health Warn
- License รขโฌโ License: MIT
- Description รขโฌโ Repository has a description
- Active repo รขโฌโ Last push 0 days ago
- Low visibility รขโฌโ Only 5 GitHub stars
Code Fail
- Hardcoded secret รขโฌโ Potential hardcoded credential in scripts/create_geographic_albums.py
- Hardcoded secret รขโฌโ Potential hardcoded credential in scripts/create_shared_links.py
- Hardcoded secret รขโฌโ Potential hardcoded credential in scripts/discover_locations.py
Permissions Pass
- Permissions รขโฌโ No dangerous permissions requested
This tool is an MCP server that connects an AI assistant directly to a self-hosted Immich photo library. It enables intelligent photo management, allowing the AI to search, curate geographic albums, clean up duplicates, and generate interactive HTML galleries.
Security Assessment
Overall Risk: High. The tool inherently accesses highly sensitive dataโyour entire personal photo and video libraryโby design. It requires configuring your Immich API key directly in your local environment files to make network requests to your server. However, the automated security scan flagged a critical failure: potential hardcoded credentials were detected directly inside the script files (create_geographic_albums.py, create_shared_links.py, and discover_locations.py). Hardcoded secrets in source code are a severe vulnerability, as they can easily be exposed if the code is shared, forked, or publicly modified. No dangerous system-level permissions are requested.
Quality Assessment
The project is fresh, with its most recent code push happening today. It is released under the standard MIT license, which is excellent for open-source transparency. However, community trust is currently nonexistent. With only 5 GitHub stars and a completely unknown user base, the project has not yet undergone the wider scrutiny and testing that open-source tools rely on to prove their reliability and security.
Verdict
Not recommended due to critical hardcoded credential vulnerabilities, though it may be worth using with extreme caution if you audit the code yourself and switch to secure environment variables.
๐ธ๐งน๐บ๏ธ MCP server for intelligent photo management with Immich โ search, curate geographic albums, clean up libraries, and publish galleries
immich-photo-manager
๐ธ๐งน๐บ๏ธ MCP server for intelligent photo management with Immich โ your self-hosted library, understood.
If you self-host Immich and your library has grown past the point where you can manage it by hand, immich-photo-manager gives Claude direct access to your Immich instance through 21 MCP tools and 11 specialized skills โ from finding cross-ecosystem duplicates with perceptual hashing to generating interactive HTML galleries with a Cowork Actions Panel.

๐ Quick Start
Prerequisites
- A running Immich instance (self-hosted, v1.90+)
- An Immich API key (how to create one)
- Python 3.10+ with
pip(download)
Option A: Install as Claude Plugin (recommended)
git clone https://github.com/drolosoft/immich-photo-manager.git
cd immich-photo-manager
# Register the marketplace and install
claude plugin marketplace add .
claude plugin install immich-photo-manager
Verify with claude plugin list.
That's it. Open Claude and say "how healthy is my photo library?" to get started.
Note: The plugin connects to your Immich MCP server at
localhost:8626. Make sure the server is running before using the plugin. See Option B for how to build and start the server.
Option B: Manual MCP Server Setup
If you prefer to configure the MCP server manually instead of using the setup script:
git clone https://github.com/drolosoft/immich-photo-manager.git
cd immich-photo-manager
pip3 install -r src/requirements.txt
Create .mcp.json in the project root:
{
"mcpServers": {
"immich": {
"command": "python3",
"args": ["-m", "immich_mcp_server"],
"env": {
"PYTHONPATH": "/ABSOLUTE/PATH/TO/immich-photo-manager/src",
"MCP_TRANSPORT": "stdio",
"IMMICH_BASE_URL": "https://your-immich-server.com",
"IMMICH_API_KEY": "your-api-key-here"
}
}
}
}
Important: Use
PYTHONPATHpointing to thesrc/directory. Do NOT usecwd(it is silently ignored by Claude Code).
Note on Smart Search (CLIP): The
search_smarttool requires the Immich machine learning service to be running and Smart Search enabled in Administration > Settings > Machine Learning Settings > Smart Search. If the ML service is not configured, the tool will return a helpful error message instead of failing silently. All other tools work without the ML service. See the Immich Smart Search docs for setup details.
๐ฌ Core Workflow
You: "Create albums for all the places I've traveled"
โ Scans GPS data from 28,000+ photos
โ Clusters by location, identifies 47 destinations across 14 countries
โ Proposes album list for approval
โ Creates albums with curated selections (20-50 photos each)
โ Publishes to Gallery with shared links
โ
Created: ๐ฎ๐น Roma, Italia (47 photos, Jun 2023)
โ
Created: ๐ช๐ฌ Cairo & Luxor, Egypt (63 photos, Mar 2024)
โ
Created: ๐ฒ๐ฝ Oaxaca, Mรฉxico (38 photos, Dec 2022)
... 44 more albums
Geographic album creation combines GPS coordinates, CLIP visual search, and temporal matching โ then filters out screenshots and duplicates automatically. One request, dozens of curated albums.
โจ Features
| Feature | What it does | |
|---|---|---|
| ๐ | AI-powered search | Natural language photo search via CLIP ("sunset at the beach", "birthday cake") |
| ๐บ๏ธ | Geographic albums | Create albums organized by place โ GPS + CLIP combined for smart curation |
| ๐งน | Library cleanup | Detect screenshots, duplicates, and low-quality images with multi-signal analysis |
| ๐ | Duplicate report | Deep cross-source duplicate analysis using perceptual hashing โ finds re-encoded copies across Apple Photos, Google Photos, and other imports |
| ๐ฅ | Library health | Comprehensive health check โ asset inventory, metadata quality, storage breakdown, and recommendations |
| ๐ | Timeline gaps | Find missing months, sparse periods, and single-source coverage risks in your photo timeline |
| ๐ง | Metadata fixer | Detect and repair broken dates (noon/midnight), missing GPS, wrong timezones โ with neighbor interpolation |
| ๐ | Auto-album curator | Finds new photos that belong in existing albums using GPS, CLIP, and temporal matching |
| ๐พ | Storage optimizer | Identify RAW+JPEG pairs, oversized videos, and other space hogs with reclaimable space estimates |
| ๐ฅ | People report | Face recognition insights โ who appears most, unnamed clusters worth naming, co-occurrence patterns |
| ๐ | Travel map | Interactive Leaflet.js map with clustered pins showing every place you've photographed |
| ๐ | Gallery publishing | Create shared links to make albums publicly accessible |
| ๐ผ๏ธ | Interactive HTML galleries | Self-contained gallery pages with embedded thumbnails, 3 themes (light/system/dark), 4 view modes, slideshow, and keyboard navigation |
| ๐๏ธ | Cowork Actions Panel | Select photos in the gallery and copy batch commands (Create Album, Get EXIF, Find Similar, Download, etc.) straight into Cowork chat |
| ๐ก๏ธ | Safety first | Never deletes automatically โ always shows findings and asks before acting |
๐ผ๏ธ Interactive Gallery & Cowork Actions
Say "show me photos from Barcelona" and the plugin generates a self-contained HTML gallery โ no server required, opens in any browser.
You: "Show me my Egypt album"
โ Fetches album + base64 thumbnails from Immich
โ Generates single-file HTML with embedded images
โ 3 themes (light/system/dark), 4 view modes, slideshow, keyboard nav
โ Cowork Actions Panel for batch operations
โ
egypt-album.html โ open it, browse your photos, select & act
The Cowork Actions Panel is a sticky toolbar inside each gallery. Select photos, then click any action โ the command is copied to your clipboard, ready to paste into Cowork chat:
| Action | What it copies |
|---|---|
| ๐ Copy IDs | Raw asset IDs for scripting |
| โ Create Album | "Create a new album with these photos: ..." |
| ๐ Add to Album | "Add these photos to album [name]: ..." |
| ๐ฆ Move to Album | "Move these photos to a different album: ..." |
| ๐ Get EXIF Info | "Get EXIF metadata for these photos: ..." |
| ๐ Find Similar | "Find visually similar photos to: ..." |
| ๐ผ๏ธ Set as Cover | "Set this photo as the album cover: ..." |
| โฌ๏ธ Download | "Download these photos: ..." |
| โค๏ธ Add to Favs | "Mark these photos as favorites: ..." |
| โ ๏ธ Remove from Album | "Remove these from album [name]: ..." |
| ๐๏ธ Delete Photos | "Delete these photos permanently: ..." |
The gallery is fully responsive, works offline once generated, and supports touch gestures on mobile.
๐ค Why immich-photo-manager?
Immich is excellent at storing, viewing, and searching your photos. But managing a large library โ deduplication, metadata repair, album curation, storage analysis โ still requires manual effort or custom scripts. immich-photo-manager bridges that gap.
| Manual / scripts | immich-photo-manager | |
|---|---|---|
| ๐ | Write API calls, parse JSON | Natural language โ "find my sunset photos from Italy" |
| ๐บ๏ธ | Export GPS, cluster manually | Geographic albums โ automatic GPS + CLIP + temporal matching |
| ๐งน | Hash files, diff checksums | Perceptual hashing โ finds re-encoded duplicates across import sources |
| ๐ | Query database, build reports | Library health โ one command for metadata quality, storage, recommendations |
| ๐ | SQL queries on timestamps | Timeline gaps โ detects empty months and single-source coverage risks |
| ๐ง | EXIF tools, manual review | Metadata fixer โ neighbor interpolation for missing GPS, broken timestamps |
| ๐ก๏ธ | Hope you don't delete the wrong thing | Safety first โ never deletes without showing findings and asking |
๐งฉ Skills
Skills are specialized workflows that combine MCP tools with domain knowledge. Each handles a specific photo management task end-to-end.
| Skill | What it does |
|---|---|
| ๐บ๏ธ Album Manager | Create and curate albums organized by geography โ GPS + CLIP + filtering |
| ๐ Photo Search | Natural language search combining GPS, CLIP, and metadata filters |
| ๐งน Photo Cleanup | Detect screenshots, duplicates, and low-quality images with confidence levels |
| ๐ Duplicate Report | Cross-source duplicate analysis using perceptual hashing (pHash) |
| ๐ฅ Library Health | Asset inventory, metadata completeness, storage breakdown, recommendations |
| ๐ Timeline Gaps | Detect empty months, sparse periods, single-source coverage risks |
| ๐ง Metadata Fixer | Repair broken dates, missing GPS, wrong timezones with neighbor interpolation |
| ๐ Auto-Album Curator | Find new photos that match existing albums using GPS, CLIP, and temporal patterns |
| ๐พ Storage Optimizer | Identify RAW+JPEG pairs, oversized videos, reclaimable space estimates |
| ๐ฅ People Report | Face recognition insights โ top faces, unnamed clusters, co-occurrence patterns |
| ๐ Travel Map | Interactive Leaflet.js map with clustered pins and heatmap overlay |
See the Skills Reference for detailed workflows, triggers, and output formats.
โ๏ธ How It Works
Claude โโ MCP (stdio) โโ Python Server โโ Immich REST API
your-instance
The MCP server is a Python module (immich_mcp_server) that communicates with Claude over stdio transport. It exposes 21 tools that map to Immich REST API endpoints, with added intelligence for batch operations, thumbnail embedding, and credential management.
Gallery HTML files are fully self-contained โ thumbnails are fetched from Immich, encoded as base64, and embedded directly in the HTML. This is required because the Cowork viewer runs in an about: sandbox that blocks all external network requests. See Architecture for the full technical explanation.
21 MCP Tools
| Category | Tools |
|---|---|
| ๐ฅ Health (3) | ping, get_server_version, get_statistics |
| ๐ท Assets (2) | get_asset_info, get_map_markers |
| ๐ Search (2) | search_metadata, search_smart (CLIP) |
| ๐ Albums (7) | list_albums, get_album, create_album, update_album, delete_album, add_assets_to_album, remove_assets_from_album |
| ๐ Sharing (2) | list_shared_links, create_shared_link |
| ๐ผ๏ธ Thumbnails (3) | get_asset_thumbnail, get_album_thumbnails, get_thumbnails_batch |
| ๐ง Config (2) | get_connection_info, update_credentials |
See the MCP Tools Reference for parameters, return types, and examples.
๐ Documentation
| Document | Description |
|---|---|
| Getting Started | Installation, configuration, deployment options, and troubleshooting |
| Architecture | How base64-embedded thumbnails solve the Cowork sandbox restriction |
| Skills Reference | All 11 skills โ workflows, triggers, parameters, output formats |
| MCP Tools Reference | All 21 MCP tools โ parameters, return types, examples |
| CORS Setup Guide | Optional โ enable direct URL thumbnail loading for browser-viewed galleries |
Additional dependencies (optional)
Some advanced skills require Python packages or direct database access:
pip3 install Pillow imagehash pillow-heif
| Package | Used by | Purpose |
|---|---|---|
Pillow |
duplicate-report | Image loading |
imagehash |
duplicate-report | Perceptual hashing (pHash) |
pillow-heif |
duplicate-report | HEIC/HEIF support (Apple Photos) |
| PostgreSQL client | library-health, timeline-gaps, people-report, storage-optimizer | Database-level analysis |
๐ค Contributing
Contributions are welcome. If you find a bug, have a feature idea, or want to improve a skill:
- Fork the repository
- Create a feature branch (
git checkout -b feature/my-feature) - Commit your changes
- Open a pull request
For bug reports and feature requests, use GitHub Issues.
โ Support
If immich-photo-manager saved you time or made your photo library easier to manage, consider buying me a coffee โ it keeps the next one coming!
๐ License
MIT License โ free to use, modify, and distribute.
Forged by Drolosoft ยท Tools we wish existed
Reviews (0)
Sign in to leave a review.
Leave a reviewNo results found