BI

barryw/immichmcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

56 stars 15 forks 品質 80 トレンド 8MIT

barryw/immichmcp は [https://github.com/barryw/immichmcp. からインポートされた MCP サーバーの候補です

概要

barryw/immichmcp は [https://github.com/barryw/immichmcp. からインポートされた MCP サーバーの候補です

概要(AI 翻訳)

Immichのモデルコンテキストプロトコル(MCP)サーバー - セルフホストされた写真とビデオ管理ソリューション。 このサーバーは、Immichライブラリを管理するための一流のAIインターフェイスを提供します。

##特徴

-Asset Management:写真/ビデオの検索、閲覧、アップロード、更新、削除

  • 直接ローカルアップロード: 短い配信、アップロードのみのURLを承認し、Immichにローカルフォルダを直接ストリーミング — APIキーが露出しず、コンテンツのバックアップによって再開されるcurlを超えてインストールしない -スマート検索:CLIP(例:「ビーチでのサンセット」)を使用したML搭載のセマンティック検索 -メタデータ検索:日付、場所、カメラ、人などによるフィルタ -アルバム:写真アルバムの作成、管理、共有 -人:顔認識クラスターの表示と管理
  • タグ: カスタムタグでアセットを整理する
  • 共有リンク: アルバムやアセットの共有URLを作成する
  • 活動: アルバム/アセットにコメントやいいねを追加

要件

  • .NET 10.0 SDK
  • Immich v3.0 または新しいサーバーインスタンス
  • Immich API キー

互換性

ImmichMCP 3.x は Immich v3 API を対象としています。 Immich v2サーバ用の古いImmichMCPリリースを使用します。

##インテグレーションテスト

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

ImmichMCP

A Model Context Protocol (MCP) server for Immich - the self-hosted photo and video management solution. This server provides a first-class AI interface to manage your Immich library.

Features

  • Asset Management: Search, browse, upload, update, and delete photos/videos
  • Direct Local Upload: Authorize a short-lived, upload-only URL and stream a local folder straight to Immich — no API key exposed, nothing to install beyond curl, resumable by content dedup
  • Smart Search: ML-powered semantic search using CLIP (e.g., “sunset at the beach”)
  • Metadata Search: Filter by date, location, camera, people, and more
  • Albums: Create, manage, and share photo albums
  • People: View and manage face recognition clusters
  • Tags: Organize assets with custom tags
  • Shared Links: Create shareable URLs for albums and assets
  • Activities: Add comments and likes to albums/assets

Requirements

  • .NET 10.0 SDK
  • Immich v3.0 or newer server instance
  • Immich API key

Compatibility

ImmichMCP 3.x targets Immich v3 APIs. Use an older ImmichMCP release for Immich v2 servers.

Integration Tests

Read-only integration tests can run against an existing Immich server without deploying ImmichMCP:

export IMMICH_BASE_URL="http://127.0.0.1:2283"
export IMMICH_API_KEY="your-api-key"
export IMMICH_INTEGRATION_TESTS=true
dotnet test ImmichMCP.Tests/ImmichMCP.Tests.csproj --filter "Category=Integration"

Mutation coverage (create/update/delete paths) is disabled by default. Enable it explicitly to also run the full 49-tool smoke:

export IMMICH_INTEGRATION_MUTATION_TESTS=true
dotnet test ImmichMCP.Tests/ImmichMCP.Tests.csproj --filter "Category=Integration"

(If your Immich runs somewhere not directly reachable, point IMMICH_BASE_URL at it however you normally reach it — e.g. a port-forward or tunnel — before running the tests.)

With mutation coverage enabled, ToolCoverageIntegrationTests exercises all 49 tools against the live server. It is strictly non-destructive to existing data: every mutation runs on throwaway fixtures the test creates (uploaded PNGs, an album, a tag, shared links, an activity) and teardown deletes only those; the two tools that would mutate real, un-creatable data (immich_people_update, immich_people_merge) are exercised with bogus IDs only and must refuse safely.

Deployment

ImmichMCP is published as a container image at ghcr.io/barryw/immichmcp. Run it wherever you host containers — Docker, Docker Compose, or Kubernetes.

  • Set IMMICH_BASE_URL and IMMICH_API_KEY (see Environment Variables).
  • Expose the HTTP port (default 5000). The MCP endpoint is served at /mcp. Two health endpoints are available: /health (liveness, use for restarts) and /health/ready (readiness, pings Immich and returns 503 if unreachable, use for traffic routing).
GitHub で README 全文を見る

インストール

docker run -i --rm -e IMMICH_BASE_URL=https://photos.example.com -e IMMICH_API_KEY=your-api-key ghcr.io/barryw/immichmcp:latest --stdio
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "immich": { "command": "dotnet", "args": ["run", "--project", "/path/to/ImmichMCP/ImmichMCP", "--", "--stdio"], "env": { "IMMICH_BASE_URL": "https://photos.example.com", "IMMICH_API_KEY": "your-api-key" } } } }