Apple Photos MCP Server
A Model Context Protocol (MCP) server that enables AI assistants like Claude to query, search, export, and inspect the macOS Apple Photos library — plus opt-in album and metadata write tools — backed by the osxphotos library.

Read-only by default. Out of the box the library is never modified — exports write files to a directory you choose, nothing more. A set of opt-in write tools (albums, titles, descriptions, keywords, favorites, dates, imports — never deletion) unlocks only when you explicitly set APPLE_PHOTOS_MCP_ENABLE_WRITES=1; without that flag, 2.x behaves exactly like the read-only 1.x releases.
What is This?
This server acts as a bridge between AI assistants and Apple Photos. Once configured, you can ask Claude (or any MCP-compatible AI) to:
- "Find all my photos from our trip to Spain in 2023"
- "Show me my favorite sunset photos" — and actually see them (
get-thumbnail returns viewable images)
- "How many photos do I have? What are my top keywords?"
- "Find photos of Sarah from last summer and export them to ~/Desktop/sarah-summer"
- "What did I import this week?" (
addedInLast), "Find my screenshots from 2024"
- "Do I have duplicate photos?" (
find-duplicates groups exact duplicates)
- "List my albums"
- "Tell me everything about photo UUID ABC-123" — including EXIF camera data
- With writes enabled: "File these into a Trailcam album", "Tag them all
deer", "Favorite the best one and caption it"
The AI assistant communicates with this server, which uses osxphotos to read the Photos library SQLite database directly. All data stays local on your machine.
Quick Start
Using Claude Code (Easiest)
If you're using Claude Code (in Terminal or VS Code), just ask Claude to install it:
Install the sweetrb/apple-photos-mcp MCP server so you can help me query my Apple Photos library
Claude will handle the installation and configuration automatically. Or register it yourself with one deterministic command:
claude mcp add apple-photos -s user -- npx -y apple-photos-mcp
The Python osxphotos dependency installs automatically on first use (a one-time, ~minute-long setup), so the only manual step is granting Full Disk Access — see Requirements below.
Using the Plugin Marketplace
Install as a Claude Code plugin for automatic configuration and enhanced AI behavior:
/plugin marketplace add sweetrb/apple-photos-mcp
/plugin install apple-photos
This method also installs a skill that teaches Claude when and how to use Apple Photos effectively.
A few things to know about the plugin install:
- The plugin is a git clone under
~/.claude/plugins/marketplaces/apple-photos-mcp/, and the server runs straight from that clone (no build step needed).
- The first tool call auto-bootstraps a Python venv with
osxphotos inside that clone — a one-time, ~minute-long setup that requires Python 3.11+ on your PATH (stock macOS ships 3.9; brew install [email protected]).
- Full Disk Access must be granted to the HOST app running Claude Code (Terminal, iTerm, VS Code, Claude Desktop) — see Requirements below.
Using the Codex Marketplace
The same plugin is available for Codex. Add the marketplace and install the plugin:
codex plugin marketplace add sweetrb/apple-photos-mcp
codex plugin add apple-photos@apple-photos-mcp