PolyDoc

v0.1.10
tech.polydoc/polydoc-mcp Checked 15 hours ago Published 28 days ago

HTML/URL to PDF, screenshots, e-invoices.

Values you need

VariableWhat it is
POLYDOC_API_KEYrequired secret API key from dashboard.polydoc.tech.
POLYDOC_SANDBOXoptional Default sandbox mode (watermarked, does not use production quota). A tool call can override per request. Defaults to false.
POLYDOC_BASE_URLoptional Override for self-hosted or staging use. Defaults to https://api.polydoc.tech.
POLYDOC_OUTPUT_DIRoptional Directory downloads are written to. Defaults to the OS temp dir + /polydoc.

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add polydoc-mcp -e 'POLYDOC_API_KEY=<POLYDOC_API_KEY>' -- npx -y polydoc-mcp@0.1.10
Add to claude_desktop_config.json
{
  "mcpServers": {
    "polydoc-mcp": {
      "args": [
        "-y",
        "polydoc-mcp@0.1.10"
      ],
      "command": "npx",
      "env": {
        "POLYDOC_API_KEY": "<POLYDOC_API_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "polydoc-mcp": {
      "args": [
        "-y",
        "polydoc-mcp@0.1.10"
      ],
      "command": "npx",
      "env": {
        "POLYDOC_API_KEY": "<POLYDOC_API_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "POLYDOC_API_KEY",
      "id": "polydoc-api-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "polydoc-mcp": {
      "args": [
        "-y",
        "polydoc-mcp@0.1.10"
      ],
      "command": "npx",
      "env": {
        "POLYDOC_API_KEY": "${input:polydoc-api-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.polydoc-mcp]
command = "npx"
args = ["-y", "polydoc-mcp@0.1.10"]
env = { "POLYDOC_API_KEY" = "<POLYDOC_API_KEY>" }

For AI agents

  1. Ask the user for: POLYDOC_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. 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).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: polydoc_html_to_pdf, polydoc_screenshot, polydoc_generate_einvoice, polydoc_test_credentials.
  5. 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