# Fix the light in photos from Claude, ChatGPT or Cursor

> With the Relight-AI.com MCP server, Claude, ChatGPT, Codex, Cursor and similar assistants can fix the light in your photos: hand over a link, name a fix like remove shadows or virtual twilight, and get the result back in the chat.

Server URL (Streamable HTTP): `https://relight-ai.com/mcp`

## Connect your assistant

### Claude

In Claude (web or desktop), go to Settings → Connectors → Add custom connector. Name it Relight-AI.com, paste the server URL above, hit Connect and approve the sign-in.

```
https://relight-ai.com/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 relight-ai-com https://relight-ai.com/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://relight-ai.com/mcp
```

### Codex

Add the block to ~/.codex/config.toml, then run codex mcp login relight-ai-com to sign in.

```
[mcp_servers.relight-ai-com]
url = "https://relight-ai.com/mcp"
```

### Cursor

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

```
{
  "mcpServers": {
    "relight-ai-com": {
      "url": "https://relight-ai.com/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": {
    "relight-ai-com": {
      "type": "http",
      "url": "https://relight-ai.com/mcp"
    }
  }
}
```

### Windsurf

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

```
{
  "mcpServers": {
    "relight-ai-com": {
      "serverUrl": "https://relight-ai.com/mcp"
    }
  }
}
```

Approving opens Relight-AI.com in a new tab: log in or create an account, then press Allow access. Your password and keys stay with Relight-AI.com; the assistant only gets a scoped token.

## What happens when you sign in

1. On the first request the server replies 401 and points your assistant at the Relight-AI.com OAuth metadata.
2. The assistant registers itself (Client ID Metadata Document or dynamic registration) and opens a PKCE sign-in.
3. You sign in to Relight-AI.com and allow that one assistant, nothing wider.
4. It gets a token scoped to https://relight-ai.com/mcp that renews quietly; revoke it any time from your connected apps.

## Fixing photos from a script

Running a script or a headless agent? Create a key under Settings → API keys and send it as a Bearer header instead of signing in with OAuth. API keys come with every plan and every credit pack.

## What the assistant can call

- `list_fixes`: The four fixes and the options each one takes.
- `list_models`: Fast and Pro, and what each output size costs in credits.
- `fix_light`: Relight one photo from an https link: remove shadows, match a reference photo's light, virtual twilight or even light. You confirm you may edit the photo. From 28 credits.
- `get_task`: Status and download link for one fix.
- `list_tasks`: Recent fixes on your account.
- `get_credits`: How many credits you have, which plan you're on and the biggest output size you can order.

A fix’s credits are reserved when it starts and handed back by itself if it fails, at the same prices as the pricing page.

## If the connection misbehaves

- 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.
- Fix 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.

## Fixing photos from chat: questions

### Is fixing through an assistant priced differently?

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

### Which models does the assistant get?

The same two as the fixer: Fast (Nano Banana 2.1) and Pro (Nano Banana Pro). Ask the assistant to call list_models for today's credit prices per size.

### What if a fix fails mid-chat or I run out of credits?

The credits are reserved at the start and refunded on their own if the fix fails. When your balance cannot cover a fix, the assistant is told so and nothing is charged.

### How do I send a photo from the chat?

Give the assistant an https link, or two for a light match. Relight-AI.com saves a private copy to your account before fixing it, so a short-lived link is fine.

### My assistant keeps sending me back to the sign-in. What now?

Remove Relight-AI.com from the assistant's server list and add it again; that starts a fresh sign-in. If an API key gets a 403, its plan doesn't include API access: sign in with OAuth instead, or pick a plan that has it.

### How long does a chat fix take, and where is the file?

Usually between 20 and 90 seconds. The fixed photo lands in My fixes next to the ones you made in the fixer, and the assistant receives a download link.


---

Source: https://relight-ai.com/mcp-server · Site index for AI agents: https://relight-ai.com/llms.txt · Full content: https://relight-ai.com/llms-full.txt
