# PDF Craft を AI エージェントに接続

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

Claude、Cursor、Claude Code、Codex などの MCP クライアントから、スキャン PDF の OCR、Markdown・EPUB 変換、書籍全体の翻訳、残高確認、費用見積もりを直接実行できます。

- 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`

## AI クライアントを選択

### Claude

Claude のカスタムコネクタに URL を自動入力し、ブラウザで pdfcraft:use を承認します。

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

### Claude Code

ターミナルで 1 行のコマンドを実行して登録し、/mcp でサインインします。

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

### Cursor

ワンクリックで追加するか、Cursor の MCP 設定ファイルにリモートサーバーを記述します。

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

### VS Code

VS Code にワンクリックで追加するか、.vscode/mcp.json に HTTP サーバーを保存します。

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

### Codex

Codex CLI にリモート MCP URL を登録し、OAuth または環境変数で認証します。

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

### ChatGPT

ChatGPT の開発者モードで https://api.pdfcraft.ai/v1/mcp をカスタム MCP サーバーとして追加し、OAuth でサインインします。

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

### Antigravity

設定プロンプトを貼り付けるか、~/.gemini/config/mcp_config.json に追加します。

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

### Windsurf

設定プロンプトを貼り付けるか、Windsurf の MCP 設定ファイルに追加します。

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

### Cline

設定プロンプトを貼り付けるか、cline_mcp_settings.json にリモート HTTP サーバーを追加します。

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

### Zed

設定プロンプトを貼り付けるか、Zed 設定の context_servers に PDF Craft を追加します。

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

### Trae

設定プロンプトを貼り付けるか、Trae の MCP 設定にリモートサーバーを追加します。

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

### Cherry Studio

設定の MCP サーバーから「JSON からインポート」を選び、サーバーを有効化します。

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

### OpenClaw

設定プロンプトを貼り付けるか、OpenClaw に Streamable HTTP エンドポイントを登録します。

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

### その他の MCP クライアント

Streamable HTTP と OAuth 2.1 または Bearer ヘッダーに対応した任意のクライアントから https://api.pdfcraft.ai/v1/mcp に接続できます。

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

## エージェントと PDF Craft の連携フロー

### 一度の接続で安全に認証

対話型クライアントは RFC 9728 メタデータと動的クライアント登録を備えた OAuth 2.1 でサインインします。ヘッドレス環境では API キーページの Bearer キーを使用します。

### 実行前に残高と費用を確認

get_capabilities で対応形式と言語を確認し、残高とページ数・語数ベースの見積もりを確認してから開始できます。クレジット残高は Web ワークスペースと共通です。

### ファイル実体をアップロードして UUID を保持

リモート MCP はローカルパスだけではファイルを読めないため、エージェントが実データ本体をアップロードする必要があります。タスク UUID を保持しておけば進捗再開や、残高追加後の完全版再ダウンロードも再変換なしで完了します。
