Skip to main content
Glama
pdfdotco

PDF.co MCP Server

Official
by pdfdotco

pdf_remove_password

Remove password protection from PDF files to enable access and editing. This tool processes password-protected PDFs from various sources including URLs, Google Drive, and Dropbox.

Instructions

Remove password protection from a PDF file. Ref: https://developer.pdf.co/api-reference/pdf-password/remove.md

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesURL to the source PDF file. Supports publicly accessible links including Google Drive, Dropbox, PDF.co Built-In Files Storage. Use 'upload_file' tool to upload local files.
httpusernameNoHTTP auth user name if required to access source url. (Optional)
httppasswordNoHTTP auth password if required to access source url. (Optional)
passwordNoPassword of the PDF file to be removed. (Optional)
nameNoFile name for the generated output. (Optional)
api_keyNoPDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional)

Implementation Reference

  • MCP tool registration via @mcp.tool(), input schema via Pydantic Fields, and handler logic that constructs ConversionParams and delegates to the remove_pdf_password service.
    @mcp.tool() async def pdf_remove_password( url: str = Field( description="URL to the source PDF file. Supports publicly accessible links including Google Drive, Dropbox, PDF.co Built-In Files Storage. Use 'upload_file' tool to upload local files." ), httpusername: str = Field( description="HTTP auth user name if required to access source url. (Optional)", default="", ), httppassword: str = Field( description="HTTP auth password if required to access source url. (Optional)", default="", ), password: str = Field( description="Password of the PDF file to be removed. (Optional)", default="" ), name: str = Field( description="File name for the generated output. (Optional)", default="" ), api_key: str = Field( description="PDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional)", default="", ), ) -> BaseResponse: """ Remove password protection from a PDF file. Ref: https://developer.pdf.co/api-reference/pdf-password/remove.md """ params = ConversionParams( url=url, httpusername=httpusername, httppassword=httppassword, password=password, name=name, ) return await remove_pdf_password(params, api_key=api_key)
  • Service helper function that performs the actual API request to the PDF.co /pdf/security/remove endpoint using the generic request function.
    async def remove_pdf_password( params: ConversionParams, api_key: str | None = None ) -> BaseResponse: return await request("pdf/security/remove", params, api_key=api_key)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pdfdotco/pdfco-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server