
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
概覽
JustFill 讓 AI 助理辨識、審閱並填寫 PDF 表單欄位,預覽填寫結果,並儲存可重複使用的範本以便重複填寫。
- 可以做什麼
- 開啟 PDF 與掃描影像,依已儲存範本、內嵌 AcroForm 欄位或機器學習偵測的順序解析欄位,並依頁列出欄位、信心分數與空白或已填寫頁面的預覽。新增、更新、批次更新、刪除或批次清理偵測到的欄位,可設定對齊方式,以修正偵測錯誤。依欄位值填寫 PDF 並輸出檔案,對將被縮小或截斷的值提出警告,並說明輸出是乾淨或帶浮水印。將審閱過的版面儲存為具名範本,並列出已儲存範本,以便確定性地重複填寫。
- 適用情境
- 適合助理需要依結構化資料填寫現有可填寫、扁平或掃描版 PDF 表單的情境,尤其是可先儲存審閱版面再重複使用的重複性表單。也適合透過用戶端或引導式瀏覽器流程,對同一 PDF 依試算表記錄逐列批次填寫。
- 執行需求
- 可作為託管遠端端點透過 OAuth 登入使用,也可在本機以 justfill-mcp Python 套件透過 uv 或 uvx 執行。需要 JustFill 帳號;憑證來自 OAuth 登入、JUSTFILL_API_KEY 環境變數,或舊版 JUSTFILL_EMAIL 與 JUSTFILL_PASSWORD。PDF 處理會消耗帳號額度。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 JustFill PDF Form Automation,將其新增到工作區。
- 連接 所需的 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
- 為需要使用其工具的對話啟用該服務。
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:
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:
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:
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
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
Authorize once (opens the browser, one click while logged in to justfill.app):
Then the config needs no credentials at all:
For a zero-install configuration, use uvx directly:
Alternatives, in the order the server checks them:
JUSTFILL_API_KEYenv — create a key at justfill.app → Account → API Keys and put"env": {"JUSTFILL_API_KEY": "jf_live_…"}in the config.- The key saved by
justfill-mcp login(~/.config/justfill/credentials.json). 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=Trueignores 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 originupdate_field(field_id, …)/remove_field(field_id)update_fields([{field_id, …}, …])/remove_fields([ids])— batch versionsprune_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 withwarningsfor values that will be shrunk/truncated to fitsave_template(name)— persist the reviewed layout for deterministic repeat fillslist_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
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_pdfreports 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版本歷史
1- v0.4.7最新Sep 16, 2026
評分
已滿足適用檢查項的 85%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通必需25 分
- 已宣告認證方式必需10 分
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分