PDFGate MCP Server

Generate documents, process PDFs, and manage e-signature workflows using the PDFGate API.

Documentation

PDFGate MCP Server

Model Context Protocol (MCP) server for the PDFGate API. Enables AI assistants to generate PDFs, manage documents and handle e-signatures.

Installation

Add the following to your MCP client configuration:

{
  "mcpServers": {
    "pdfgate": {
      "command": "npx",
      "args": ["-y", "@pdfgate/mcp-server"],
      "env": {
        "PDFGATE_API_KEY": "your_api_key_here"
      }
    }
  }
}

Getting an API key

Sign up at pdfgate.com to get your API key.

  • Keys starting with live_ connect to the production environment
  • Keys starting with test_ connect to the sandbox environment

Tools

PDF Operations

ToolDescription
generate_pdfGenerate a PDF from a URL or raw HTML
upload_pdfUpload a local PDF file or from a URL
get_documentRetrieve document metadata and a fresh download URL
delete_documentDelete a document
flatten_pdfFlatten an interactive PDF into a static, non-editable file
extract_pdf_form_dataExtract form field values from a fillable PDF
compress_pdfCompress a PDF to reduce file size
protect_pdfEncrypt a PDF with a password and permission restrictions
watermark_pdfApply a text or image watermark to a PDF

E-Signatures

ToolDescription
create_envelopeCreate a signing envelope from one or more documents
send_envelopeSend a created envelope to recipients
get_envelopeGet the current status of an envelope

Webhook Management

ToolDescription
create_webhookSubscribe to PDFGate events
delete_webhookRemove a webhook subscription

Webhook Triggers

The server listens for incoming PDFGate events on port 3599 by default. To receive events:

  1. Expose port 3599 to the internet (e.g. via ngrok)
  2. Use the create_webhook tool to register your public URL

Supported events:

EventDescription
envelope.sentSigning request emails have been dispatched to recipients
envelope.completedAll documents in the envelope have been signed
envelope.expiredThe envelope expired before all documents were signed
envelope.document.completedA single document inside the envelope has been fully signed

Received events are available via the pdfgate://events MCP resource and pushed to the client in real time.

Environment variables

VariableRequiredDefaultDescription
PDFGATE_API_KEYYesYour PDFGate API key
PDFGATE_WEBHOOK_PORTNo3599Port for the webhook listener