Skip to content
DicePDF

Developers & agents

DicePDF is not just a website. The same PDF engine powers npm packages, a CLI, and an MCP server for AI agents — all local-first. Free, private PDF tools.

npm packages

  • @dicepdf/core

    Portable TypeScript engine — merge, split, rotate, extract, compress, and more. Runs in Node or bundles into the browser worker.

  • @dicepdf/cli

    Pipe-friendly terminal tools. No install required — npx dicepdf works offline.

  • @dicepdf/mcp

    Model Context Protocol server for Cursor, Claude Desktop, and other agents. Listed on the official MCP registry as io.github.ishan-maheshwari/dicepdf.

CLI quick start

Try it without installing anything:

npx @dicepdf/cli merge a.pdf b.pdf -o merged.pdf
npx @dicepdf/cli extract report.pdf --format markdown > report.md
npx @dicepdf/cli strip-metadata contract.pdf -o clean.pdf

Alias: dicepdf or dice. Run npx @dicepdf/cli --help for every command.

MCP for AI agents

Add to your MCP config (Cursor, Claude Desktop, Cline, etc.):

{
  "mcpServers": {
    "dicepdf": {
      "command": "npx",
      "args": ["-y", "@dicepdf/mcp"]
    }
  }
}

Then ask your agent to merge PDFs, extract text, strip metadata, or render pages — all on local files, with no upload step.

Same privacy promise

The website processes PDFs in your browser. The CLI, core library, and MCP server process PDFs on your machine — there is no cloud API, no upload endpoint, and no telemetry in the packages themselves.

Back to the free browser tools.