← All posts

Our PDF tools inside Claude and other assistants: a remote MCP server

With MCP, an AI assistant can convert, merge or redact PDFs for you. How we made it work from the web, where the assistant can't see your files, without opening the door to abuse.

Hernán Díaz Rodríguez··4 min read

Asking an AI assistant to "turn this PDF into Word" usually ends one of two ways: it explains how to do it yourself, or it tries to convert it and hands back plain text with no formatting. To really do it, it needs a tool. And the standard way to give it one is MCP (Model Context Protocol).

MCP in two sentences

An MCP server is a program that tells the assistant "I can do these things, with this input" and does them when asked. The assistant reads the list, decides when to use each tool and passes it the data; Claude, ChatGPT, Cursor and many others speak it.

Ours has 17 tools: PDF to Word, merge, split, compress, OCR, redaction of personal data, PDF/A and the rest of what's on the website.

Two servers for two situations

We started with the easy case: a local server. It's a single Python file, no dependencies, that runs on your computer next to the assistant (Claude Desktop, Claude Code, Cursor). Because it's on your machine, it sees your files: you give it the path, it uploads the file, waits, and saves the result next to the original. It's on PyPI and in the official MCP Registry, so uvx clicndone-pdf-mcp is enough.

But many people use the assistant in the browser, on Claude.ai or ChatGPT. There's nothing to install there: the assistant connects over the internet to a remote server. And that changes three things.

1. The assistant can't see your files

A remote server can't read C:\Users\you\invoice.pdf. So files arrive in two ways: as a public link (the assistant passes the URL and we download it) or, for small ones, inside the message as base64, up to 20 MB. And the result can't be "saved next to the original": we return a download link that lasts an hour, or ten minutes after the first download.

2. Downloading whatever you're asked to is dangerous

A server that fetches any URL it's given is a classic security hole: someone can point it at an internal address (http://127.0.0.1:...) and use it to snoop inside the network. So:

3. Everyone arrives from the same IP

Our free plan limits jobs per IP. But when a hundred people use the connector from Claude.ai, all hundred requests reach us from Anthropic's servers: to us, a single IP. With the normal limit, the first person would use up everyone's quota.

The fix: each MCP session gets its own free-plan quota, plus a shared cap per hour and per day for all sessions without a key. One user can't lock out the rest, and nobody can hog the server by opening new sessions. Requests that carry an API key get that key's limits.

Stateless

MCP allows servers that remember each conversation, but ours is stateless: every call carries all it needs and, underneath, goes to the same API as always, with its limits and automatic deletion. A server restart cuts no one off and there are no sessions to clean up. If a conversion takes longer than the call, the assistant gets the job number and asks later with job_status.

A detail I didn't expect

The first version lived at /mcp, the usual place. From my own computer the responses arrived cut short, and the culprit was the antivirus: it inspected traffic to addresses ending in /mcp in a special way and broke the response. The address became /mcp/v1 and the problem went away. If your MCP server fails only on some machines, check the antivirus.

Getting found

An MCP server is no use if nobody knows it exists. We published it in the official MCP Registry under a name in our own domain (com.clicndone.pdf/pdf-tools): to use it you prove the domain is yours with a key published on the server itself. We also submitted it to connector directories, which review by hand and take weeks.

How to try it

On Claude.ai: add a custom connector and paste this address:

https://pdf.clicndone.com/mcp/v1

In Claude Code:

claude mcp add --transport http clicndone-pdf https://pdf.clicndone.com/mcp/v1

Then ask in your own words: "convert this PDF to Word", "merge these two", "redact the ID numbers". Full instructions, including the local server, are on the AI assistants page.

Comments or ideas? Message me on LinkedIn. LinkedIn →