Skip to content
MCP server

CastPDF

Create PDFs from your CastPDF templates or HTML, issue EU e-invoices, and look up…

Runs locallyStatus and history
Install
Pricing
Open source
Runs
Locally
Version
0.1.0
Listing updated
5 days ago

About CastPDF

CastPDF is an open-source MCP server. It runs locally on your machine and is started by your AI client.

Create PDFs from your CastPDF templates or HTML, issue EU e-invoices, and look up documents.

Install

Run in a terminal

claude mcp add castpdf-mcp --env CASTPDF_API_KEY='<CASTPDF_API_KEY>' -- npx -y @castpdf/mcp

Add to claude_desktop_config.json

{
  "mcpServers": {
    "castpdf-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@castpdf/mcp"
      ],
      "env": {
        "CASTPDF_API_KEY": "<CASTPDF_API_KEY>"
      }
    }
  }
}

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "castpdf-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@castpdf/mcp"
      ],
      "env": {
        "CASTPDF_API_KEY": "<CASTPDF_API_KEY>"
      }
    }
  }
}

Add to .vscode/mcp.json

{
  "servers": {
    "castpdf-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@castpdf/mcp"
      ],
      "env": {
        "CASTPDF_API_KEY": "<CASTPDF_API_KEY>"
      }
    }
  }
}

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

{
  "mcpServers": {
    "castpdf-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@castpdf/mcp"
      ],
      "env": {
        "CASTPDF_API_KEY": "<CASTPDF_API_KEY>"
      }
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "castpdf-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@castpdf/mcp"
      ],
      "env": {
        "CASTPDF_API_KEY": "<CASTPDF_API_KEY>"
      }
    }
  }
}

Configuration

  • CASTPDF_API_KEYYour CastPDF API key (cpdf_test_... for watermarked test documents, cpdf_live_... for live ones).Required

Pricing

Open source

Prices change. Check castpdf.com before you buy.

CastPDF FAQ

Is CastPDF free?

Yes. CastPDF is open source, so you can use and self-host it for free.

How do I add CastPDF to Claude Code?

Run this command in your terminal: claude mcp add castpdf-mcp --env CASTPDF_API_KEY='<CASTPDF_API_KEY>' -- npx -y @castpdf/mcp