DEV Community

Elliot Brenya sarfo
Elliot Brenya sarfo

Posted on AI-assisted

Foxit's MCP server lets Claude, VS Code and Cursor work with your PDFs

Sponsored post: I'm being paid to share this guide.

If you've built anything that handles PDFs, you know the routine. You upload the file, poll until it's done, download the result, handle the errors, and then do it all again for the next step.

Foxit has a PDF API MCP server that takes over that loop, so an AI assistant can call the PDF tools directly. They wrote a full guide to setting it up, and here's what's in it.

What it can do

There are 30+ tools. The ones I think most people would use:

  • Convert Word, Excel, PowerPoint, images, HTML or a live URL to PDF, and turn PDFs back into Office files
  • Merge, split, compress and watermark
  • OCR scanned pages into searchable text
  • Compare two PDFs and get a color-coded document showing what changed
  • Add or remove a password

What you need

  • A free Foxit developer account, no credit card needed
  • Python 3.11+ with uv, or Node.js 18+ with pnpm for the TypeScript version
  • An MCP host like Claude Desktop, VS Code or Cursor

You clone the GitHub repo, add this to your Claude Desktop config, and restart the app:

{
  "mcpServers": {
    "foxit-pdf": {
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/foxit-pdf-api-mcp-server",
        "run",
        "foxit-pdf-api-mcp-server"
      ],
      "env": {
        "FOXIT_CLOUD_API_HOST": "https://na1.fusion.foxit.com/pdf-services",
        "FOXIT_CLOUD_API_CLIENT_ID": "your_client_id",
        "FOXIT_CLOUD_API_CLIENT_SECRET": "your_client_secret"
      }
    }
  }
}
Enter fullscreen mode Exit fullscreen mode

After that you can type something like "Convert this Word file to PDF and compress it" and the assistant picks the tools.

Two things to know first

In Claude Desktop, every tool call asks for your approval before it runs, and it shows the tool name and what's being passed to it. I like that part, because you can see what the agent is about to do with your document.

Foxit's eSign and document generation APIs are separate from this MCP server. An agent can still use them through code it runs, and the guide walks through that in its four-step workflow.

I'd mostly use the compare tool, to check two versions of a doc before a release. If you're building agents that deal with documents, the guide is worth reading.

Top comments (0)