# Edit photos from Claude, ChatGPT or Cursor

> The PhotoEditAI MCP server lets Claude, ChatGPT, Codex, Cursor and other assistants edit photos on your account: describe a change, use a quick edit, or cut out the subject. Prices, models and refunds are the same as on the website.

Server URL (Streamable HTTP): `https://photoeditai.org/mcp`

## Add it to your client

### Claude

In claude.ai or Claude Desktop open Settings → Connectors → Add custom connector, name it PhotoEditAI and paste the URL. Press Connect and approve access.

```
https://photoeditai.org/mcp
```

### Claude Code

Run this in a terminal, then type /mcp inside Claude Code and pick the server to sign in.

```
claude mcp add --transport http photoeditai https://photoeditai.org/mcp
```

### ChatGPT

In ChatGPT open Settings → Apps & Connectors → Advanced and turn on developer mode, then Create a connector with this URL and OAuth authentication.

```
https://photoeditai.org/mcp
```

### Codex

Add the block to ~/.codex/config.toml, then run codex mcp login photoeditai to sign in.

```
[mcp_servers.photoeditai]
url = "https://photoeditai.org/mcp"
```

### Cursor

Add the server to ~/.cursor/mcp.json (or Settings → MCP → Add new server). Cursor shows a Login button for it.

```
{
  "mcpServers": {
    "photoeditai": {
      "url": "https://photoeditai.org/mcp"
    }
  }
}
```

### VS Code

Save as .vscode/mcp.json in your workspace (or run MCP: Add Server). VS Code asks you to sign in on the first tool call.

```
{
  "servers": {
    "photoeditai": {
      "type": "http",
      "url": "https://photoeditai.org/mcp"
    }
  }
}
```

### Windsurf

Add it to ~/.codeium/windsurf/mcp_config.json and refresh the MCP panel in Cascade.

```
{
  "mcpServers": {
    "photoeditai": {
      "serverUrl": "https://photoeditai.org/mcp"
    }
  }
}
```

Your browser opens PhotoEditAI: sign in (or create a free account) and press Allow access. No password or API key is shared with the assistant.

## How sign-in works

1. Your client calls the server and receives a 401 that points to our OAuth metadata.
2. It registers itself (Client ID Metadata Document or dynamic registration) and opens a PKCE sign-in page.
3. You sign in on PhotoEditAI and approve that one app on the consent screen.
4. The client gets a token for https://photoeditai.org/mcp only, refreshed automatically and revocable at any time.

## Use an API key from scripts

Scripts and headless agents can send an API key from Settings → API keys as a bearer header instead of OAuth. API keys come with Lightbox and the team plans.

## Tools

- `list_models`: Every model with its credits per output size.
- `edit_photo`: Edit a photo (https link or upload) from an instruction or a quick edit, or cut out its subject. From 6 credits.
- `get_task`: Status and download link for one edit.
- `list_tasks`: Your latest edits, filterable by status.
- `get_credits`: Remaining balance, plan and resolution limit.

Credits are taken when a job starts and come back automatically if it fails. Prices match the pricing page.

## Troubleshooting

- Stuck on 'needs authentication': remove the server and add it again so the client restarts OAuth.
- 'Not enough credits': check get_credits, then top up on the pricing page. Nothing was charged.
- Edit still 'processing': most finish within a minute. Ask the assistant to call get_task again.
- 403 with an API key: the key's plan has no API access. Use OAuth or upgrade.

## Questions and fixes

### Does the MCP server cost extra?

No. Connecting is free on every plan; you only spend the credits each edit costs, as on the website. Sign-up credits work here too.

### Which models can my assistant use?

The same as the website: Nano Banana 2.1, Nano Banana Pro or GPT Image 2 for edits, and Recraft Remove Background for cut-outs. Ask it to call list_models for live prices.

### What happens if an image fails or my balance is too low?

Credits are taken when an edit starts and return automatically if it fails. If your balance is too low, the tool says so and nothing is charged.

### How do I give the assistant a photo?

Pass an https link to the image. It is copied into your private PhotoEditAI storage first, then edited, so the original link can expire afterwards.

### My client keeps asking me to sign in. What do I do?

Remove the server from the client and add it again so it starts a fresh sign-in. If you use an API key and get a 403, that plan has no API access: switch to OAuth or upgrade.

### Where do finished edits go, and how long do they take?

Most edits finish in 10 to 60 seconds. They are saved to My edits like any job started on the website, and the assistant gets the download link when done.


---

Source: https://photoeditai.org/mcp-server · Site index for AI agents: https://photoeditai.org/llms.txt · Full content: https://photoeditai.org/llms-full.txt
