immich-mcp
ActiveImmich photo library.
WHAT IT DOES
immich-mcp is a Model Context Protocol server for
Immich.
Point an MCP-compatible client at it and your photo and video library becomes a set of
tools the agent can call: browse and search assets, manage albums and tags, recognize
and merge people, surface memories, resolve duplicates, and group motion photos into
stacks, all as typed tool calls.
It exposes roughly 55 tools across 11 domains, with memories, duplicates, and stacks
supported out of the box. Search covers CLIP / semantic queries
(immich_search_smart) plus structured metadata search and the discovery
"explore" feed.
Two-tier write protection keeps the library safe: all writes are gated behind the
IMMICH_ALLOW_WRITES=true env var, and destructive tools additionally
require confirm: true on each call. Reads always work. Path-based uploads
are confined to an opt-in IMMICH_UPLOAD_BASE_DIR.
INSTALL
Published to npm. Install globally to get the immich-mcp binary, or build
from source. Requires Node.js 20+ and an Immich server with API access.
Configure with IMMICH_BASE_URL (note the /api suffix) and
IMMICH_API_KEY (Account Settings › API Keys). Set
IMMICH_ALLOW_WRITES=true to expose write and delete tools;
IMMICH_UPLOAD_BASE_DIR to allow path-based uploads;
IMMICH_VERIFY_SSL=false only for self-signed certs (scoped to the Immich
client alone).
CLIENT CONFIG
A sample mcpServers entry (Claude Desktop, or any MCP client that reads the
same shape). It runs the installed binary over stdio. Leave
IMMICH_ALLOW_WRITES at "false" until you want write tools.
{
"mcpServers": {
"immich-mcp": {
"command": "immich-mcp",
"env": {
"IMMICH_BASE_URL": "https://photos.example.com/api",
"IMMICH_API_KEY": "YOUR_KEY",
"IMMICH_ALLOW_WRITES": "false"
}
}
}
}
For Claude Code use claude mcp add immich-mcp -e IMMICH_BASE_URL=... -e
IMMICH_API_KEY=... -e IMMICH_ALLOW_WRITES=false -- immich-mcp. The README also
documents OpenClaw, Codex CLI, and Hermes Agent, including source-checkout variants.
CAPABILITIES / TOOLS EXPOSED
Roughly 55 MCP tools across 11 domains. Grouped below; see the README for the full per-argument reference.
System (5)
Assets (11)
Search (3)
Albums (8) & tags (7)
People (6)
Shared links, activities, memories, duplicates & stacks