PolyDoc
v0.1.10HTML/URL to PDF, screenshots, e-invoices.
Values you need
| Variable | What it is | |
|---|---|---|
POLYDOC_API_KEY | required secret | API key from dashboard.polydoc.tech. |
POLYDOC_SANDBOX | optional | Default sandbox mode (watermarked, does not use production quota). A tool call can override per request. Defaults to false. |
POLYDOC_BASE_URL | optional | Override for self-hosted or staging use. Defaults to https://api.polydoc.tech. |
POLYDOC_OUTPUT_DIR | optional | 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.10Add 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
- Ask the user for: POLYDOC_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
- 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).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: polydoc_html_to_pdf, polydoc_screenshot, polydoc_generate_einvoice, polydoc_test_credentials.
- 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