photo-cli mcp starts a Model Context Protocol (MCP) stdio server that exposes your archived photo database to AI assistants. This lets tools like Claude Desktop, Claude Code, and VS Code query your photos conversationally — searching by date, location, album, or proximity to a GPS coordinate.
Synopsis
Prerequisites
- An archive folder created with
photo-cli archivethat contains thephoto-cli.sqlite3database. - .NET runtime available, or use the self-contained executable.
Arguments
Path to the archive folder containing the
photo-cli.sqlite3 database. Defaults to the current working directory.Custom file system path directly to the SQLite database file, bypassing the default database location within the archive folder. When provided, the database is read from this exact path instead of
[archive-folder]/photo-cli.sqlite3.MCP tools exposed
When a client connects, photo-cli registers the following tools:| Tool | Description |
|---|---|
search_photos | Search photos by date range, location text, or limit. Returns paths, dates, and location info. |
get_photo | Get full metadata for a specific photo by its archive file path. |
list_albums | List all albums with ID, name, type, creation date, and configuration. |
get_statistics | Get photo counts grouped by year, month, country, city, or camera model. |
find_near_location | Find photos taken near a GPS coordinate within a given radius (Haversine formula). |
list_photos_by_album_id | List photos belonging to an album by its numeric ID. |
list_photos_by_album_name | List photos belonging to an album by its name. |
list_photos_by_exact_date | List photos matching an exact date (year, month, day). All parameters are optional. |
list_photos_by_date_range | List photos within a date range. Both start and end dates are inclusive. |
open_photos_by_album_id | Open photos belonging to an album by its numeric ID in the default viewer (macOS Preview). |
open_photos_by_album_name | Open photos belonging to an album by its name in the default viewer (macOS Preview). |
open_photos_by_exact_date | Open photos matching an exact date in the default viewer (macOS Preview). |
open_photos_by_date_range | Open photos within a date range in the default viewer (macOS Preview). |
Setup
Claude Code (CLI)
Claude Desktop
Add the following to yourclaude_desktop_config.json:
macOS example with .NET global tool
macOS example with .NET global tool
VS Code
Add to.vscode/mcp.json or your user settings:
macOS example with .NET global tool
macOS example with .NET global tool