# Google Photos — how to use (mcp.ai)

Google Photos is a cloud-based photo storage and organization service offering automatic backups, AI-assisted search, and shared albums for personal and collaborative media management

## Option A — via MCP (recommended)
Remote MCP endpoint (HTTP, streamable): `https://api.mcp.ai/p_googlephotos?ms=1781542980000`
Add it as a custom/remote MCP connector in your client (Claude, Cursor, VS Code…), then authenticate when prompted. Once connected, ask the agent to use the server's tools (e.g. `googlephotos_add_enrichment`).

## Option B — via direct REST API
Base URL: `https://api.mcp.ai/api/googlephotos`
Auth: `Authorization: Bearer sk_live_…` — create a workspace API key at https://mcp.ai/settings/api-keys
Discover endpoints: `GET https://api.mcp.ai/api/googlephotos/_endpoints`

### Endpoints
- `POST https://api.mcp.ai/api/googlephotos/add/enrichment` — Adds an enrichment at a specified position in a defined album.
  - body: { albumId: string, albumPosition?: object, newEnrichmentItem: object }
- `POST https://api.mcp.ai/api/googlephotos/batch/add/media/items` — Adds one or more media items to an album in google photos.
  - body: { albumId: string, mediaItemIds: string[] }
- `POST https://api.mcp.ai/api/googlephotos/batch/create/media/items` — Unified action to upload media files and create them as items in google photos.
  - body: { files: object[], albumId: string, albumPosition?: object }
- `POST https://api.mcp.ai/api/googlephotos/batch/get/media/items` — Returns the list of media items for the specified media item identifiers.
  - body: { mediaItemIds: string[] }
- `POST https://api.mcp.ai/api/googlephotos/create/album` — Creates a new album in google photos.
  - body: { id?: string, title: string, productUrl?: string, isWriteable?: boolean, mediaItemsCount?: string, coverPhotoBaseUrl?: string, coverPhotoMediaItemId?: string }
- `POST https://api.mcp.ai/api/googlephotos/get/album` — Returns the album based on the specified albumid.
  - body: { albumId: string }
- `POST https://api.mcp.ai/api/googlephotos/get/media/item/download` — Downloads a media item from google photos and returns it as a file.
  - body: { mediaItemId: string }
- `POST https://api.mcp.ai/api/googlephotos/list/albums` — Lists all albums shown to a user in the albums tab of google photos.
  - body: { pageSize?: integer, pageToken?: string, excludeNonAppCreatedData?: boolean }
- `POST https://api.mcp.ai/api/googlephotos/list/media/items` — Lists all media items from a user's google photos library.
  - body: { pageSize?: integer, pageToken?: string }
- `POST https://api.mcp.ai/api/googlephotos/search/media/items` — Searches for media items in a user's google photos library.
  - body: { albumId?: string, filters?: object, orderBy?: string, pageSize?: integer, pageToken?: string }
- `POST https://api.mcp.ai/api/googlephotos/update/album` — Updates an album's title or cover photo in google photos.
  - body: { title?: string, albumId: string, coverPhotoMediaItemId?: string }
- `POST https://api.mcp.ai/api/googlephotos/update/media/item` — Updates a media item's description in google photos.
  - body: { description?: string, mediaItemId: string }
- `POST https://api.mcp.ai/api/googlephotos/upload/media` — Upload a media file to google photos. supports images (up to 200mb) and videos (up to 20gb).
  - body: { description?: string, file_to_upload: object }

## More
- Page: https://mcp.ai/googlephotos
- Agent spec (llms.txt): https://mcp.ai/googlephotos/llms.txt
- Postman collection: https://mcp.ai/googlephotos/postman.json
