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

已验证STDIO仅桌面文件与存储AI 与机器学习

概览

claimseed 的本地 MCP 服务;无需登录;STDIO。

暂无 AI 概览:以下信息来自注册中心条目和服务本身。

安装

在 SourceWeft 中

  1. 打开 控制台中的 claimseed,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

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:

json
{ "mcpServers": { "claimseed": { "command": "npx", "args": ["-y", "@claimseed/mcp"] } } }

To also keep each PDF and its ground truth as files, give it a folder:

json
{  "mcpServers": {    "claimseed": {      "command": "npx",      "args": ["-y", "@claimseed/mcp", "--workspace", "/absolute/path/to/claimseed-out"]    }  }}

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):

sh
docker run -i --rm --network none --read-only --tmpfs /tmp --cap-drop ALL --security-opt no-new-privileges \  --user "$(id -u):$(id -g)" -v "$PWD/claimseed-out:/work" ghcr.io/claimseed/claimseed-mcp

(The image writes to /work; to save no files, leave out the -v mount and add -e CLAIMSEED_WORKSPACE=.)

json
{ "mcpServers": { "claimseed": { "command": "docker",  "args": ["run", "-i", "--rm", "--network", "none", "--read-only", "--tmpfs", "/tmp", "--cap-drop", "ALL",           "--security-opt", "no-new-privileges", "--user", "1000:1000",           "-v", "/absolute/path/to/claimseed-out:/work", "ghcr.io/claimseed/claimseed-mcp"] } } }

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

ToolWhat it does
list_document_typesThe types (msn, itemized-bill, ppo-eob, hmo-eob), each with a description and its scenarios.
describe_document_typeEvery scenario of one type: description, period, claim count, the errors it injects (kind, severity, rule) and its public sources, plus the type's layout variant ids (an empty list for msn, which has one layout).
generate_dataThe data and ground truth of one document, without rendering; nothing is written. Takes layout_variant.
render_documentRenders one document and returns its pages as images, its ground truth, the PDF's SHA-256 and page count; with a workspace, also writes the PDF and its ground-truth JSON there and returns both paths. With also: "835", also the X12 835 remittance of the same claims (Medicare Summary Notice and Medicare Advantage EOBs). With layout_variant, one of the type's layout variants.
degrade_documentLike render_document, but for a scanned-looking copy of the document: a flatbed scan, a fax, a phone photo or a low-resolution copy (preset). The copy is an image-only PDF with the specimen band and watermark drawn on top of the degraded pages; its ground truth has the same fields, errors and decoys, plus degradation and the seeded settings in degradationParams. Its structured result names the preset in degradation (null in a render_document result). Takes layout_variant like render_document.
verify_documentScores what an extractor or bill auditor reported about one document against its answer key: field accuracy with the paths read wrong or missed, error recall and precision, false alarms and the decoys flagged. Nothing is rendered or written. With layout_variant, the key of that variant.

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, first or all — which pages come back as images (default all without a workspace, first with one). Pages are 1200 pixels on the long side, PNG (JPEG when only a JPEG still fits), and one result carries at most CLAIMSEED_MCP_PREVIEW_KB of 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, for msn, ppo-eob and hmo-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's remittance gives the file (or null), its SHA-256 and whether it is embedded; the ground truth holds the 835 as documents[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:

ClientWhat it shows
Clients with MCP Apps (ChatGPT, Claude, VS Code and others)The view: every returned page, the injected errors and any decoys, in the conversation.
Clients that show image content (Claude Desktop, claude.ai, MCP Inspector)The page images in the tool result.
Clients that pass images to the model only (several command-line agents)The text summary; the model sees the pages and can describe them.

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 (--workspace or CLAIMSEED_WORKSPACE), which must exist and may not be / or your home folder. It picks every file name itself (<type>_<scenario>_<seed>_<random>.pdf and .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_CONCURRENCY renders 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 than CLAIMSEED_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 (see SECURITY.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 (PNG tEXt, or Exif and a comment in a JPEG).
  • Reports are capped and never echoed. verify_document refuses 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-data for acceptable use.

Develop

sh
npm test -w @claimseed/mcp          # end to end through the MCP client over stdio; rendering tests need Chromenpm run sync-resources -w @claimseed/mcp   # after changing schemas/ or the two documents in docs/ it serves

来源:packages/mcp/README.md,提交 c4c9a6b

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

2
  1. v0.5.0最新Nov 3, 2026
  2. v0.3.0Oct 29, 2026

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

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

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