Model Context Protocol

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

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.See credit prices

Add it to your client

Pick your app, paste the snippet, then sign in when the browser opens.

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

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.

Review connected apps

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.

{
  "mcpServers": {
    "photoeditai": {
      "url": "https://photoeditai.org/mcp",
      "headers": {
        "Authorization": "Bearer sk_your_key"
      }
    }
  }
}
Manage API keys

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.

Updated