JustFill PDF Form Automation

io.github.mrmaciej1由 GitHub 账号 mrmaciej1 发布v0.4.7更新于 Oct 25, 2026

Fill existing fillable, flat and scanned PDF forms from structured data; save reusable templates

已验证Streamable HTTP可网页运行效率与工作流文件与存储

概览

AI 生成的概览

JustFill 让 AI 助手识别、审阅并填写 PDF 表单字段,预览填写结果,并保存可复用的模板以便重复填写。

可以做什么
打开 PDF 和扫描图像,按已保存模板、内嵌 AcroForm 字段或机器学习检测的顺序解析字段,并按页列出字段、置信度和空白或已填写页面的预览。新增、更新、批量更新、删除或批量清理检测到的字段,可设置对齐方式,以修正检测错误。按字段值填写 PDF 并输出文件,对将被缩小或截断的值给出警告,并说明输出是干净还是带水印。将审阅过的版式保存为命名模板,并列出已保存模板,以便确定性地重复填写。
适用场景
适合助手需要依据结构化数据填写现有可填写、扁平或扫描版 PDF 表单的场景,尤其是可先保存审阅版式再复用的重复表单。也适合通过客户端或引导式浏览器流程,对同一 PDF 按表格记录逐行批量填写。
运行要求
可作为托管远程端点通过 OAuth 登录使用,也可在本地以 justfill-mcp Python 包通过 uv 或 uvx 运行。需要 JustFill 账户;凭据来自 OAuth 登录、JUSTFILL_API_KEY 环境变量,或旧版 JUSTFILL_EMAIL 与 JUSTFILL_PASSWORD。PDF 处理会消耗账户额度。
安装前请注意
填写和保存模板会写入输出文件及账户内模板,导出前应先查看预览。PDF 处理会消耗账户套餐额度,生成文件可能依套餐带有水印。旧版 JUSTFILL_EMAIL 与 JUSTFILL_PASSWORD 回退方式会把密码写入配置文件;API 密钥可按客户端撤销。可在 Account → API Keys 中撤销访问权限。

安装

在 SourceWeft 中

  1. 打开 控制台中的 JustFill PDF Form Automation,将其添加到工作区。
  2. 连接 所需的 凭据。它们会被私密存储,绝不会在公开页面上展示。
  3. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.mrmaciej1%2Fjustfill/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。 客户端会在首次连接时完成 OAuth 登录。

{
  "mcpServers": {
    "justfill-pdf-form-automation": {
      "type": "http",
      "url": "https://justfill.app/api/mcp"
    }
  }
}

README

JustFill MCP Server

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

Fill PDF forms in ChatGPT

Install the published JustFill PDF Forms plugin from the ChatGPT plugin directory, then connect your JustFill account. This hosted path does not require installing the Python client or configuring an MCP server manually.

Try this prompt with the one-page, six-field sample:

text
Use JustFill to open https://justfill.app/examples/chatgpt/project-intake.pdf.List its fields and show a preview. Do not fill anything yet.

Ask for a filled preview with fictional values and approve it before generating the PDF. Save the reviewed layout, then open the same original blank PDF for the next client or project. Your saved template is available in the same JustFill account; generated files follow that account's plan.

Try the two-project example and download the real editable results. The example includes prompts for two fictional clients, the blank PDF, and two generated PDFs with their free-output watermark.

Hosted server — no local installation

If your MCP client supports remote servers with OAuth, use this server URL:

text
https://justfill.app/api/mcp

Connect from your client, sign in to JustFill, and review the access request. You do not need to install the Python package or copy an API key for this path. Access can be revoked in JustFill under Account → API Keys.

Connection guide. The client is MIT-licensed; PDF processing uses your JustFill account's allowance. For a first check, use a blank form and fictional values, and review the filled preview before exporting. Save the reviewed layout to reuse it with new data when the same form comes up again.

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 — no card or sales call.

Import-ready n8n workflows

Start with the deterministic workflow JSON in this repository. It collects a PDF and JSON payload, reuses the reviewed field names saved for that exact form, fills the original layout and returns a temporary download link.

The workflow is listed in the n8n template library. For new runs, import the current strict-mapping JSON from this repository, which includes the synthetic fixture and validation evidence alongside it. The workflow is free to download; running it uses a JustFill account and its PDF-processing allowance. It uses built-in nodes, not the separate JustFill community node.

The repository also includes the exact deterministic workflow JSON, synthetic test PDF, production evidence and a separate two-pass vision workflow for an unfamiliar form. Both call the hosted MCP endpoint with standard HTTP Request nodes and can be inspected before adding credentials.

Inspect the source workflows and evidence, or follow the step-by-step n8n setup.

Business example: recurring supplier intake

An operations team can keep the supplier's required intake PDF unchanged, save its reviewed field layout once, and let n8n map approved vendor data from a webhook or CRM record into that exact form. The workflow returns a temporary filled-PDF link that can be reviewed before it is uploaded to Drive, attached to a draft email, or written back to the vendor record. The repository's synthetic supplier-intake PDF exercises this exact path without customer data.

Gemini CLI extension

Install the same reviewed MCP tools plus the included PDF workflow guidance:

bash
gemini extensions install https://github.com/mrmaciej1/justfill-mcp

The extension manifest lives at the repository root and uses the published justfill-mcp package. Gemini CLI asks for normal third-party extension consent before enabling it.

Why agents can trust it

SourceConfidenceWhat it means
Saved template1.0This exact PDF was filled before; geometry is human/agent-verified. No ML runs at all.
AcroForm1.0The PDF has embedded form fields — read from the file, filled natively.
ML detection0.0–0.95An 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.

Local client setup

bash
uv tool install justfill-mcp

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" }  }}

For a zero-install configuration, use uvx directly:

json
{  "mcpServers": {    "justfill": {      "command": "uvx",      "args": ["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.0fill_pdf({"f1": "Jane Doe", …}, "~/out/w-9-filled.pdf")
open_pdf("~/forms/scan.jpg")           → converted to PDF; ml, 34 fieldsrender_preview(0)                      → agent sees noise + one missed lineprune_fields(field_type="cell", width_below=3)   → 16 removed in one calladd_field(x=18, y=62.5, w=40, h=3, name="Phone")render_filled_preview({…})             → values sit right, no overflowfill_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.

来源:README.md,提交 cd1ba77

工具

0
该服务器需要登录,因此 SourceWeft 无法在没有账号的情况下读取其工具,也未收录。已连接账号所能看到的内容可能因账号及其权限而异。

版本历史

1
  1. v0.4.7最新Sep 16, 2026

评分

已满足适用检查项的 85%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分