PDF4.dev

MCP server

PDF4.dev exposes an MCP (Model Context Protocol) server that lets any compatible AI agent generate and manage PDFs through natural language.

Server URL: https://pdf4.dev/api/mcp

The server uses the Streamable HTTP transport. Always include your API key in the headers config so the agent authenticates automatically. You can get an API key at Settings.

Setup

Pick your AI client and add the PDF4.dev MCP server to its configuration. Replace p4_live_xxx with your actual API key.

Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

claude_desktop_config.json
{
  "mcpServers": {
    "pdf4dev": {
      "url": "https://pdf4.dev/api/mcp",
      "headers": {
        "Authorization": "Bearer p4_live_xxx"
      }
    }
  }
}

Restart Claude Desktop after saving. You'll see the PDF4.dev tools appear in the tool picker.

Add to .cursor/mcp.json in your project root, or to ~/.cursor/mcp.json for global access:

.cursor/mcp.json
{
  "mcpServers": {
    "pdf4dev": {
      "url": "https://pdf4.dev/api/mcp",
      "headers": {
        "Authorization": "Bearer p4_live_xxx"
      }
    }
  }
}

Reload Cursor or run Cursor: Reload Window from the command palette.

Add to .vscode/settings.json in your project:

.vscode/settings.json
{
  "mcp": {
    "servers": {
      "pdf4dev": {
        "url": "https://pdf4.dev/api/mcp",
        "headers": {
          "Authorization": "Bearer p4_live_xxx"
        }
      }
    }
  }
}

Requires VS Code with GitHub Copilot and MCP support enabled.

Add to ~/.codeium/windsurf/mcp_config.json:

mcp_config.json
{
  "mcpServers": {
    "pdf4dev": {
      "url": "https://pdf4.dev/api/mcp",
      "headers": {
        "Authorization": "Bearer p4_live_xxx"
      }
    }
  }
}

Reload Windsurf after saving the file.

Available in ChatGPT Plus, Team, and Enterprise:

  1. Go to SettingsConnected apps
  2. Click Add MCP server
  3. Enter the URL: https://pdf4.dev/api/mcp
  4. Add the header Authorization: Bearer p4_live_xxx
  5. Save and return to the chat

Verify the connection

Ask your AI agent:

"List my PDF4.dev templates"

If the connection is working, the agent will call list_templates and display your templates (or an empty list if you haven't created any yet).