PaperType

v0.1.0
dev.papertype/papertype-mcp Checked 1 day ago Published 1 month ago

Render Markdown, HTML or invoice/certificate/report templates to PDF files via the PaperType API.

Values you need

VariableWhat it is
PAPERTYPE_API_KEYrequired secret PaperType API key (dp_...). Get one at https://papertype.dev/signup.
PAPERTYPE_OUTPUT_DIRoptional Directory where rendered PDFs are saved. Default: the OS temp dir + /papertype.
PAPERTYPE_BASE_URLoptional API origin. Default https://papertype.dev; change only for test deployments. Default: https://papertype.dev

npm (npx) discovery passed

Requires Node.js 18+

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

For AI agents

  1. Ask the user for: PAPERTYPE_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: render_pdf, list_templates, account.
  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