# boxpdf-html MCP server

> Renders HTML strings to PDF documents and provides documentation and templates for building authored documents like invoices and reports.

- Repository: https://github.com/earonesty/boxpdf-html
- Page: https://hostedmcp.org/servers/earonesty/boxpdf-html
- Transport: stdio
- Stars: 2
- License: MIT
- Latest version: 1.7.0

## Install

### Claude Code

```sh
claude mcp add boxpdf-html -- npx -y boxpdf-html
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "boxpdf-html": {
      "command": "npx",
      "args": [
        "-y",
        "boxpdf-html"
      ]
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "boxpdf-html": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "boxpdf-html"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"boxpdf-html","type":"stdio","command":"npx","args":["-y","boxpdf-html"]}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "boxpdf-html": {
      "command": "npx",
      "args": [
        "-y",
        "boxpdf-html"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add boxpdf-html -- npx -y boxpdf-html
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.boxpdf-html]
command = "npx"
args = ["-y", "boxpdf-html"]
```

### Gemini CLI

```sh
gemini mcp add -s user boxpdf-html npx -- -y boxpdf-html
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "boxpdf-html": {
      "command": "npx",
      "args": [
        "-y",
        "boxpdf-html"
      ]
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `BOXPDF_DEP_VERSION` | no | no |  |
| `BOXPDF_PASSWORD` | no | no |  |

## FAQ

### Can I use Tailwind CSS with this server?

Yes, Tailwind works when you render its generated CSS. You should run Tailwind against your HTML first, then pass the generated CSS to the renderer.

### How are fonts handled in the rendering process?

Fonts must be explicitly provided as the server does not discover system fonts. You can pass TTF/OTF paths for regular, bold, italic, and bold-italic styles.
