# docjet-mcp [Health: Active]

**Category:** 🎥 Multimedia Process  
**Repository:** https://github.com/docjet-dev/docjet-mcp  
**GitHub Stars:** 0  
**npm Downloads (last month):** 166  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/docjet-mcp

## Description
Render branded PDFs and PNG images from templates or raw HTML via the DocJet API. Free tier.

## Tools
Capabilities this server exposes over MCP:

- **render_pdf** — Render a branded PDF document with the DocJet API. Provide a template_id (discover them with list_templates) or raw html, plus a data object for template variables. Returns a signed download URL for the PDF.
- **render_image** — Render a PNG image (e.g. an OG/social card) with the DocJet API. Provide a template_id (discover them with list_templates) or raw html, plus a data object for template variables. Returns a signed download URL for the PNG.
- **list_templates** — List the available DocJet templates: id, name, description and outputType (pdf or png). Use a returned id as template_id in render_pdf / render_image.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "docjet-mcp": {
    "command": "npx",
    "args": ["docjet-mcp"],
    "env": {
      "DOCJET_API_KEY": "",
      "DOCJET_BASE_URL": ""
    }
  }
}
```

**Requires environment variables:** `DOCJET_API_KEY`, `DOCJET_BASE_URL` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What docjet-mcp MCP server does

The docjet-mcp MCP server exposes DocJet rendering operations as MCP tools. Agents can generate branded PDF documents such as invoices, reports, and certificates, or create PNG images for uses such as Open Graph and social cards. Each rendering request can reference a DocJet template by ID or provide raw HTML instead. A JSON data object supplies the values used by the template or HTML.

The rendering tools return signed download URLs rather than embedding the generated files in the MCP response. A separate discovery tool lists the templates available to the connected DocJet account, including each template's ID, name, description, and output type. Template discovery does not require an API key.

## How it works

The server uses the MCP SDK's version 1 implementation and communicates with clients over stdio. It can be started with npx, so the local process handles MCP communication while requests are sent to DocJet's API. The PDF tool calls the PDF rendering endpoint, the image tool calls the PNG rendering endpoint, and the template tool calls the templates endpoint.

Before sending a rendering request, the server checks template IDs locally. IDs must begin with a lowercase letter or number, may contain lowercase letters, numbers, and hyphens, and cannot exceed 64 characters. API failures are returned as MCP error content, including DocJet error codes such as quota and rate-limit errors.

## Setup and configuration

Run the docjet-mcp MCP server from an MCP client's server configuration using the `npx` command and the `docjet-mcp` package argument. Set `DOCJET_API_KEY` in the server environment.

`DOCJET_BASE_URL` is optional and can override the default API base URL, `https://api.docjet.dev`. A DocJet API key is available from DocJet.

## Tools and capabilities

- `render_pdf` renders a branded PDF from a template ID or raw HTML plus data and returns a signed URL.
- `render_image` renders a PNG from a template ID or raw HTML plus data and returns a signed URL.
- `list_templates` returns template IDs, names, descriptions, and output types without an API key.

## Limitations and notes

The docjet-mcp MCP server depends on DocJet availability and account limits. The public demo key is shared and has the documented rate and monthly render limits, so it is intended for limited trials rather than unrestricted use. Rendering requires an API key, while listing templates does not. The server is designed for local stdio use and does not require hosting a separate service.

_Full upstream README: https://allmcps.com/mcp/docjet-mcp/readme_

