pdfedit-mcp

v0.1.10
io.github.zp130221/pdfedit-mcp Checked 9 hours ago Published 1 month ago

Edit text inside existing PDFs: replace, delete, redact, insert, fill forms; original fonts kept.

Values you need

VariableWhat it is
PDFEDIT_API_KEYoptional secret API key for the PDF Edit API. Optional: without one the hosted API serves the keyless free tier (20 pages a day per IP, outputs watermarked TEST).
PDFEDIT_BASE_URLoptional Gateway base URL. Defaults to http://localhost:8000; set it to the hosted API or to your own deployment. Default: http://localhost:8000

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add pdfedit-mcp -- npx -y @niubai/pdfedit-mcp@0.1.10
Add to claude_desktop_config.json
{
  "mcpServers": {
    "pdfedit-mcp": {
      "args": [
        "-y",
        "@niubai/pdfedit-mcp@0.1.10"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "pdfedit-mcp": {
      "args": [
        "-y",
        "@niubai/pdfedit-mcp@0.1.10"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "pdfedit-mcp": {
      "args": [
        "-y",
        "@niubai/pdfedit-mcp@0.1.10"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.pdfedit-mcp]
command = "npx"
args = ["-y", "@niubai/pdfedit-mcp@0.1.10"]

Remote (hosted)

Run in a terminal
claude mcp add --transport http pdfedit-mcp https://pdfedit-mcp-remote.niubai-pdfedit-remote-worker.workers.dev/mcp
Add to Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote)
{
  "mcpServers": {
    "pdfedit-mcp": {
      "args": [
        "-y",
        "mcp-remote",
        "https://pdfedit-mcp-remote.niubai-pdfedit-remote-worker.workers.dev/mcp"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "pdfedit-mcp": {
      "url": "https://pdfedit-mcp-remote.niubai-pdfedit-remote-worker.workers.dev/mcp"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "pdfedit-mcp": {
      "type": "http",
      "url": "https://pdfedit-mcp-remote.niubai-pdfedit-remote-worker.workers.dev/mcp"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.pdfedit-mcp]
command = "npx"
args = ["-y", "mcp-remote", "https://pdfedit-mcp-remote.niubai-pdfedit-remote-worker.workers.dev/mcp"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: pdf_edit, pdf_batch, pdf_find, pdf_preview, pdf_job.
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json