# Put your face in our templates from Claude, ChatGPT or Cursor

> The FaceJoy.ai MCP server lets Claude, ChatGPT, Codex, Cursor and other assistants browse our photo and video templates, quote what a swap costs and put your own face into the template you pick. It only ever uses your own selfie, the one you uploaded with consent on the FaceJoy.ai website; the assistant can't send a photo, a link or a prompt. A swap made through your assistant runs on the same models, costs the same credits and is refunded the same way as one made on the website.

Server URL (Streamable HTTP): `https://facejoy.ai/mcp`

## Add it to your client

### Claude

Claude (claude.ai or Claude Desktop): go to Settings → Connectors → Add custom connector, call it FaceJoy.ai, paste the server URL, then press Connect and approve access.

```
https://facejoy.ai/mcp
```

### Claude Code

Paste this command into a terminal. Inside Claude Code, type /mcp and choose this server to sign in.

```
claude mcp add --transport http facejoy-ai https://facejoy.ai/mcp
```

### ChatGPT

ChatGPT: under Settings → Apps & Connectors → Advanced, switch on developer mode. Then use Create to add a connector with this URL, choosing OAuth as the authentication.

```
https://facejoy.ai/mcp
```

### Codex

Put this block in ~/.codex/config.toml and sign in with codex mcp login facejoy-ai.

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

### Cursor

Paste it into ~/.cursor/mcp.json, or use Settings → MCP → Add new server; a Login button for the server then appears.

```
{
  "mcpServers": {
    "facejoy-ai": {
      "url": "https://facejoy.ai/mcp"
    }
  }
}
```

### VS Code

Save it in your workspace as .vscode/mcp.json, or run the MCP: Add Server command. The first tool call prompts you to sign in.

```
{
  "servers": {
    "facejoy-ai": {
      "type": "http",
      "url": "https://facejoy.ai/mcp"
    }
  }
}
```

### Windsurf

Paste it into ~/.codeium/windsurf/mcp_config.json, then refresh Cascade's MCP panel.

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

FaceJoy.ai opens in your browser: sign in or make a free account, then press Allow access. The assistant never sees your password or an API key.

## How sign-in works

1. The assistant's first call gets a 401 reply that names our OAuth metadata.
2. The client then registers (by Client ID Metadata Document or dynamic registration) and opens a PKCE sign-in window.
3. On FaceJoy.ai you sign in and approve that single client on the consent screen.
4. It receives a token valid only for https://facejoy.ai/mcp; the token renews itself and you can revoke it whenever you like.

## Use an API key from scripts

Instead of OAuth, a script or headless agent can pass an API key (create one under Settings → API keys) as a bearer header. API keys come with every paid plan and credit pack.

## MCP tools your assistant can call

- `list_templates`: Our live photo and video templates with their slug, category, versions and credits per swap.
- `make_swap`: Puts your own face (your selfie uploaded with consent on the website) into one of our templates: 12 credits for a photo, 72 for a video template.
- `get_task`: Status and download link for one swap, including the motion step of a video template.
- `list_tasks`: Your latest swaps, filterable by status.
- `get_credits`: Remaining credits, plan and resolution limit.

Credits are taken only when a swap starts and come back automatically if it fails. Every other tool is free. Prices match the pricing page.

## Troubleshooting

- Client says 'needs authentication': delete the server from the client and add it back so sign-in starts again.
- 'Not enough credits': have the assistant run get_credits, then buy more on the pricing page. You were not charged.
- Swap still 'processing': ask the assistant to call get_task again in a moment. Video templates take a little longer.
- 403 with an API key: API keys need a paid plan or credit pack. Use OAuth or buy one.

## Questions and fixes

### Does the MCP server cost extra?

No. Connecting is free on every plan; you only spend the credits each swap costs, exactly as on the website. Your sign-up credits can be spent from the assistant as well.

### Which models can my assistant use?

The same models as the website: Nano Banana 2.1 for standard photo swaps, Nano Banana Pro for HD, and Seedance 2 Mini for the motion of video templates. For current credit prices, have it run list_templates.

### What happens if a swap fails or my balance is too low?

A swap takes credits only once it starts, and a failed one gives them back automatically. With too small a balance the tool refuses before charging anything; buy credits on the pricing page and try again.

### Can my assistant upload a photo or use someone else's face?

No. make_swap only uses your own selfie, uploaded on the FaceJoy.ai website after the consent screen, and only our built-in templates. If you haven't added a selfie yet, the assistant gives you the link to do it on the website.

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

Delete the server from the client and add it back; that starts a clean sign-in. If you use an API key and get a 403, your account has no paid plan or credit pack: switch to OAuth or buy one.

### Where do finished swaps go?

They are saved to My creations like any swap made on the website, and the assistant gets direct links once they are done.


---

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