---
title: "photoproof CLI and npm Package: Set Up the MCP Connector"
description: "The photoproof npm package: a CLI that sets up the photoproof.io MCP connector in Claude, Cursor, VS Code, Windsurf or Gemini CLI, plus a typed client for the public API."
canonical: https://photoproof.io/cli
---

# photoproof CLI and typed client

> For AI agents: site index at https://photoproof.io/llms.txt · MCP connector at https://photoproof.io/mcp · public API at https://photoproof.io/openapi.json

CLI



photoproof is the official command-line tool and typed JavaScript client for photoproof.io. It sets up the photoproof MCP connector in Claude Desktop, Cursor, VS Code, Claude Code, Windsurf or Gemini CLI, and it queries the public read-only API. MIT licensed, no dependencies, Node 18 or newer, no API key.

[photoproof on npm](https://www.npmjs.com/package/photoproof)[Developers](https://photoproof.io/developers)

## On this page

- Install and run
- Set up the MCP connector
- Query the public API from the terminal
- Use the client in code
- Links

## Install and run

You don't have to install anything to try it. `npx` downloads and runs the package:

Run without installing

```
npx photoproof setup
```

Install the CLI globally

```
npm install -g photoproof
```

Add the typed client to a project

```
npm install photoproof
```

The package provides two commands, `photoproof` and `photoproof-mcp`. `npx photoproof-mcp` does the same as `photoproof setup`. It needs Node.js 18 or newer.

## Set up the MCP connector

The connector lets your AI app read your account, galleries, client selections and comments, recent activity and delivery links, and create new empty galleries (with the `galleries:write` scope). Run `photoproof setup` to print the config for every supported app, or pick one:

```
npx photoproof setup                  # print the config for every supported app
npx photoproof setup cursor --write   # add photoproof to ~/.cursor/mcp.json
npx photoproof setup claude --write   # add it to Claude Desktop's config (via mcp-remote)
npx photoproof setup vscode --write   # add it to .vscode/mcp.json in this folder
npx photoproof setup claude-code      # print the `claude mcp add` command
npx photoproof setup windsurf --write # add it to ~/.codeium/windsurf/mcp_config.json
npx photoproof setup gemini --write   # add it to ~/.gemini/settings.json
```

- `--write` keeps your other MCP servers and saves the previous file as `.bak`.
- Then open the app, connect photoproof, sign in to photoproof.io and click **Allow**. The connector uses OAuth. There are no API keys.
- In Claude (web, desktop and mobile) you can skip the file: Customize → Connectors → Add custom connector → `https://photoproof.io/mcp`.
- The connector can't delete anything, upload photos, pay or email clients.

[Step-by-step AI connector guide](https://photoproof.io/mcp)[MCP server reference](https://photoproof.io/developers#mcp)

## Query the public API from the terminal

These commands call the public read-only API. No account or key is needed.

```
npx photoproof plans                 # plans and prices (EUR, VAT included)
npx photoproof plans --id pro
npx photoproof pages --section guides
npx photoproof search "lightroom selection" --limit 3
npx photoproof health
```

Add `--json` to any command for raw JSON. `--base-url` points the CLI at another API address, and `photoproof --help` lists every option.

## Use the client in code

It works in Node 18+ and in browsers (CORS is open). Errors throw `PhotoproofApiError` with `status`, `code` and `message`.

TypeScript or JavaScript

```
import { PhotoproofClient } from "photoproof";

const pp = new PhotoproofClient();
const { plans } = await pp.getPlans({ kind: "plan" });
const { results } = await pp.search("client selection", { limit: 5 });
const health = await pp.getHealth();
```

- `getPlans({ id?, kind? })` calls `GET /api/v1/plans`
- `listPages({ section? })` calls `GET /api/v1/pages`
- `search(q, { limit? })` calls `GET /api/v1/search`
- `getHealth({ check? })` calls `GET /api/health`

The OpenAPI 3.1 description is at [photoproof.io/openapi.json](https://photoproof.io/openapi.json).

## Links

- [photoproof on npm](https://www.npmjs.com/package/photoproof)
- [Source code on GitHub](https://github.com/mikemorakis/photoproof-mcp/tree/main/npm) (the `npm` folder)
- [Developers: public API, MCP server and discovery files](https://photoproof.io/developers)
- [AI connector setup for Claude, ChatGPT and Cursor](https://photoproof.io/mcp)
- Issues and questions: [support@photoproof.io](mailto:support@photoproof.io)

## CLI questions

### Do I need an API key?

No. The public API needs no key, and the MCP connector signs in with OAuth through your photoproof.io login. There are no API keys to create or store.

### What does --write change?

It adds a photoproof entry to the config file of the app you named, keeps your other MCP servers, and saves the previous version of that file next to it with a .bak ending. Without --write the CLI only prints the config.

### Does it work on the Free plan?

Yes. The connector works on every plan, Free included. Your plan's limits still apply, and AI apps are limited to 120 requests an hour and 20 new galleries a day.

### Can the CLI upload or delete photos?

No. The CLI sets up the connector and reads public data. The connector itself can't delete galleries, upload photos, pay or email your clients.

### Which license is it under?

MIT.

## Found a bug or missing something?

Tell us what you ran, what you expected and what happened.

[Email support@photoproof.io](mailto:support@photoproof.io)

Last updated: 26 November 2026 · Written by the [xolqy.com](https://photoproof.io/authors/xolqy) team
