fop-label-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| FOP_LABEL_FONT_DIR | No | Font folder (read-only access). | |
| FOP_LABEL_ALLOWED_DIRS | No | Folders where the server is allowed to read CSV/templates/images/fonts and write PDFs (separate multiple with ':' on macOS/Linux, ';' on Windows). If omitted, only the server's working directory is allowed. | |
| FOP_LABEL_TEMPLATE_DIR | No | Additional template folders (read-only access). |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
CSV とテンプレート(JSON)から名札・商品ラベル・POP の PDF を作るサーバーです。通常の流れ: list_templates → describe_template → validate_csv → preview_label → generate_pdf。ファイルパスは絶対パスで指定してください。読み書きできるのはサーバーの管理者が許可したフォルダ(環境変数 FOP_LABEL_ALLOWED_DIRS、未設定ならサーバーの作業フォルダ)の中だけです。既存の PDF は overwrite=true のときだけ上書きします。
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_templatesA | 同梱・指定フォルダのテンプレート一覧(名前、サイズ mm、使う {{項目}})を返す。 |
| describe_templateA | 1つのテンプレートの詳細(サイズ、要素、必要な {{項目}}、A4 に入る面数、CSV 見出し例)を返す。 |
| validate_csvA | CSV とテンプレートを突き合わせる。足りない列、空欄、自動縮小される文字、 最小サイズでも収まらない(省略される)文字、見つからない画像を報告する。 |
| preview_labelB | CSV の1行だけを、ラベル1枚分のサイズの PDF にして確認用に出力する。 |
| generate_pdfA | 全行(copies 列があればその枚数ぶん)を用紙に面付けした PDF を出力する。 出力前に validate_csv と同じ確認を行い、足りない列・不正な copies・収まらない文字があれば PDF を作らずエラーを返す。ページ数・1枚あたりの面数・処理時間・警告を返す。最大 5,000 面。 |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 5 tools
Each tool targets a distinct stage of the label pipeline (discover, inspect, validate, preview, generate), so list_templates vs describe_template and preview_label vs generate_pdf are clearly separated by scope (one vs many, detail vs list). The only overlap is that generate_pdf silently re-runs validate_csv's checks, but the description clarifies that validate_csv is report-only while generate_pdf aborts on errors.
All five tools follow a uniform snake_case verb_noun pattern (list_, describe_, validate_, preview_, generate_). No mixed casing or inconsistent verb styles.
Five tools is tightly scoped for a CSV-to-label-PDF workflow, and each one earns its place as a distinct step in the pipeline. Nothing feels redundant or padding.
The surface covers the full operational lifecycle: discovery, per-template inspection, pre-flight validation, single-label preview, and full imposition output, with documented limits (5,000 labels). Minor gaps remain—no way to author or edit templates, and no explicit tool for re-fetching or listing previously generated PDFs—but these may be out of scope.