# Connect PDF Craft to your AI agent

[HTML](https://pdfcraft.ai/connect/)
[Site index](https://pdfcraft.ai/llms.txt)

Give Claude, Cursor, Claude Code, Codex, and other MCP clients direct access to PDF OCR, Markdown and EPUB conversion, whole-book translation, balance checks, and cost estimates.

- Remote MCP URL: `https://api.pdfcraft.ai/v1/mcp`
- Transport: Streamable HTTP (MCP protocol `2026-07-28`)
- Auth: OAuth 2.1 (scope `pdfcraft:use`) or `Authorization: Bearer $PDFCRAFT_API_KEY`

## Pick your AI client

### Claude

Add PDF Craft as a custom connector in Claude and approve pdfcraft:use in your browser.

```json
{
  "mcpServers": {
    "pdfcraft": {
      "url": "https://api.pdfcraft.ai/v1/mcp"
    }
  }
}
```

### Claude Code

Register the remote Streamable HTTP server with one command, then run /mcp to sign in.

```bash
claude mcp add --transport http -s user pdfcraft https://api.pdfcraft.ai/v1/mcp
```

### Cursor

Install in one click or add the hosted server to Cursor's MCP configuration file.

```json
{
  "mcpServers": {
    "pdfcraft": {
      "url": "https://api.pdfcraft.ai/v1/mcp"
    }
  }
}
```

### VS Code

Install into VS Code in one click or save the HTTP server entry in .vscode/mcp.json.

```json
{
  "servers": {
    "pdfcraft": {
      "type": "http",
      "url": "https://api.pdfcraft.ai/v1/mcp"
    }
  }
}
```

### Codex

Register the remote MCP URL in Codex CLI and sign in with OAuth or an environment variable.

```bash
codex mcp add pdfcraft --url https://api.pdfcraft.ai/v1/mcp
```

### ChatGPT

Add https://api.pdfcraft.ai/v1/mcp as a custom MCP server in ChatGPT developer mode and sign in with OAuth.

```json
{
  "mcpServers": {
    "pdfcraft": {
      "url": "https://api.pdfcraft.ai/v1/mcp"
    }
  }
}
```

### Antigravity

Paste one setup prompt or add the server entry to ~/.gemini/config/mcp_config.json.

```json
{
  "mcpServers": {
    "pdfcraft": {
      "url": "https://api.pdfcraft.ai/v1/mcp"
    }
  }
}
```

### Windsurf

Paste one setup prompt or add the server entry to Windsurf's MCP config file.

```json
{
  "mcpServers": {
    "pdfcraft": {
      "url": "https://api.pdfcraft.ai/v1/mcp"
    }
  }
}
```

### Cline

Paste one setup prompt or add the remote HTTP server to cline_mcp_settings.json.

```json
{
  "mcpServers": {
    "pdfcraft": {
      "url": "https://api.pdfcraft.ai/v1/mcp"
    }
  }
}
```

### Zed

Paste one setup prompt or add PDF Craft under context_servers in Zed settings.

```json
{
  "context_servers": {
    "pdfcraft": {
      "url": "https://api.pdfcraft.ai/v1/mcp"
    }
  }
}
```

### Trae

Paste one setup prompt or add the remote MCP server in Trae's MCP settings.

```json
{
  "mcpServers": {
    "pdfcraft": {
      "url": "https://api.pdfcraft.ai/v1/mcp"
    }
  }
}
```

### Cherry Studio

Open Settings, go to MCP Servers, choose Import from JSON, and toggle the server on.

```json
{
  "mcpServers": {
    "pdfcraft": {
      "type": "streamableHttp",
      "url": "https://api.pdfcraft.ai/v1/mcp"
    }
  }
}
```

### OpenClaw

Paste one setup prompt or register the Streamable HTTP endpoint in OpenClaw.

```json
{
  "mcp": {
    "servers": {
      "pdfcraft": {
        "url": "https://api.pdfcraft.ai/v1/mcp",
        "auth": "oauth"
      }
    }
  }
}
```

### Other MCP client

Point any client that supports Streamable HTTP and OAuth 2.1 or Bearer headers at https://api.pdfcraft.ai/v1/mcp.

```json
{
  "mcpServers": {
    "pdfcraft": {
      "url": "https://api.pdfcraft.ai/v1/mcp"
    }
  }
}
```

## How your agent works with PDF Craft

### Connect once, authenticate cleanly

Interactive clients sign in through browser OAuth 2.1 with RFC 9728 metadata and dynamic client registration. Headless environments and scripts use a Bearer API key from the API Keys page.

### Check balance and estimate before spending

Ask your agent to call get_capabilities, check your credit balance, and estimate page or word costs before launching a conversion. MCP tasks share the same account balance and rates as the web workspace.

### Upload file bytes and keep the task UUID

Because the MCP server runs remotely, your agent must read and upload the actual file bytes rather than passing only a local file path. Keep the task UUID to resume polling, and if an unpaid balance blocks full download, add credits and request a fresh download link for the same task.
