
Company News
AWS Security Hub Adds Socket for Supply Chain Security
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.
pdfspark-mcp
Advanced tools
MCP server for PDFSpark — convert HTML/URLs to PDF from AI assistants like Claude, Cursor, VS Code
Convert HTML and webpages to PDF directly from AI assistants like Claude, Cursor, and VS Code.
PDFSpark MCP Server connects AI tools to the PDFSpark API using the Model Context Protocol. Generate, merge, split, and inspect PDFs without leaving your AI workflow.
Add to your claude_desktop_config.json:
{
"mcpServers": {
"pdfspark": {
"command": "npx",
"args": ["-y", "pdfspark-mcp"]
}
}
}
Then ask Claude things like:
| Tool | Description | Key Parameters |
|---|---|---|
html_to_pdf | Convert HTML content to PDF | html, format, landscape, scale, margin, watermark, password |
url_to_pdf | Convert a webpage URL to PDF | url, format, landscape, scale, margin, watermark, password |
merge_pdfs | Merge 2-100 PDFs into one | pdfs (array of base64 strings) |
split_pdf | Extract specific pages from a PDF | pdf (base64), pages (e.g. "1-3,5,8-10") |
pdf_info | Get metadata, page count, and dimensions | pdf (base64) |
Both conversion tools support these optional parameters:
| Option | Type | Description |
|---|---|---|
format | A4 | A3 | A5 | Letter | Legal | Tabloid | Paper format (default: A4) |
landscape | boolean | Landscape orientation |
printBackground | boolean | Include background graphics |
scale | number (0.1-2) | Scale factor |
margin | object | Page margins in CSS units (top, right, bottom, left) |
emulateMediaType | screen | print | CSS media type emulation |
metadata | object | PDF document metadata (title, author, subject, keywords) |
watermark | object | Diagonal text watermark (text, fontSize, opacity, rotation, color) |
outline | boolean | Auto-generate bookmarks from HTML headings |
password | object | AES-256/RC4 encryption (userPassword, ownerPassword, permissions) |
┌─────────────────┐ stdio ┌──────────────────┐ HTTPS ┌─────────────────┐
│ Claude/Cursor │◄──────────────►│ pdfspark-mcp │──────────────►│ pdfspark.dev │
│ (AI Assistant) │ │ (MCP Server) │ │ (PDF API) │
└─────────────────┘ └──────────────────┘ └─────────────────┘
| Environment Variable | Default | Description |
|---|---|---|
PDFSPARK_BASE_URL | https://pdfspark.dev | API base URL |
To use a custom API endpoint:
{
"mcpServers": {
"pdfspark": {
"command": "npx",
"args": ["-y", "pdfspark-mcp"],
"env": {
"PDFSPARK_BASE_URL": "https://your-instance.example.com"
}
}
}
}
PDFSpark is part of the SoftVoyagers free API portfolio:
| Product | Domain | Description |
|---|---|---|
| LinkMeta | linkmeta.dev | URL metadata extraction API |
| PageShot | pageshot.site | Screenshot & webpage capture API |
| PDFSpark | pdfspark.dev | HTML/URL to PDF conversion API |
| OGForge | ogforge.dev | Open Graph image generator API |
| LinkShrink | linkshrink.dev | Privacy-first URL shortener API |
| Faktuj | faktuj.pl | Polish invoice generator |
| QRMint | qrmint.dev | Styled QR code generator API |
| PageDrop | pagedrop.dev | Instant HTML hosting API |
MIT
FAQs
MCP server for PDFSpark — convert HTML/URLs to PDF from AI assistants like Claude, Cursor, VS Code
We found that pdfspark-mcp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.

Research
/Security News
Popular npm packages keyv and cacheable compromised.

Security News
A misconfiguration gave three Anthropic models internet access, and one, believing it was in a simulation, shipped a credential-stealing package to PyPI.