MCP server for Foxit PDF API
Model Context Protocol (MCP) server that exposes Foxit Cloud PDF API operations as tools for AI agents like Claude Desktop, Cursor, and other MCP-compatible applications.
30+ PDF Operations Available:
- 📄 Document Lifecycle - Upload, download, delete documents
- 🔄 PDF Creation - Convert Word, Excel, PPT, HTML, URL, text, images to PDF
- 📤 PDF Conversion - Convert PDF to Word, Excel, PPT, HTML, text, images
- ✂️ Manipulation - Split, extract, flatten, compress, manipulate pages
- 🔒 Security - Add/remove passwords, set permissions
- 🎨 Enhancement - Merge, watermark, linearize PDFs
- 🔍 Analysis - Get properties, compare PDFs, etc.
Sign up at Foxit Developer Portal to get your:
- Client ID
- Client Secret
The server is published on npm and can be run directly with npx:
``bash`
npx @foxitsoftware/foxit-pdf-api-mcp-server
Or install globally:
`bash`
npm install -g @foxitsoftware/foxit-pdf-api-mcp-server
Add to your Claude Desktop config file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json %APPDATA%\Claude\claude_desktop_config.json
Windows:
`json`
{
"mcpServers": {
"foxit-pdf": {
"command": "npx",
"args": ["-y", "@foxitsoftware/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"
}
}
}
}
Restart Claude Desktop. The PDF tools will appear in the tools menu.
Add to Cline MCP settings:
`json`
{
"mcpServers": {
"foxit-pdf": {
"command": "npx",
"args": ["-y", "@foxitsoftware/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"
}
}
}
}
For any MCP-compatible client, configure a stdio transport server:
- Command: npx["-y", "@foxitsoftware/foxit-pdf-api-mcp-server"]
- Args: FOXIT_CLOUD_API_*
- Environment: Set the three variables
Ask your AI assistant:
> "Convert my Word document report.docx to PDF"
The agent will:
1. Upload the document
2. Convert it to PDF
3. Download the result
4. Clean up temporary files
> "Merge chapter1.pdf, chapter2.pdf, and chapter3.pdf into one document"
> "Add a watermark 'CONFIDENTIAL' to my PDF document"
> "Convert this PDF to a Word document so I can edit it"
The server exposes 30+ tools organized by category:
- Upload files for processing
- download_document - Download processed documents
- delete_document - Remove uploaded documents$3
- pdf_from_word - Word → PDF
- pdf_from_excel - Excel → PDF
- pdf_from_ppt - PowerPoint → PDF
- pdf_from_html - HTML → PDF
- pdf_from_url - Web page → PDF
- pdf_from_text - Plain text → PDF
- pdf_from_image - Images → PDF$3
- pdf_to_word - PDF → Word
- pdf_to_excel - PDF → Excel
- pdf_to_ppt - PDF → PowerPoint
- pdf_to_html - PDF → HTML
- pdf_to_text - PDF → Plain text
- pdf_to_image - PDF → Images$3
- pdf_merge - Combine multiple PDFs
- pdf_split - Split PDF into parts
- pdf_extract - Extract specific pages
- pdf_compress - Reduce file size
- pdf_flatten - Flatten form fields and annotations
- pdf_manipulate - Rotate, reorder, delete pages$3
- pdf_protect - Add password protection
- pdf_remove_password - Remove password protection$3
- pdf_watermark - Add text/image watermarks
- pdf_linearize - Optimize for web viewing$3
- pdf_compare - Compare two PDFsTroubleshooting
$3
- Ensure FOXIT_CLOUD_API_CLIENT_ID and FOXIT_CLOUD_API_CLIENT_SECRET are set in your MCP client config
- Verify your API credentials at Foxit Developer Portal
- Check that npx can access the npm registry (try npx -y @foxitsoftware/foxit-pdf-api-mcp-server --version)$3
- Restart your MCP client (Claude Desktop, etc.) after configuration changes
- Check the client logs for connection errors
- Ensure the -y` flag is included in npx args to auto-accept installationSee CONTRIBUTING.md for development setup, architecture details, and contribution guidelines.
MIT
- Foxit Cloud PDF API Documentation
- Model Context Protocol
- Claude Desktop
- Report Issues