Skip to main content
ClaudeWave

MCP server and n8n workflows for filling existing PDF forms from JSON or Excel/CSV — detection, review, reusable templates, and native AcroForm fill (JustFill)

MCP ServersRegistry oficial0 estrellas0 forksPythonMITActualizado today
Install in Claude Code / Claude Desktop
Method: pip / Python · ./mcp-server
Claude Code CLI
claude mcp add justfill-mcp -- python -m ./mcp-server
claude_desktop_config.json (Claude Desktop)
{
  "mcpServers": {
    "justfill-mcp": {
      "command": "python",
      "args": ["-m", "./mcp-server"]
    }
  }
}
1. Run the command above in your terminal (Claude Code), or paste the JSON config into claude_desktop_config.json (Claude Desktop).
2. Replace any <placeholder> values with your API keys or paths.
3. Restart Claude. The MCP server and its tools appear automatically.
💡 Install first: pip install ./mcp-server
Casos de uso

Resumen de MCP Servers

# JustFill MCP Server

Let AI agents (Claude, ChatGPT, n8n — any MCP client) detect, review and fill
PDF form fields through [justfill.app](https://justfill.app).

<!-- mcp-name: io.github.mrmaciej1/justfill -->

## Excel or CSV batch workflow

If the source data is already in a spreadsheet and you need one filled copy of
the same existing PDF per row, an MCP client is optional. The guided browser
workflow imports XLSX or CSV, maps columns to reviewed PDF fields, previews each
record, and exports the approved PDFs in a ZIP.

[Try the five-row PDF mail merge sample](https://justfill.app/solutions/fill-pdf-from-excel?utm_source=github&utm_medium=referral&utm_campaign=b2b_pdf_automation_2026q3&utm_content=mcp_readme_excel_batch)
— no card or sales call.

## Why agents can trust it

| Source | Confidence | What it means |
|---|---|---|
| **Saved template** | 1.0 | This exact PDF was filled before; geometry is human/agent-verified. No ML runs at all. |
| **AcroForm** | 1.0 | The PDF has embedded form fields — read from the file, filled natively. |
| **ML detection** | 0.0–0.95 | An honest draft. Review it visually (`render_preview`), fix it, then `save_template` to lock it in. |

ML confidence is *calibrated*: the detector's raw scores are not
probabilities (its server-side filter accepts boxes from raw ~0.02 and
auto-accepts at raw 0.15), so they are mapped onto 0–1 to mean what you'd
expect — ≥0.75 "detector is sure", 0.4–0.75 "probably right, glance at the
preview", <0.4 "borderline accept, verify". The raw detector score is kept
on each field as `raw_score`.

The correction loop (`render_preview` → `add/update/remove_field`) exists
precisely because ML detection has false positives and negatives. A false
positive costs nothing (leave it unfilled or remove it); a false negative is
visible on the preview and fixable with one `add_field` call. Once reviewed,
`save_template` makes every future fill of that form deterministic.

## Setup

```bash
uv tool install ./mcp-server        # or: pip install ./mcp-server
```

Authorize once (opens the browser, one click while logged in to justfill.app):

```bash
justfill-mcp login
```

Then the config needs no credentials at all:

```json
{
  "mcpServers": {
    "justfill": { "command": "justfill-mcp" }
  }
}
```

Alternatives, in the order the server checks them:

1. `JUSTFILL_API_KEY` env — create a key at justfill.app → Account → API Keys
   and put `"env": {"JUSTFILL_API_KEY": "jf_live_…"}` in the config.
2. The key saved by `justfill-mcp login` (`~/.config/justfill/credentials.json`).
3. `JUSTFILL_EMAIL` + `JUSTFILL_PASSWORD` — legacy fallback; an API key is
   better (no password in config files, revocable per client, never expires
   mid-session).

## Tools

- `open_pdf(path, min_confidence=0.0, max_pages=10, force_detect=False)` —
  template → AcroForm → ML resolution order. Accepts scanned images too
  (jpg/png/tiff → converted to PDF, deterministically, so templates still
  match). `force_detect=True` ignores a saved template and re-runs ML.
- `render_preview(page_index)` — page image with labeled field boxes (blue = deterministic, green/orange/red = ML confidence)
- `render_filled_preview(values, page_index)` — the same page with your values
  drawn in place (checkboxes get an X). Costs no fills — check before you fill.
- `list_fields(page_index?)`
- `add_field(x, y, w, h, name, page_index, field_type, align?, vertical_align?)` — coords in % of page, top-left origin
- `update_field(field_id, …)` / `remove_field(field_id)`
- `update_fields([{field_id, …}, …])` / `remove_fields([ids])` — batch versions
- `prune_fields(field_type?, confidence_below?, width_below?, height_below?, page_index?, exclude_ids?)` —
  bulk-delete detection noise in one call (criteria AND-ed, removed ids returned)
- `fill_pdf(values, output_path, flatten=True)` — `values` = `{field_id: text}`;
  responds with `warnings` for values that will be shrunk/truncated to fit
- `save_template(name)` — persist the reviewed layout for deterministic repeat fills
- `list_templates()`

Text alignment: `align` = `left|center|right`, `vertical_align` =
`top|middle|bottom` — set per field (e.g. `right` for RTL forms, `center` for
boxed digits). Persisted in templates.

## Example agent flow

```
open_pdf("~/forms/w-9.pdf")            → acroform, 27 fields, confidence 1.0
fill_pdf({"f1": "Jane Doe", …}, "~/out/w-9-filled.pdf")
```

```
open_pdf("~/forms/scan.jpg")           → converted to PDF; ml, 34 fields
render_preview(0)                      → agent sees noise + one missed line
prune_fields(field_type="cell", width_below=3)   → 16 removed in one call
add_field(x=18, y=62.5, w=40, h=3, name="Phone")
render_filled_preview({…})             → values sit right, no overflow
fill_pdf({…}, "~/out/filled.pdf")
save_template("Client intake form")    → next time: deterministic
```

## Notes

- Auth is a regular justfill.app account; tokens auto-refresh on expiry.
- Usage and document-output rules are enforced by the same account service as
  the web app. `fill_pdf` reports whether the output is clean or watermarked.
- One PDF open at a time per server session (by design — keeps ids stable).
- This repository mirrors released versions of the MCP client (development
  happens in a private monorepo alongside the justfill.app backend). Bug
  reports and feature requests are very welcome in the issue tracker here.
ai-agentsautomationdocument-automationformsgemini-cli-extensionmcpmcp-servermodel-context-protocoln8npdfpdf-forms

Lo que la gente pregunta sobre justfill-mcp

¿Qué es mrmaciej1/justfill-mcp?

+

mrmaciej1/justfill-mcp es mcp servers para el ecosistema de Claude AI. MCP server and n8n workflows for filling existing PDF forms from JSON or Excel/CSV — detection, review, reusable templates, and native AcroForm fill (JustFill) Tiene 0 estrellas en GitHub y se actualizó por última vez today.

¿Cómo se instala justfill-mcp?

+

Puedes instalar justfill-mcp clonando el repositorio (https://github.com/mrmaciej1/justfill-mcp) o siguiendo las instrucciones del README en GitHub. ClaudeWave también te ofrece bloques de instalación rápida en esta misma página.

¿Es seguro usar mrmaciej1/justfill-mcp?

+

mrmaciej1/justfill-mcp aún no ha sido auditado por nuestro agente de seguridad. Revisa el repositorio original en GitHub antes de usarlo en producción.

¿Quién mantiene mrmaciej1/justfill-mcp?

+

mrmaciej1/justfill-mcp es mantenido por mrmaciej1. La última actividad registrada en GitHub es de today, con 0 issues abiertos.

¿Hay alternativas a justfill-mcp?

+

Sí. En ClaudeWave puedes explorar mcp servers similares en /categories/mcp, ordenados por popularidad o actividad reciente.

Despliega justfill-mcp en tu cloud

Lleva este repo a producción en minutos. Cada plataforma genera su propio entorno con variables de entorno editables.

¿Mantienes este repo? Añade un badge a tu README

Pega el badge en tu README de GitHub para mostrar que está auditado por ClaudeWave. Cada badge enlaza de vuelta a esta página y muestra el Trust Score actual.

Featured on ClaudeWave: mrmaciej1/justfill-mcp
[![Featured on ClaudeWave](https://claudewave.com/api/badge/mrmaciej1-justfill-mcp)](https://claudewave.com/repo/mrmaciej1-justfill-mcp)
<a href="https://claudewave.com/repo/mrmaciej1-justfill-mcp"><img src="https://claudewave.com/api/badge/mrmaciej1-justfill-mcp" alt="Featured on ClaudeWave: mrmaciej1/justfill-mcp" width="320" height="64" /></a>

Más MCP Servers

Alternativas a justfill-mcp