hilvana-mcp
OfficialServer Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Hilvana runs PDF workflows locally as recipes: a JSON list of steps (merge, unlock, select, remove, rotate, stampText, sign, watermark, numberPages, stripMetadata, setMetadata, optimize, compress, ocr, redact, split, protect, fromImages) plus optional goals (maxBytes, pageCount, maxPages, noMetadata).
Scanned PDFs have no text until OCR: {"op":"ocr"} (language "spa" default, or "eng") adds an invisible text layer on this machine, after which pdf text can be searched and redacted by terms. OCR can misread: mention it when figures matter.
To redact for real use the redact step: {"op":"redact","terms":["123456789"],"patterns":["email","number"]} removes the text, image pixels and shapes under each match from the file (not just covers them) and checks the result; "areas" (page, x, y, width, height in points from the bottom-left) covers scanned parts. It is destructive: show the plan and get the user's agreement first.
To make files smaller use the compress step: {"op":"compress"} with goals.maxBytes aims for that size automatically; levels are lossless, balanced (150 dpi images, default), strong (110 dpi) and max (72 dpi). Text is never rasterized.
Word documents (.docx) are accepted anywhere a PDF is: they are converted locally first. Use word_to_pdf for a plain conversion, or include .docx files in a recipe (e.g. merge a .docx with PDFs).
Recipes can end with protect (allowPrint/allowCopy/allowModify false restricts use). Password protection and signDigital (certificate signatures) need a secret and are refused here: never ask for passwords in the chat; point the person to https://pdf.jorgegrajales.dev or npx hilvana protect / npx hilvana certify.
Amazon KDP print books: kdp_check reports what KDP would reject (trim size, page count, margins and gutter, unembedded fonts, images under 300 DPI, annotations, bookmarks, metadata). To fix it, run a recipe with {"op":"kdpPrepare","binding":"paperback","trim":"8.5x11"} (binding paperback or hardcover; bleed true when art reaches the page edge; padToMinimum to add blank pages up to KDP's minimum). It is destructive (it scales content into the margins and removes bookmarks and metadata): show the plan and get the user's agreement first. The result is checked against KDP automatically.
To remove usage restrictions from one PDF and change nothing else, use {"op":"unlock"} as the only step. Files that need a password to open cannot be unlocked here (see below).
Workflow: 1) pdf_list or pdf_inspect to learn page counts; 2) recipe_plan to validate and show the user the steps; 3) recipe_run. Steps marked destructive (select, remove, stripMetadata, setMetadata) need confirm=true, and you should only set it after the user agrees.
Inputs are never modified; results are written to a new file. All processing happens on this computer. Hilvana never uploads files and never returns page text or images, only structure (page count, sizes, metadata presence).
Allowed folders: /tmp
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| resources | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| pdf_listA | Lists PDF, Word (.docx) and image files (PNG/JPEG) in an allowed folder, with page counts for PDFs. Does not read content. |
| pdf_inspectA | Returns structure only: page count, page sizes and rotation, encryption, which metadata fields are set (names only, never their values), signatures and file size. Never returns text or images. |
| kdp_checkA | Checks a print interior against Amazon KDP requirements for a paperback or hardcover: page size (trim plus bleed), page count, margins and gutter by page count, embedded fonts, image resolution (300 DPI), transparency, annotations, bookmarks, metadata. Returns the findings by page; never page text or images. Read only. |
| recipe_planA | Checks a recipe against the actual files without changing anything: schema, file names, page ranges after each step, and which steps are destructive. Returns the steps in plain language to show the user before running. |
| recipe_runA | Runs a recipe locally and writes the result to a NEW file (or, when the recipe ends with split, one new file per part in the output folder), then verifies the goals. Inputs are never modified. If the recipe has destructive steps it returns the plan and asks for confirmation instead of running; set confirm=true only after the user agreed. |
| word_to_pdfA | Converts a Word document (.docx) to a NEW PDF on this computer, with real, selectable text. Returns the page count and any simplifications made (e.g. skipped text boxes). Never uploads the file. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| recipe-schema | The schema every recipe must follow (version 1). |
TDQS
Scored across 6 tools
Each tool has a distinct resource+action: pdf_list enumerates files, pdf_inspect returns structural facts, kdp_check applies KDP rules, recipe_plan/recipe_run form an explicit dry-run/execute pair, and word_to_pdf converts. The only mild overlap (pdf_inspect vs. kdp_check both report page sizes and fonts) is resolved by scope, since one is generic structure and the other KDP-specific compliance.
All six names are snake_case with a consistent domain-prefix + action pattern: pdf_inspect, pdf_list, kdp_check, recipe_plan, recipe_run, word_to_pdf. The prefixes group tools meaningfully by subject (pdf_, recipe_) and verbs are unambiguous.
Six tools is well within the sensible range and each one covers a distinct stage of the document workflow: discover, inspect, validate, plan, execute, convert. Nothing feels padded or redundant.
The workflow is largely closed: list → inspect → KDP check → convert → plan → run, with recipes as the transformation engine. Two modest gaps: there is no tool to discover or author the available recipes (recipe_plan/recipe_run reference recipes that the agent cannot enumerate), and pdf_list surfaces PNG/JPEG files that no tool can actually inspect.