Sponsored by Deepsite.site

Nutrient DWS MCP Server

Created By
PSPDFKit6 months ago
A Model Context Protocol (MCP) server implementation that integrates with the Nutrient Document Web Service (DWS) Processor API, providing powerful PDF processing capabilities for AI assistants.
Content

Nutrient DWS MCP Server

Document workflows using natural language

npm

A Model Context Protocol (MCP) server implementation that integrates with the Nutrient Document Web Service (DWS) Processor API, providing powerful PDF processing capabilities for AI assistants.

This server allows AI assistants to access the tools provided by Nutrient DWS Processor API, enabling operations such as digital signing, document generation, document editing, OCR, watermarking, redaction, and more.

Table of Contents

Features overview

FeatureDescription
Document CreationMerge PDFs, Office docs, and images
EditingWatermark, rotate, flatten, redact, and more
Format ConversionPDF ⇄ DOCX, images, PDF/A support
Digital SigningAdd PAdES standards-compliant digital signatures using trusted certificates
Data ExtractionExtract text, tables, or structured content
SecurityRedaction presets, password protection, permission control
Advanced OCRMulti-language, image and scan recognition
OptimizationCompress 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:
    1. macOS users: Install Node.js with a package manager like brew on the command line. (brew install node)
    2. Windows users: Download the Node Installer by visiting Node.js Download Site and run the installer
  3. Download Claude Desktop: If you haven’t already, download Claude Desktop and sign in.
  4. Create the claude_desktop_config.json:
    1. 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.
    2. 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.
  5. 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:
    1. macOS users: The claude_desktop_config.json is inside the directory ~/Library/Application\ Support/Claude.
    2. Windows users: The claude_desktop_config.json is inside the directory %APPDATA%\Claude

NOTE: For the --sandbox, you can put in the path in either the Unix-style (separated using forward slash /) or the Windows-style (separated using the backward slash /). And for the Windows path, you must escape the backward slash (i.e. \\ instead of \)

{
  "mcpServers": {
    "nutrient-dws": {
      "command": "npx",
      "args": ["-y", "@nutrient-sdk/dws-mcp-server", "--sandbox", "/your/sandbox/directory"], // "C:\\your\\sandbox\\directory" for Windows
      "env": {
        "NUTRIENT_DWS_API_KEY": "YOUR_API_KEY_HERE"
      }
    }
  }
}
  1. Restart Claude Desktop.

    On Windows you might need to go to the Task Manager and kill any processes named Claude to reset the application. On a macOS it will be the Activity Monitor

  2. Add documents for processing: Use any file manager to copy the documents into the sandbox directory set in the claude_desktop_config.json file above.
  3. 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.).

Note: All operations involve reading from and writing to files on disk. We strongly recommend using the sandboxed directory feature to enhance security and prevent data loss.

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

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. You should drop any documents you'd like to work on in this directory.

To enable sandbox mode, use the --sandbox (or -s) command line argument followed by the path to the directory:

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

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

If no sandbox directory is specified, the server will operate without file path restrictions, allowing access to any file on the system that the server process has permission to access. (Not Recommended)

Output location

Processed files will be saved to a location determined by the LLM. If sandbox mode is enabled, it will reside inside this directory.

To further guide the LLM on where to place the output file, use natural language such as "please output the result to output/my_result.pdf". Or you may also add an output directory in your sandbox to hint to the LLM to use this directory for all resulting files.

Contributions

Please see the contribution guidelines in CONTRIBUTING.md

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Serper MCP ServerA Serper MCP Server
WindsurfThe new purpose-built IDE to harness magic
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Amap Maps高德地图官方 MCP Server
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
ChatWiseThe second fastest AI chatbot™
CursorThe AI Code Editor
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Playwright McpPlaywright MCP server
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Tavily Mcp
DeepChatYour AI Partner on Desktop