NU

Nutrient

Created 5 months ago

A Model Context Protocol (MCP) server for powerful PDF processing capabilities.

development documentation public AI PDF processing

What is Nutrient?

Create, Edit, Sign, Extract Documents using Natural Language

Documentation

Nutrient DWS MCP Server

Features Overview

  • Document Creation: Merge PDFs, Office docs, and images
  • Editing: Watermark, rotate, flatten, redact, and more
  • Format Conversion: PDF ⇄ DOCX, images, PDF/A support
  • Digital Signing: Add PAdES standards-compliant digital signatures using trusted certificates
  • Data Extraction: Extract text, tables, or structured content
  • Security: Redaction presets, password protection, permission control
  • Advanced OCR: Multi-language, image and scan recognition
  • Optimization: Compress files without quality loss

Usage# Getting Started with Claude Desktop + Nutrient DWS MCP Server

  1. Get a Nutrient DWS API key: Sign up at nutrient.io/api.
  2. Install Node.js:
  • macOS users: Install Node.js with a package manager like brew on the command line. (brew install node)
  • Windows users: Download the Node Installer by visiting Node.js Download Site and run the installer.
  1. Download Claude Desktop: If you haven’t already, download Claude Desktop and sign in.
  2. Create the claude_desktop_config.json:
  • macOS users: Click on "Claude" next to the Apple icon on top of your mac screen. Go to Settings > Developer and click on Edit Config.
  • Windows user: Click on the hamburger menu on the top left of the Claude Desktop window. Go to File > Settings > Developer and click on Edit Config.
  1. Configure Claude:: Add nutrient-dws to the claude_desktop_config.json (example below). Make sure to add your API key and set the sandbox directory:
    {
      "mcpServers": {
        "nutrient-dws": {
          "command": "npx",
          "args": ["-y", "@nutrient-sdk/dws-mcp-server"],
          "env": {
            "NUTRIENT_DWS_API_KEY": "YOUR_API_KEY_HERE",
            "SANDBOX_PATH": "/your/sandbox/directory" // "C:\\your\\sandbox\\directory" for Windows
          }
        }
      }
    }
    
  2. Restart Claude Desktop.
  3. Add documents for processing: Use any file manager to copy the documents into the sandbox directory set via the SANDBOX_PATH environment variable above.
  4. Process documents: Instruct Claude Sonnet 3.7 (e.g. “redact all PII from secret.pdf”, “sign the document contract.pdf”, “merge secret.pdf and contract.pdf together”, etc.).

Compatibility

Nutrient DWS MCP Server has been tested with Claude Desktop (Claude 3.7 Sonnet). Other MCP clients may work, but results may vary. Nutrient DWS MCP Server supports macOS and Windows for now. Feel free to open an issue if you’re interested in Linux support.

Further configuration## Sandbox mode (Recommended)

The server supports an optional sandbox mode that restricts file operations to a specific directory. This is useful for security purposes, ensuring that the server can only read from and write to files within the specified directory. To enable sandbox mode, set the SANDBOX_PATH environment variable:

export SANDBOX_PATH=/path/to/sandbox/directory
npx @nutrient-sdk/dws-mcp-server

When sandbox mode is enabled:

  • For relative paths, they are resolved relative to the sandbox directory.
  • All input file paths are validated to ensure they exist and reside in the sandbox before performing any file operations.

Contributions

Please see the contribution guidelines in CONTRIBUTING.md

Server Config

{
  "mcpServers": {
    "nutrient-server": {
      "command": "npx",
      "args": [
        "nutrient"
      ]
    }
  }
}

Links & Status

Repository: github.com
Hosted: No
Global: No
Official: Yes

Project Info

Hosted Featured
Created At: Jul 02, 2025
Updated At: Aug 07, 2025
Author: PSPDFKit
Category: official
License: MIT
Tags:
development documentation public