# Image Generation MCP Server for Claude & Cursor

> Ask Claude for a trend in plain words. The photo comes back in the chat.

Web page: https://reface.ai/unboring/developers/mcp

Sign-in with OAuth for MCP clients comes next. Until then, the server takes an API key.

## Connection

- Endpoint: `https://reface.ai/unboring/api/v2/mcp`
- Transport: Streamable HTTP
- Header: `Authorization: Bearer ub_live_...`

## Install

Pick your client. With a key in this tab, the links and configs carry it; without one they have ub_live_... for you to replace.

### Claude Code

Run in your terminal. Add --scope project to share the server with your repository, but keep the key out of it.

```bash
claude mcp add --transport http unboring https://reface.ai/unboring/api/v2/mcp --header "Authorization: Bearer ub_live_..."
```

### Cursor

Add to Cursor opens Cursor and installs the server. Or add this to ~/.cursor/mcp.json for every project, or to .cursor/mcp.json in one project.

```json
{
  "mcpServers": {
    "unboring": {
      "url": "https://reface.ai/unboring/api/v2/mcp",
      "headers": { "Authorization": "Bearer ub_live_..." }
    }
  }
}
```

### VS Code

Add to VS Code opens VS Code and installs the server. Or add this to .vscode/mcp.json: VS Code then asks for the key once and keeps it out of the file.

```json
{
  "servers": {
    "unboring": {
      "type": "http",
      "url": "https://reface.ai/unboring/api/v2/mcp",
      "headers": { "Authorization": "Bearer ${input:unboring-key}" }
    }
  },
  "inputs": [
    { "type": "promptString", "id": "unboring-key", "description": "Unboring API key", "password": true }
  ]
}
```

### Claude Desktop

Open Settings, Developer, Edit config, and add this to claude_desktop_config.json. It runs the server through mcp-remote, so you need Node.js. Restart Claude after you save.

```json
{
  "mcpServers": {
    "unboring": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://reface.ai/unboring/api/v2/mcp", "--header", "Authorization:${UNBORING_AUTH}"],
      "env": { "UNBORING_AUTH": "Bearer ub_live_..." }
    }
  }
}
```

### Other clients

Windsurf, Zed, Cline and other clients that speak Streamable HTTP take this JSON. Clients that only speak stdio use the Claude Desktop config.

```json
{
  "mcpServers": {
    "unboring": {
      "type": "http",
      "url": "https://reface.ai/unboring/api/v2/mcp",
      "headers": { "Authorization": "Bearer ub_live_..." }
    }
  }
}
```

## Tools

The server exposes six tools. Your agent picks them from what you ask; you never call them by hand. Results are URLs.

### `list_tools`

What Unboring can do and what each tool costs in tokens.

No arguments.

Example call:

```json
{}
```

Result:

```json
{
  "tools": [
    { "id": "face-swap", "name": "Face swap", "price": { "tokens": 1, "unit": "face" }, "...": "..." },
    { "id": "trend", "name": "Trends", "price": { "tokens": 4, "unit": "job" }, "...": "..." }
  ]
}
```

### `list_templates`

Templates of one tool with their preview URLs, faces and price. Trends by default. For ai-video: the styles, with a preview video and the number of photos.

Arguments:

- `tool`: Optional. trend (default), ai-video, face-swap, face-swap-video, animate or ai-editor.
- `category`: Optional. A category slug from an earlier answer.
- `query`: Optional. Search in titles.
- `limit`: Optional. 1 to 50, 10 by default.

Example call:

```json
{ "tool": "trend", "limit": 2 }
```

Result:

```json
{
  "tool": "trend",
  "items": [
    {
      "id": "90s-yearbook",
      "tool": "trend",
      "title": "90s Yearbook",
      "description": "Your school portrait from the mid-90s: mottled backdrop, soft flash, big smile.",
      "preview_url": "https://reface.ai/unboring/media/gen/trends/90s-yearbook.jpg",
      "photos": 1,
      "results": 4,
      "price_tokens": 8
    },
    {
      "id": "70s-disco",
      "tool": "trend",
      "title": "70s Disco Night",
      "description": "Satin shirts, mirror balls and warm dance-floor light, straight out of 1977.",
      "preview_url": "https://reface.ai/unboring/media/gen/trends/70s-disco.jpg",
      "photos": 1,
      "results": 1,
      "price_tokens": 4
    }
  ],
  "total": 13
}
```

### `upload_image`

Uploads a photo from a URL or from the chat and returns upload_id and the faces.

Arguments:

- `url`: A public http(s) URL of the photo. Or pass data instead.
- `data`: The image as base64, when it comes from the chat.
- `content_type`: With data: image/jpeg, image/png or image/webp.
- `purpose`: Optional. target for a photo or video to swap faces into.

Example call:

```json
{ "url": "https://storage.googleapis.com/reframe-test-temporary-web/images/31d/31d_948f27a6-74dc-4606-a55c-34a95db7e635.jpg" }
```

Result:

```json
{
  "upload_id": "63e31bda-0566-4394-ba41-52a93ad2cddd",
  "kind": "image",
  "url": "https://storage.googleapis.com/reframe-test-temporary-web/images/31d/31d_63e31bda-0566-4394-ba41-52a93ad2cddd.jpg",
  "media_url": null,
  "width": 675,
  "height": 900,
  "face_count": 1,
  "faces": [{ "id": "a28c1667-9737-48bd-bdfe-c1890f17deab", "box": { "x": 0.3541, "y": 0.1922, "w": 0.2948, "h": 0.2756 } }]
}
```

### `create_job`

Starts a trend, an AI video, a face swap, an animation or an edit. Spends tokens and returns job_id.

Arguments:

- `tool`: trend, ai-video, face-swap, face-swap-video, animate or ai-editor.
- `upload_ids`: Upload ids from upload_image.
- `trend_id`: trend: the id from list_templates.
- `style_id`: ai-video: the id from list_templates.
- `template_id`: face-swap, face-swap-video, animate: the template id.
- `target_upload_id`: Optional. Swap into your own photo or video instead.
- `prompt, preset_id`: ai-editor: what to change, or a preset id.

Example call:

```json
{ "tool": "trend", "trend_id": "70s-disco", "upload_ids": ["63e31bda-0566-4394-ba41-52a93ad2cddd"] }
```

Result:

```json
{
  "job_id": "8ca635a4-b14a-4510-a300-734cee9b2754",
  "status": "queued",
  "eta_s": 45,
  "cost_tokens": 4,
  "poll_after_ms": 1000,
  "available": 6,
  "next": "Call get_job with this job_id and wait=30 until it finishes."
}
```

### `get_job`

Status and result links of a job. Can wait up to 60 seconds for it to finish.

Arguments:

- `job_id`: The id from create_job.
- `wait`: Optional. Seconds to wait for the job to finish, up to 60.

Example call:

```json
{ "job_id": "8ca635a4-b14a-4510-a300-734cee9b2754", "wait": 30 }
```

Result:

```json
{
  "job_id": "8ca635a4-b14a-4510-a300-734cee9b2754",
  "tool": "trend",
  "status": "succeeded",
  "progress": 1.0,
  "cost_tokens": 4,
  "result": {
    "kind": "image",
    "url": "https://storage.googleapis.com/reframe-test-temporary-web/outputs/images/31d/31d_84d704bb-2f69-42db-95da-1eb9c6839bac.jpeg",
    "urls": ["https://storage.googleapis.com/reframe-test-temporary-web/outputs/images/31d/31d_84d704bb-2f69-42db-95da-1eb9c6839bac.jpeg"],
    "expires_at": "2026-12-20T13:54:19.130591Z"
  },
  "error": null
}
```

### `get_balance`

Tokens you can spend: the plan allowance and packs.

No arguments.

Example call:

```json
{}
```

Result:

```json
{
  "available": 10,
  "allowance": null,
  "packs": { "left": 10 },
  "plan": null
}
```

## Things to ask

- "What is trending this week, and what does each trend cost?" Calls list_templates.
- "Put me in the Victorian winter trend. Use the photo I just attached." Calls upload_image, create_job, get_job.
- "Swap my face into this painting, then make it sing." Calls upload_image, create_job twice, get_job.
- "How many tokens do I have left this month?" Calls get_balance.

## Tokens

create_job spends tokens from your Unboring balance at the same prices as the site. Ask your agent to check get_balance first if you are not sure. Failed jobs cost nothing.

| Tool | API name | Tokens |
| --- | --- | --- |
| Trend | `trend` | from 4 tokens |
| Face swap, photo | `face-swap` | 1 token a face |
| Face swap, video or GIF | `face-swap-video` | 2 tokens a face |
| Animate a photo | `animate` | 1 token a face |
| AI editor edit | `ai-editor` | 5 tokens |
| AI video | `ai-video` | from 50 tokens |

[See plans and token packs](https://reface.ai/unboring/pricing)

## Keys and safety

The key works like a password. Keep it in your client config or an environment variable, never in a shared repository. If it leaks, revoke it and make a new one.

## Questions developers ask

### Does the Unboring MCP server work with Cursor?

Yes. Press Add to Cursor in Install: Cursor opens and adds the server with your key. Or add the config to ~/.cursor/mcp.json by hand.

### How do I add the Unboring MCP server to Claude?

In Claude Code, run claude mcp add with the server URL and your key. In Claude Desktop, add the server to claude_desktop_config.json through mcp-remote and restart Claude.

### Does it work with VS Code?

Yes. Press Add to VS Code in Install, or add the server to .vscode/mcp.json. VS Code asks for the key once and keeps it out of the file.

### Which transport does the MCP server use?

Streamable HTTP. Clients that only speak stdio, such as Claude Desktop, connect through mcp-remote.

### How much does the MCP server cost?

The server has no separate fee. create_job spends tokens from your Unboring balance at the same prices as the site, and a failed job costs nothing.

### Does the MCP server support OAuth?

Not yet. Sign-in with OAuth for MCP clients comes next. Until then, send an API key in the Authorization header.

Next: [REST API](https://reface.ai/unboring/developers/api). The same tools as plain HTTP, for your own code
