
claimseed
io.github.claimseed由 GitHub 帳號 claimseed 發布v0.5.0更新於 Nov 3, 2026
用於測試提取器和代理的合成美國醫療帳單文件(PDF和真實標註)
AI 翻譯由 AI 模型根據下方的原文描述翻譯,可能有誤。
原文描述
Synthetic US medical-billing documents (PDF and ground truth) for testing extractors and agents
概覽
claimseed 的本機 MCP 服務;無需登入;STDIO。
暫無 AI 概覽:以下資訊來自註冊中心條目和服務本身。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 claimseed,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
@claimseed/mcp
An MCP server that lets an agent list, generate and render claimseed's synthetic medical-billing specimen documents. Rendered documents come back as page images that chat clients show in the conversation, and, if you give it a folder, as PDF and ground-truth files in that folder. It runs over stdio, writes nowhere but that one folder, never reads a file a client names, and needs no network access and no API key.
Run it
Node.js 22.13 or later. Rendering needs Chrome or Chromium (CLAIMSEED_CHROME=/path/to/chrome, or an install in a
usual place); listing and generate_data do not.
To see documents in the chat and save no files:
To also keep each PDF and its ground truth as files, give it a folder:
Or from a checkout: node packages/mcp/src/cli.js (add --workspace ./out for files). With Docker, using the published image
ghcr.io/claimseed/claimseed-mcp (Chromium is inside it; :latest, or a version tag such as :0.1.0), or one you
build from the Dockerfile at the repository root (docker build -t claimseed-mcp ., then use claimseed-mcp as the
image name below):
(The image writes to /work; to save no files, leave out the -v mount and add -e CLAIMSEED_WORKSPACE=.)
The server is listed in the MCP registry as io.github.claimseed/claimseed.
Replace 1000:1000 with your user and group ids (id -u, id -g) so the files in the folder are yours. Chromium's
own sandbox needs privileges a container does not have, so inside the image it runs without it; the container is the
boundary, which is why the flags above take away its network, its capabilities and its writable filesystem.
Tools
Arguments are a type, a scenario slug and a seed (letters, digits, ., _, -; up to 64 characters). The same
type, scenario and seed always give the same data, and on Linux with the same Chrome build the same PDF bytes.
generate_data, render_document, degrade_document and verify_document also take layout_variant for
itemized-bill, ppo-eob and hmo-eob: an id from the type's list in describe_document_type (b01-b12,
p01-p12, h01-h12), or seeded to pick one from the seed. A variant prints the same data with another
column order, header wording, style and way of marking a continued table; the ground truth names it
(documents[0].layoutVariant, schema 1.4) and, with a workspace, the file names carry its id after the seed. Left
out, the document keeps the standard layout, unchanged. msn takes no variant; a value for it, an unknown id, an
id of another type and all are refused with an error that repeats nothing sent.
render_document also takes:
preview:none,firstorall— which pages come back as images (defaultallwithout a workspace,firstwith one). Pages are 1200 pixels on the long side, PNG (JPEG when only a JPEG still fits), and one result carries at mostCLAIMSEED_MCP_PREVIEW_KBof image data (default 800 KB, under the 1 MB some clients allow a tool result); the result says which pages it holds and where to continue. The first requested page is always included, drawn smaller or as a JPEG to fit, and at its smallest even when that is over a very low limit.from_page: the first page to return as an image (default 1), to see the pages one result had no room for.include_pdf: also return the PDF itself, embedded in the result. It counts toward the same limit: when it fits, page images take the room left (none is forced in); when the PDF alone is over the limit it is left out, and the result says so (pdfEmbedded: false).also:835(the only value) — also write the X12 835 remittance of the same claims, formsn,ppo-eobandhmo-eob; any other type is refused. With a workspace it is saved beside the PDF under a name the server chooses (.835) and linked in the result; without one its text is embedded in the result (application/edi-x12). The structured result'sremittancegives the file (or null), its SHA-256 and whether it is embedded; the ground truth holds the 835 asdocuments[1]and, on each error it carries,x12Ref. What the file contains: the core README, "X12 835 remittances".
degrade_document takes the same arguments as render_document and preset: scan, fax, photo or low-res.
The settings (rotation, blur, noise, resolution and the rest) come from the type, scenario, seed and preset, so the
same request gives the same settings. The pixels can differ very slightly from one run to the next (antialiasing
in the browser), and so can the copy's bytes; its ground truth records the SHA-256 of the copy it came with. verify_document scores a report on a
degraded copy against the same answer key as the clean document.
verify_document takes the type, scenario and seed of the document and output, the report in the shape of
schema://extractor-output: fields maps answer-key field paths (the keys of documents[0].fields) to the values
read, and errors lists { kind, fieldRef or lineRef }. It rebuilds the answer key from the seed with this
version of claimseed. Matching follows @claimseed/core's verify command: money to the cent, dates in ISO,
M/D/YYYY or "April 11, 2026", text without regard to case; an error is found when its kind and line match, and
for a duplicate charge either line counts; a flag on a decoy (a line that looks wrong but follows the rules) is a
false alarm. To score a whole rendered set, use claimseed-core batch and claimseed-core verify --manifest.
Resources: schema://ground-truth (the ground-truth JSON Schema), schema://extractor-output (the report
verify_document scores), catalog://scenarios, catalog://mutations (error and decoy operations),
docs://error-taxonomy, policy://synthetic-data, and ui://claimseed/preview (the MCP Apps view below). Prompt:
build_test_case (a goal, optionally a type) plans and renders a small test set with expected results.
Seeing documents in the chat
A render_document result holds the page images as standard MCP image content, the ground truth as structured
content, and names an MCP Apps view
(_meta.ui.resourceUri = "ui://claimseed/preview") that shows the pages with a table of the injected errors and, when
there are any, a table of the decoys. As in describe_document_type, only a document with neither errors nor decoys
is labelled a clean control. What you see depends on the client:
Every client gets the text summary and the structured ground truth. The view is one self-contained page: it loads
nothing (its Content-Security-Policy allows only data: images), sends nothing but the MCP Apps messages to its host,
shows every value as text, and takes only colour and font values from the host's style variables.
ChatGPT reaches MCP servers over HTTPS, so a stdio server needs a bridge and a public address. One way, with
third-party tools (pin versions you have checked): run npx -y [email protected] --stdio "npx -y @claimseed/mcp" --outputTransport streamableHttp --stateful --port 8000, expose port 8000 with a tunnel (for example
cloudflared tunnel --url http://localhost:8000), and add https://<tunnel address>/mcp as a connector in ChatGPT's
developer mode. Anyone who has the tunnel address can call the server while it runs; without a workspace it writes
nothing, but stop the tunnel when you are done.
Limits and safety
- One folder, or none. Without a workspace the server saves no file. Its browser, like any Chrome, keeps a
temporary profile in the system temp folder while it runs (in the container, the in-memory
/tmp); the profile is removed when the browser closes, after a minute without renders or when the server stops, and is left behind only if the process is killed. With a workspace, the server writes only into the workspace folder (--workspaceorCLAIMSEED_WORKSPACE), which must exist and may not be/or your home folder. It picks every file name itself (<type>_<scenario>_<seed>_<random>.pdfand.ground-truth.json), creates files exclusively and never through a symbolic link, and stops if the folder is moved or replaced by a link while it runs. - Quota.
CLAIMSEED_MCP_QUOTA_MB(default 500) caps the total size of its outputs, counted across runs in a ledger (.claimseed-mcp.json) with each file's size and SHA-256. Over the quota it deletes its own oldest outputs from the current run, and only files still exactly as it wrote them; the right to delete is kept in memory, not in the ledger, so an edited ledger cannot make it delete anything. It never deletes any other file, including its outputs from earlier runs: when those alone fill the quota, a render is refused until you remove some. Run one server per folder. - Time and load. One shared browser per server process;
CLAIMSEED_MCP_CONCURRENCYrenders at once (default 2, at most 4) and up to 4 more waiting, after which a render is refused as busy. A render that takes longer thanCLAIMSEED_MCP_TIMEOUT_MS(default 30000) fails and the browser is restarted (a degraded copy takes up to about three times as long as a clean render: about 8 to 9 s for a six-page notice, more on a slow or busy machine, where you should raise the limit); a render running beside it at that moment fails too and can be retried. The browser closes after a minute without renders. A protocol message over 4 MB closes the server. - Rendering is locked down as in
@claimseed/core: HTML is printed from memory with JavaScript off, a strict CSP, request interception and a dead proxy (seeSECURITY.md). Run the Docker image with the flags above. - Page images and degraded copies are drawn from the stamped PDF by PDF.js
(through
@claimseed/core) in a page of the same browser, in a browser context of its own that is closed after each use. That page runs script (PDF.js and the degradation recipes), but it opens only the PDF the server just rendered, loads only PDF.js and its fonts from@claimseed/core(served from memory), has scripting in PDFs off and no network. A degraded copy is stamped again after degradation, so its band and watermark are never blurred or thresholded away. The images show the specimen band and watermark like the PDF, and each image file carries the specimen text in its metadata (PNGtEXt, or Exif and a comment in a JPEG). - Reports are capped and never echoed.
verify_documentrefuses a report over 5,000 fields, 1,000 errors, 200-character paths or 1,000-character values, or in any other shape, with a message that gives positions only. Its result holds counts, rates, answer-key paths, kinds and decoy ids; nothing the caller sent comes back, and nothing in a report is used as a file path. - Arguments are checked. Every tool refuses an argument it does not declare, with a message that names no argument; a misspelt argument, which earlier versions ignored, is now an error.
- Output is marked. Every page carries the specimen band and watermark and the PDF metadata says it is a
synthetic specimen; no tool argument turns that off. See
policy://synthetic-datafor acceptable use.
Develop
來源:packages/mcp/README.md,提交 c4c9a6b
工具
0版本歷史
2- v0.5.0最新Nov 3, 2026
- v0.3.0Oct 29, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分