MCP server for AI assistants
Let Claude, Cursor or any MCP client convert, OCR, redact, sign and extract documents with NexPDF Cloud.
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.pdfgivesscan.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/pdfsStart with a nxp_test_ key: it is free, and its results carry a watermark.
| Setting | Meaning |
|---|---|
--sandbox <folder> or NEXPDF_MCP_SANDBOX | The folder the assistant may use. Default: the folder the client starts the server in. |
NEXPDF_API_KEY | Your key. Without it only list_files works. |
NEXPDF_API_BASE | Another API address, for a self-hosted NexPDF Cloud. |
NEXPDF_SIGN_PASSWORD | The certificate password sign uses when the assistant gives none, so your password never passes through the conversation. |
Tools
| Tool | What it does | Cost |
|---|---|---|
list_files | Lists the sandbox. | Free, nothing is sent |
convert_to_pdf | Word, Excel, PowerPoint, OpenDocument, images, EPUB and HTML to PDF. | As convert |
ocr | A searchable text layer for scans, in the languages you name. | As OCR |
merge | Two or more files into one PDF, in order. | As merge |
split | One PDF into parts, every N pages or by ranges, saved in a folder. | As split |
extract_markdown | The document's content as Markdown, so the assistant can read, summarize or answer questions about it. | As extraction |
redact | Removes text for good, by exact text, regular expression or pattern (email, phone, credit-card, iban, us-ssn, pt-nif, ipv4, url, date). | As redaction |
sign | A PAdES signature from B-B to B-LTA, with a .p12 from the sandbox or a self-signed test certificate. | As signatures |
verify_signatures | Checks every signature in a PDF. | As verify |
build | Any build pipeline: parts, actions in order, output format. | The pipeline's units |
estimate | What a build would cost, without running it. | Free |
ai_extract | The data a JSON Schema describes, read from the document. | As AI |
ai_classify | Which of your labels fits the document, and why. | As AI |
create_viewer, delete_viewer | A private viewer link for any browser. | 1 unit per link |
start_job, start_batch, get_job | Background 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
.docxin the sandbox to PDF and merge them intohandbook.pdf." - "Read
invoice-0147.pdfand 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.pdfwithcerts/company.p12at level B-LTA." - "Make a viewer link for
proposal.pdfthat expires in a week, without the download button." - "OCR the 40 scans in
archive/as a batch and save the results inarchive/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.