Use local files
In an MCP App-compatible host, call any iLovePDF tool with an empty source list. The interactive app lets you select files, configure the operation, upload them, and download the result.
{
"sources": [],
"options": {}
}If your client does not show the inline app, use the upload page instead.
Use the upload page
Upload a local file, select the intended operation, and copy the resulting sources value into your MCP tool request.
{
"sources": [{ "session_id": "ses_…" }],
"options": {}
}A session is tied to one operation and expires shortly after upload.
Use a public HTTPS file
Pass one or more publicly reachable HTTPS URLs directly. For a safe example, use this service’s demo PDF:
{
"sources": ["https://mcp.ilovepdf.com/demo/sample.pdf"],
"options": { "compression_level": "recommended" }
}Do not use a URL that requires browser cookies, private-network access, or a login.