Skip to main content
Glama

Immich MCP Server

An MCP server for your Immich photo library with bidirectional image handling: pull photos into LLM context, push metadata and descriptions back, and manage faces and people.

Requirements

  • Node.js 20+

  • A running Immich instance

Related MCP server: Immich MCP Server

Install

git clone https://github.com/mattmaas/immich-mcp.git
cd immich-mcp
npm install
npm run build     # compiles TypeScript to dist/
npm start         # node dist/server.js

Environment Variables

Variable

Required

Description

IMMICH_URL

yes

Base URL of your Immich server, e.g. http://localhost:2283

IMMICH_API_KEY

yes

API key from Immich settings

MCP Client Configuration

Add this server to your MCP client's config:

{
  "mcpServers": {
    "immich": {
      "command": "node",
      "args": ["<path>/immich-mcp/dist/server.js"],
      "env": {
        "IMMICH_URL": "http://localhost:2283",
        "IMMICH_API_KEY": "your-api-key"
      }
    }
  }
}

Tools

Tool

Description

immich_search_smart

Smart (semantic) photo search

immich_search_metadata

Search by metadata

immich_search_people

Search by person

immich_get_asset

Get an asset by ID

immich_get_asset_info

Get asset metadata

immich_upload_asset

Upload a new asset

immich_update_asset

Update asset metadata

immich_delete_assets

Delete assets

immich_list_albums

List albums

immich_create_album

Create an album

immich_add_to_album

Add assets to an album

immich_get_album

Get an album's contents

immich_list_people

List detected people

immich_rename_person

Rename a person

immich_merge_people

Merge two people

immich_get_statistics

Library statistics

immich_run_job

Run a maintenance job

immich_describe_photo

Generate a description for a photo

immich_bulk_update

Bulk-update assets

immich_server_info

Server configuration info

immich_random_assets

Fetch random assets

immich_get_asset_by_date

Find assets by date

Usage

Ask your agent, for example:

  • "Find photos of my dog" → immich_search_smart(query="dog")

  • "Describe this photo" → immich_describe_photo(...)

  • "Add these photos to the 'Trip' album" → immich_add_to_album(...)

License

MIT

Available Tools

22 tools
immich_add_to_albumC

Add assets to an existing album.

Inputs: albumId (required), assetIds (required).

immich_bulk_updateB

Bulk update descriptions/metadata for multiple assets. Feed LLM-generated descriptions back into Immich. Pass an array of {id, description, isFavorite, rating}.

Inputs: updates (required).

immich_create_albumC

Create a new album, optionally adding assets to it.

Inputs: albumName (required), assetIds, description.

immich_delete_assetsB

Delete assets by IDs. Moves to trash by default.

Inputs: ids (required), force.

immich_describe_photoA

Fetch a photo so the LLM can see it, along with all metadata. Perfect for generating descriptions, analyzing content, or identifying what's in a photo.

Inputs: id (required).

immich_get_albumB

Get album details including all assets. Use withImages=true to see thumbnails of album contents.

Inputs: id (required), withImages.

immich_get_assetA

Fetch a photo/video and return it as an image the LLM can see. Use this to visually inspect a photo.

Inputs: id (required), size.

immich_get_asset_by_dateC

Get photos from a specific date or date range.

Inputs: date (required), size, withImages.

immich_get_asset_infoA

Get full metadata/EXIF info for an asset as JSON. Does not include the image itself.

Inputs: id (required).

immich_get_statisticsA

Get library statistics: photo count, video count, total size, etc.

Inputs: no named parameters.

immich_list_albumsB

List all albums with asset counts.

Inputs: shared.

immich_list_peopleC

List all recognized people with face counts.

Inputs: withHidden.

immich_merge_peopleC

Merge duplicate face clusters into one person.

Inputs: id (required), mergeIds (required).

immich_random_assetsB

Get random photos from the library. Great for exploring or sampling. Use withImages=true to see them.

Inputs: count, withImages.

immich_rename_personC

Name or rename a recognized person.

Inputs: id (required), name (required), birthDate.

immich_run_jobC

Trigger a server job: face detection, facial recognition, smart search (CLIP), sidecar metadata, thumbnail generation, video conversion, or storage migration.

Inputs: jobName (required), force.

immich_search_metadataC

Search photos by metadata: date range, location, camera, file type, etc.

Inputs: city, make, size, type, +8 more.

immich_search_peopleB

Search for recognized people by name. Returns person entries with face thumbnails.

Inputs: name (required), withHidden.

immich_search_smartA

Search photos using natural language (CLIP). Examples: 'sunset at beach', 'birthday cake', 'red car'. Returns matching photos with metadata. Use withImages=true to see thumbnails.

Inputs: query (required), size, personIds, withImages.

immich_server_infoA

Get Immich server version, features, and configuration.

Inputs: no named parameters.

immich_update_assetB

Update an asset's metadata: description, favorite status, rating, date, location.

Inputs: id (required), rating, latitude, longitude, +3 more.

immich_upload_assetB

Upload an image to Immich. Provide base64 data or a description to generate. The image is added to the library.

Inputs: fileName (required), base64Data (required), mimeType.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 22 tools

    Disambiguation4/5

    Most tools target distinct resources/actions, but immich_get_asset, immich_describe_photo, and immich_get_asset_info overlap significantly (image vs image+metadata vs metadata-JSON), and immich_get_asset_by_date overlaps with immich_search_metadata's date filtering. Descriptions mostly disambiguate these, so confusion is limited to a couple of pairs.

    Naming Consistency5/5

    All tools use a consistent immich_ prefix followed by snake_case verb_noun or noun_resource patterns (search_smart, get_asset, list_albums, create_album, delete_assets). No mixed camelCase/snake_case or inconsistent verb styles; only minor non-verb-led names like immich_random_assets.

    Tool Count3/5

    22 tools is on the heavy side for a photo library server, and a few (describe_photo duplicating get_asset + get_asset_info) don't fully earn their place. The breadth of search/album/people/job features justifies most tools, but it sits in the borderline-heavy range.

    Completeness4/5

    Core asset lifecycle is covered (upload, get, update, delete, bulk update) plus rich search, people, jobs, and stats. However album management lacks delete/update album and remove-from-album operations, leaving some dead ends in the album workflow.

    Maintenance

    ActivityStale
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables users to search and retrieve photos from a self-hosted Immich photo library via natural language, supporting CLIP-based semantic search, metadata filtering, album browsing, and share link creation.
      -
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to search, list, preview, and export photos from Apple Photos, Google Photos Picker sessions, and local Google Takeout archives using native search and metadata inspection.
      MIT