open-index/open-npm huggingface dataset:
npm package: @neat-pdf/mcp
Description: MCP server for PDF generation with Neat PDF
Author: Neat PDF
Latest version: 0.1.4

# @neat-pdf/mcp

The first MCP for PDF primitives. Generate, compress, and merge PDFs directly from AI agents.

## Quick Start

```bash
npx @neat-pdf/mcp
```

## Configuration

### Claude Code / Claude Desktop

Add to `~/.claude/mcp_servers.json`:

```json
{
  "mcpServers": {
    "neat-pdf": {
      "command": "npx",
      "args": ["@neat-pdf/mcp"],
      "env": {
        "NEAT_PDF_API_KEY": "your-api-key"
      }
    }
  }
}
```

### Cursor

Add to `.cursor/mcp.json`:

```json
{
  "mcpServers": {
    "neat-pdf": {
      "command": "npx",
      "args": ["@neat-pdf/mcp"],
      "env": {
        "NEAT_PDF_API_KEY": "your-api-key"
      }
    }
  }
}
```

## Available Tools

| Tool | Description |
|------|-------------|
| `neat_html_to_pdf` | Convert HTML string to PDF |
| `neat_url_to_pdf` | Convert webpage URL to PDF |
| `neat_compress_pdf` | Compress existing PDF |
| `neat_office_to_pdf` | Convert Office docs (DOCX, XLSX, PPTX) to PDF |
| `neat_merge_pdf` | Merge multiple PDFs into one |

## Example Prompts

```
"Generate a PDF invoice with this HTML: <h1>Invoice #001</h1>..."

"Convert https://example.com to PDF"

"Compress this PDF to reduce file size"

"Merge these 3 PDFs into one document"

"Convert this Word document to PDF"
```

## Get Your API Key

1. Sign up at [neat-pdf.com](https://neat-pdf.com)
2. Create an API key in your dashboard
3. Set `NEAT_PDF_API_KEY` in your environment

## Pricing

| Plan | Credits | Price |
|------|---------|-------|
| Free | 100 | $0/mo |
| Hobby | 500 | $9/mo |
| Pro | 2,000 | $19/mo |
| Business | 10,000 | $49/mo |

Each PDF generation costs 1 credit.

## Links

- [Documentation](https://neat-pdf.com/docs)
- [API Reference](https://neat-pdf.com/api)
- [Pricing](https://neat-pdf.com/pricing)
- [GitHub](https://github.com/wdelmas/neat-pdf)

## License

Apache-2.0