• SECURED
  • OPEN
  • VERIFIED
  • MANUAL

How to protect and unlock PDF files with your AI

Connect PDF.co to your agent to handle document security. Once connected, you can lock or unlock files through simple chat commands.

Ask AI about this page

Short answer

How can I lock or unlock PDFs using my AI?

Your AI uses PDF.co to apply passwords to sensitive documents or strip existing passwords from files. You get immediate control over file access without opening a PDF editor. Here is how the process works.

Security outcomes

Document security results

What happens after you give the command.

SECURED

Locked documents

The AI applies a password to your file. You receive a protected version that requires a key to open.

OPEN

Unlocked files

The AI removes the password requirement. You get a standard PDF that anyone can view.

VERIFIED

Access control

The AI confirms the security status. You know exactly which files are protected and which are open.

MANUAL

Human review

You decide which files need protection. The AI waits for your specific instruction before changing any security settings.

The workflow

What your AI does when the file arrives.

The AI handles the heavy lifting of encryption and decryption.

  1. Identify the file

    Your agent locates the specific PDF you want to modify in your connected storage.

    protect_pdf
  2. Apply security

    The AI encrypts the document by setting a password of your choice.

    protect_pdf
  3. Remove security

    The AI strips the password from a locked file to make it readable.

    unprotect_pdf
  4. Deliver file

    The AI provides the updated, secure, or unlocked version of the document.

    protect_pdfunprotect_pdf

Try it

Copy these to start.

Use these prompts to trigger the PDF.co tools.

Starting points

Swap the bracketed text for your actual file names or paths.

PDF.co Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_uVxMMI3j4I5XvY70ujxxyTdKG0jtWoShDwpFOIBv/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat — PDF.co capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "pdfco-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_uVxMMI3j4I5XvY70ujxxyTdKG0jtWoShDwpFOIBv/mcp"
    }
  }
}
Copy into chat04
  • Protect the file [filename.pdf] with the password [yourpassword].

  • Unlock [filename.pdf] so I can edit it.

  • Add a password to the document in my [folder name] folder.

  • Remove the password from [filename.pdf] using the existing password [password].

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect PDF.co once, then ask.

Just link your account once. Your credentials stay encrypted, and you can immediately start managing files through your chat interface.

Connect PDF.co to your AI

FAQ

Common questions

  • 01

    Can the AI read the content inside my locked PDF?

    No. The AI can only manage the password layer. It does not read or process the text inside a protected file unless you first unlock it.

  • 02

    Will the AI delete my original file when it adds a password?

    No. The tools create a new version of the file with the updated security settings.

  • 03

    Can I use the AI to crack a password I forgot?

    No. The unprotect tool requires you to know the current password to remove it.

  • 04

    Does the AI store my passwords?

    No. The AI uses the password you provide in the prompt to perform the action and does not save it for later.

  • 05

    Can the AI change the layout of my PDF?

    No. These tools only handle password protection and removal; they do not edit the visual content or layout.

  • More questions about PDF.co? The Connector page answers them. See everything the PDF.co Connector can do

Connect PDF.co to Claude, Cursor, ChatGPT & more