Skip to Content
NexPDF

MCP server for AI assistants

Let Claude, Cursor or any MCP client convert, OCR, redact, sign and extract documents with NexPDF Cloud.

English

The NexPDF Cloud MCP server gives AI assistants the Cloud API as tools, through the Model Context Protocol. Once it is connected, you can ask in plain words, "redact every email address in statement.pdf" or "pull the totals out of these invoices", and the assistant calls NexPDF Cloud and saves the results for you.

It is a different server from the docs MCP server, which only reads this documentation. You can connect both.

How it handles your files

The server runs on your computer and works in one folder, the sandbox:

  • The assistant reads inputs from the sandbox, or gives an http(s) URL that NexPDF Cloud downloads itself.
  • Every result is saved into the sandbox, next to its input by default (scan.pdf gives scan.ocr.pdf).
  • Nothing outside the sandbox can be read or written. .., absolute paths elsewhere and symbolic links that point out are refused.
  • An existing file is never replaced unless the assistant asks to overwrite it.

Files go to NexPDF Cloud only when a tool needs them, and are handled as described in Security and privacy.

Connect your assistant

You need an API key and Node 20 or later. Replace the folder with the one the assistant should work in.

claude mcp add nexpdf-cloud --env NEXPDF_API_KEY=nxp_live_... -- npx -y @nexdevit/nexpdf-cloud-mcp --sandbox ~/Documents/pdfs

Start with a nxp_test_ key: it is free, and its results carry a watermark.

SettingMeaning
--sandbox <folder> or NEXPDF_MCP_SANDBOXThe folder the assistant may use. Default: the folder the client starts the server in.
NEXPDF_API_KEYYour key. Without it only list_files works.
NEXPDF_API_BASEAnother API address, for a self-hosted NexPDF Cloud.
NEXPDF_SIGN_PASSWORDThe certificate password sign uses when the assistant gives none, so your password never passes through the conversation.

Tools

ToolWhat it doesCost
list_filesLists the sandbox.Free, nothing is sent
convert_to_pdfWord, Excel, PowerPoint, OpenDocument, images, EPUB and HTML to PDF.As convert
ocrA searchable text layer for scans, in the languages you name.As OCR
mergeTwo or more files into one PDF, in order.As merge
splitOne PDF into parts, every N pages or by ranges, saved in a folder.As split
extract_markdownThe document's content as Markdown, so the assistant can read, summarize or answer questions about it.As extraction
redactRemoves text for good, by exact text, regular expression or pattern (email, phone, credit-card, iban, us-ssn, pt-nif, ipv4, url, date).As redaction
signA PAdES signature from B-B to B-LTA, with a .p12 from the sandbox or a self-signed test certificate.As signatures
verify_signaturesChecks every signature in a PDF.As verify
buildAny build pipeline: parts, actions in order, output format.The pipeline's units
estimateWhat a build would cost, without running it.Free
ai_extractThe data a JSON Schema describes, read from the document.As AI
ai_classifyWhich of your labels fits the document, and why.As AI
create_viewer, delete_viewerA private viewer link for any browser.1 unit per link
start_job, start_batch, get_jobBackground jobs for large files, and batches of 2 to 50 documents.The work's units

Every tool carries MCP annotations: list_files, estimate and verify_signatures are marked read-only and delete_viewer destructive, so your client can ask before the calls you want to approve. The assistant is told to call estimate first when the cost matters.

What to ask

  • "Convert every .docx in the sandbox to PDF and merge them into handbook.pdf."
  • "Read invoice-0147.pdf and give me the number, date, total and line items as JSON."
  • "Classify the files in inbox/ as invoice, receipt or contract."
  • "Redact every email address and IBAN in statement.pdf."
  • "Sign contract.pdf with certs/company.p12 at level B-LTA."
  • "Make a viewer link for proposal.pdf that expires in a week, without the download button."
  • "OCR the 40 scans in archive/ as a batch and save the results in archive/ocr/."

Errors

When NexPDF Cloud refuses a call, the tool returns the error code, its message and the request id, so the assistant can fix the input or tell you why. Rate limits are retried before they reach the assistant.

On this page