Skip to main content
Glama
PDFGate MCP Server

PDFGate MCP Server

Official
by pdfgate

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"
      }
    }
  }
}

Related MCP server: 1pdf

Hosted server (remote)

If you prefer not to run anything locally, we also host the MCP server, so you can connect straight to it — no npx, no local process. Point any client that supports remote (Streamable HTTP) MCP servers at:

https://mcp.pdfgate.com/server

You can authenticate in two ways.

Option 1 — OAuth

For clients that support remote MCP servers with OAuth (such as Claude and ChatGPT), add the server by its URL alone and sign in through your browser. There is no key to copy or store: the client registers itself, sends you to the PDFGate dashboard to approve access, and receives a scoped token automatically.

{
  "mcpServers": {
    "pdfgate": {
      "type": "http",
      "url": "https://mcp.pdfgate.com/server"
    }
  }
}

Many clients let you add this from their UI instead of a config file — for example, in Claude: Settings → Connectors → Add custom connector, then enter the URL above. OAuth sessions run against your production account; for the sandbox, use an X-API-KEY with a test_ key.

Option 2 — API key

Pass your key in the X-API-KEY header:

{
  "mcpServers": {
    "pdfgate": {
      "type": "http",
      "url": "https://mcp.pdfgate.com/server",
      "headers": {
        "X-API-KEY": "your_api_key_here"
      }
    }
  }
}

live_ keys use production and test_ keys use the sandbox — the environment is selected automatically from the key.

The hosted server provides the full PDFGate toolset (PDF generation, processing, form fields, e-signatures and webhooks). The exact client config field names (e.g. type / transport, headers) may vary by MCP client.

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

Tool

Description

generate_pdf

Generate a PDF from a URL or raw HTML

upload_file

Upload a local PDF file or from a URL

get_document

Retrieve document metadata and a fresh download URL

download_file

Download the raw PDF bytes of a stored document

delete_document

Delete a document

flatten_pdf

Flatten an interactive PDF into a static, non-editable file

extract_form_data

Extract form field values from a fillable PDF

add_form_fields

Add interactive form fields to a PDF (placeholder tags or explicit positions)

compress_pdf

Compress a PDF to reduce file size

protect_pdf

Encrypt a PDF with a password and permission restrictions

watermark_pdf

Apply a text or image watermark to a PDF

E-Signatures

Tool

Description

create_envelope

Create a signing envelope from one or more documents

send_envelope

Send a created envelope to recipients

get_envelope

Get the current status of an envelope

void_envelope

Void an envelope so it can no longer be signed

delete_envelope

Delete an envelope and remove its signed documents

create_embed_link

Create a short-lived signing link for an embedded recipient

Recipients

Tool

Description

create_recipient

Store a recipient for reuse across envelopes

list_recipients

List stored recipients by email

get_recipient

Retrieve a stored recipient by ID

update_recipient

Update a stored recipient's name or metadata

delete_recipient

Delete a stored recipient (personal data removed; blocked while a stored signature is active or pending)

request_recipient_signature

Email a recipient an enrolment link to store a reusable signature for automatic signing

remove_recipient_signature

Remove a recipient's stored signature or cancel a pending enrolment

Webhook Management

Tool

Description

create_webhook

Subscribe to PDFGate events

get_webhook

Retrieve a webhook subscription by ID

delete_webhook

Remove 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:

Event

Description

envelope.sent

Signing request emails have been dispatched to recipients

envelope.completed

All documents in the envelope have been signed

envelope.expired

The envelope expired before all documents were signed

envelope.document.completed

A single document inside the envelope has been fully signed

envelope.recipient.signed

A recipient has signed a document in the envelope

envelope.voided

The envelope was voided by the sender

envelope.deleted

The envelope was deleted

recipient.signature.enrolled

A recipient completed the enrolment and stored a reusable signature for automatic signing

recipient.signature.revoked

A recipient's stored signature was removed

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

Environment variables

Variable

Required

Default

Description

PDFGATE_API_KEY

Yes

—

Your PDFGate API key

PDFGATE_WEBHOOK_PORT

No

3599

Port for the webhook listener


Available Tools

27 tools
add_form_fieldsAInspect

Add interactive form fields to a stored PDF — from placeholder tags (refined via fieldOverrides) and/or explicitly positioned fields.

Inputs: documentId (required), fields, fieldOverrides, preSignedUrlExpiresIn.

compress_pdfAInspect

Compress/optimise a PDF to reduce file size without changing visual content.

Inputs: documentId (required), metadata, linearize, preSignedUrlExpiresIn.

create_envelopeAInspect

Create a signing envelope from one or more existing PDFGate documents. Each recipient is given either as email and name or as the recipientId of a stored recipient. A recipient signs through the hosted flow (emailed link), embedded signing (embedded: sign inside your application via create_embed_link, no emails) or automatic signing (autoSign: the stored signature of a recipient enrolled with request_recipient_signature is applied on their behalf, no signing session). Use signingOrder to make recipients sign in sequence. Returns an envelope in 'created' status; call send_envelope to dispatch signing emails.

Inputs: documents (required), requesterName (required), metadata, expiresInDays.

create_recipientAInspect

Store a recipient in your account so envelopes can reference them by recipientId. Emails are not unique; every call creates a new recipient, so use list_recipients first when reuse is intended.

Inputs: email (required), name, metadata.

create_webhookBInspect

Create a PDFGate webhook subscription. The response includes a signing secret — store it securely to verify incoming event signatures.

Inputs: url (required), eventTypes (required), description.

delete_documentAInspect

Delete a PDFGate document.

Inputs: documentId (required).

delete_envelopeAInspect

Permanently delete an envelope and the files it produced (signed documents and audit logs). Recipient data is anonymized and recipients lose access; source documents are not deleted. Only envelopes in 'draft', 'completed', 'expired', or 'voided' status can be deleted — void an active envelope first. Cannot be undone.

Inputs: envelopeId (required).

delete_recipientAInspect

Delete a stored recipient from your account directory. The record is kept with its personal data removed (email, name, phone, metadata and any stored signature), so later reads return 404 and a new envelope to the same address creates a fresh recipient; envelopes already sent keep their own copy and are not affected. Rejected with a 400 error while the recipient has an active stored signature or a pending enrolment — call remove_recipient_signature first.

Inputs: recipientId (required).

delete_webhookAInspect

Delete a PDFGate webhook subscription. Future events will no longer be delivered to the associated endpoint.

Inputs: webhookId (required).

download_fileAInspect

Download the raw PDF bytes of a stored document, returned as an embedded resource. For a shareable link instead, use get_document.

Inputs: documentId (required).

extract_form_dataAInspect

Extract form field values from a fillable PDF. Returns a JSON object mapping field names to their values.

Inputs: documentId (required).

flatten_pdfAInspect

Flatten an interactive PDF into a static, non-editable PDF. Creates a new document; does not overwrite the original.

Inputs: documentId (required), metadata, preSignedUrlExpiresIn.

generate_pdfBInspect

Generate a PDF from a URL or raw HTML. Provide either 'url' or 'html', not both.

Inputs: css, url, html, footer, +14 more.

get_documentCInspect

Retrieve metadata for a stored PDFGate document by its ID.

Inputs: documentId (required), preSignedUrlExpiresIn.

get_envelopeAInspect

Retrieve the current state of an envelope including its status, document progress, and per-recipient signing status. Each recipient carries an embedded boolean; embedded recipients have no signing link — mint one with create_embed_link instead. Recipients on ordered documents carry signingOrder and, once it is their turn, activatedAt. Each recipient also carries autoSign (signed automatically with their stored signature) and sendSignedCopy (emailed the signed document on completion) booleans.

Inputs: envelopeId (required).

get_recipientAInspect

Retrieve a stored recipient by ID. Once a stored signature was requested the response carries a signature object (status pending, active or revoked, plus requestedAt, adoptionMethod, enrolledAt, revokedAt, lastUsedAt and useCount); while the signature is active it also includes image, the signature as a PNG data URL, which can be very long.

Inputs: recipientId (required).

get_webhookBInspect

Retrieve a PDFGate webhook subscription by its ID.

Inputs: webhookId (required).

list_recipientsAInspect

List stored recipients with the given email (case-insensitive), oldest first.

Inputs: email (required).

protect_pdfAInspect

Encrypt a PDF with a password and optional permission restrictions. Produces a new document; the original is unchanged.

Inputs: documentId (required), metadata, algorithm, disableCopy, +6 more.

remove_recipient_signatureAInspect

Automatic signing: remove the stored signature of a recipient (signature.status becomes 'revoked' and the recipient.signature.revoked webhook fires) or cancel a pending enrolment so its link stops working. Envelopes already waiting on the automatic signature fall back to a signing link emailed to the recipient. Idempotent: a recipient without a stored signature is returned unchanged. Required before delete_recipient while a signature is active or an enrolment is pending.

Inputs: recipientId (required).

request_recipient_signatureAInspect

Automatic signing: email a stored recipient a link to store a reusable signature (they verify their email with a one-time code, accept the authorization text and type, draw or upload their signature). The link is valid for 7 days and calling this again replaces a pending request with a new link. Returns the recipient with signature.status 'pending'; once they complete the enrolment the recipient.signature.enrolled webhook fires and envelopes can set autoSign on this recipient. Rejected with a 400 error when the recipient has no email or already has an active stored signature (remove it first with remove_recipient_signature).

Inputs: recipientId (required).

send_envelopeAInspect

Send a created envelope to its recipients. PDFGate dispatches signing emails with secure, OTP-protected links that stay valid until the envelope expires. Embedded recipients receive no email; create their signing links with create_embed_link after sending. On documents with a signingOrder only the first recipients are emailed; later recipients are activated as earlier ones sign.

Inputs: envelopeId (required).

update_recipientAInspect

Update a stored recipient's name or metadata. The email cannot be changed. Existing envelopes are not affected; they keep the recipient name they were created with.

Inputs: recipientId (required), name, metadata.

upload_fileAInspect

Upload a PDF to PDFGate so it can be referenced by other operations. Provide either 'filePath' (local path) or 'url'.

Inputs: url, filePath, metadata, preSignedUrlExpiresIn.

void_envelopeAInspect

Void (cancel) an envelope in 'created' or 'in_progress' status. Recipients who have not signed are notified by email and their signing links stop working; documents already signed by all recipients are not affected. The optional reason is visible to recipients. Cannot be undone.

Inputs: envelopeId (required), reason.

watermark_pdfBInspect

Apply a text or image watermark to a PDF. For type='text' provide 'text'; for type='image' provide 'watermarkImagePath'.

Inputs: type (required), documentId (required), font, text, +12 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 27 tools

    Disambiguation4/5

    The surface splits cleanly into four resource families (documents, recipients, envelopes, webhooks), and the descriptions proactively resolve the few confusable pairs (download_file vs get_document, delete_document vs delete_envelope, delete_recipient vs remove_recipient_signature, create_embed_link vs send_envelope). The remaining risk is the four transform tools (protect_pdf, flatten_pdf, compress_pdf, watermark_pdf), which are only distinguishable by reading the names closely, but their purposes are in fact distinct.

    Naming Consistency5/5

    Every one of the 27 tools follows a snake_case verb_noun pattern (create_/get_/list_/update_/delete_/remove_/send_/void_ plus a resource), with no camelCase or bare-noun outliers. Domain-specific verbs (protect_pdf, flatten_pdf, watermark_pdf) still conform to the same verb_resource shape.

    Tool Count3/5

    27 tools is on the heavy side, though the server genuinely spans three loosely coupled domains: PDF manipulation (~10 tools), recipients with automatic signing (7), envelopes (6) and webhooks (3). Each tool does earn roughly its place, but the document-processing group could plausibly have been consolidated into a single parameterized transform tool.

    Completeness3/5

    Recipients have full CRUD plus listing and signature lifecycle support, but the other families are missing key discovery/lifecycle operations: there is no list_documents, list_envelopes, or list_webhooks, and no update_envelope or webhook update. An agent can create and fetch by ID but cannot enumerate resources, which is a real dead end for discovery workflows.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      C
      quality
      D
      maintenance
      Enables AI assistants to perform PDF operations like merge, split, compress, convert, encrypt, OCR, and summarize using natural language.
      98
      8 npm
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      Enables AI assistants to perform a wide range of PDF processing tasks, including conversion, editing, merging, splitting, OCR, barcode/QR code generation and reading, AI-powered data extraction, and image processing, through the PDF4me API.
      92
      MIT