# re-port-flow/reportflow-mcp [Health: Active]

**Category:** 🏢 Workplace & Productivity  
**Repository:** https://github.com/re-port-flow/reportflow-mcp  
**GitHub Stars:** 1  
**npm Downloads (last month):** 371  
**Views:** 5  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/re-port-flow-reportflow-mcp

## Description
Generate PDF reports (invoices, contracts, statements) from ReportFlow templates. 9 tools, 4 resources, 3 prompt recipes. OAuth2 + PKCE for first-run auth; supports single PDF and batch (ZIP) generation. npx -y reportflow-mcp

## Tools
Capabilities this server exposes over MCP:

- **authenticate** — Re:port Flow への OAuth2 認証を行います。ブラウザが起動し、ログイン・ワークスペース選択・consent を経てトークンを keychain (または XDG file) に保存します。他のツールが認証エラーを返したら、まずこのツールを呼んでください。force=true で既存トークンを破棄して再認証します。
- **get_design_parameters** — 【PDF 生成の起点 / Sampling 不要・全クライアント対応】指定 designId のパラメータ構造（各フィールドの name・type・label、および作成者が設定した場合は意味・入力ガイドを表す description）を取得します。generate_pdf_sync / generate_pdfs_async を呼ぶ前に必ず本ツールでスキーマを確認し、description があればその意図に沿って、ユーザーから実値を聞き取って params を組み立ててください。プレースホルダーや架空値の生成は禁止です。
- **list_templates** — ワークスペース内のデザイン一覧を取得します。各デザインのID・名称・最新バージョン・サムネイルURLを返します。取得したidをdesignIdとしてPDF生成ツールやget_design_parametersに使用します。テンプレートを選ぶ際は、まず label（名称）とユーザーの希望の一致度を最優先に判断し、最も近いものを選んでください。名称だけで絞り込めない場合に限り作業内容から推測してよく、それでも曖昧な場合は候補を提示してユーザーに確認してください。
- **generate_pdf_sync** — デザインIDとパラメータを指定してPDFを生成します。応答にダウンロード URL が含まれるため、本ツール 1 回の呼び出しで結果提示が完結します (別途ダウンロード用ツールを呼ぶ必要はありません)。
- stdio モード (Claude Desktop / Code): ローカルに保存し絶対パスも返します。outputDir で保存先を指定できます (未指定時はクライアントのワークスペース Roots または OS 一時ディレクトリ)。
- HTTP モード (claude.ai / n8n 等): サーバー側には保存せず、ダウンロード URL (fileUrl) と requestId / fileId を返します。

【重要】呼び出し前に必ず get_design_parameters でデザインの必要パラメータ構造を確認し、ユーザーから必要な値を聞き出すこと。プレースホルダー値・架空の値を勝手に生成しないこと。

【passthrough のプライバシー注意】content.passthrough のトップレベルの文字列/数値の値は生成 PDF の XMP メタデータに埋め込まれ、PDF 受領者や OS のファイル検索 (Spotlight / Windows Search) から閲覧可能になるため、個人情報・機微情報を入れないこと。
- **generate_pdfs_sync** — 複数のパラメータセットでPDFを一括同期生成し、ZIPファイルとして返します。生成完了後にZIPファイルのローカルパスを返します。outputDir を指定するとそのディレクトリに、未指定の場合はクライアントのワークスペース (Roots) または OS 一時ディレクトリに保存します。zipFileName で出力 ZIP のファイル名を指定可能 (デフォルト download.zip)。

【重要】呼び出し前に必ず get_design_parameters でデザインの必要パラメータ構造を確認し、ユーザーから必要な値を聞き出すこと。ユーザーが指定していないパラメータがある場合は、本ツールを呼ぶ前にユーザーに必ず確認すること。プレースホルダー値・架空の値を勝手に生成しないこと。パラメータが一切提供されていない場合も、まずユーザーに値を尋ねること。

【passthrough のプライバシー注意】contents[].passthrough のトップレベルの文字列/数値の値は生成 PDF の XMP メタデータに埋め込まれ、PDF 受領者や OS のファイル検索 (Spotlight / Windows Search) から閲覧可能になるため、個人情報・機微情報を入れないこと。
- **download_file** — generate_pdf_asyncで生成した単一PDFファイルをダウンロードします。requestIdとfileIdを指定し、ローカルファイルパスを返します。outputDir を指定するとそのディレクトリに、未指定の場合は現在の作業ディレクトリに保存します。
- **download_zip** — generate_pdfs_asyncで生成したZIPファイルをダウンロードします。requestIdを指定し、ローカルのZIPファイルパスを返します。outputDir を指定するとそのディレクトリに、未指定の場合は現在の作業ディレクトリに保存します。
- **generate_pdf_async** — デザインIDとパラメータを指定してPDFを非同期生成します。即座にrequestIdとfiles情報を返します。ファイルのダウンロードはdownload_fileツールを使用してください。

【重要】呼び出し前に必ず get_design_parameters でデザインの必要パラメータ構造を確認し、ユーザーから必要な値を聞き出すこと。ユーザーが指定していないパラメータがある場合は、本ツールを呼ぶ前にユーザーに必ず確認すること。プレースホルダー値・架空の値を勝手に生成しないこと。パラメータが一切提供されていない場合も、まずユーザーに値を尋ねること。

【passthrough のプライバシー注意】content.passthrough のトップレベルの文字列/数値の値は生成 PDF の XMP メタデータに埋め込まれ、PDF 受領者や OS のファイル検索 (Spotlight / Windows Search) から閲覧可能になるため、個人情報・機微情報を入れないこと。
- **generate_pdfs_async** — 複数のパラメータセットでPDFを一括非同期生成します。即座にrequestIdとfiles情報を返します。ZIPダウンロードはdownload_zipツールを使用してください。

【重要】呼び出し前に必ず get_design_parameters でデザインの必要パラメータ構造を確認し、ユーザーから必要な値を聞き出すこと。ユーザーが指定していないパラメータがある場合は、本ツールを呼ぶ前にユーザーに必ず確認すること。プレースホルダー値・架空の値を勝手に生成しないこと。パラメータが一切提供されていない場合も、まずユーザーに値を尋ねること。

【passthrough のプライバシー注意】contents[].passthrough のトップレベルの文字列/数値の値は生成 PDF の XMP メタデータに埋め込まれ、PDF 受領者や OS のファイル検索 (Spotlight / Windows Search) から閲覧可能になるため、個人情報・機微情報を入れないこと。
- **suggest_params** — 自然文の要件と designId から、クライアント AI（Sampling）で generate_pdf_sync 用の params JSON を下書きします。【Sampling 必須】claude.ai 等の Sampling 非対応クライアントでは自動生成できず、その場合はパラメータスキーマをそのまま返すので手動で params を埋めてください。パラメータ構造の確認だけが目的なら get_design_parameters を使ってください。サーバー側 API キー不要。生成された params は必ずユーザー承認のうえ generate_pdf_sync に渡してください。
- **search** — Re:port Flow の内部テンプレートカタログ（ユーザー自身のワークスペースに登録済みのデザイン）から、名称の部分一致でテンプレートを解決し、各ヒットの id・title・url を返します。外部サイトや Web の検索は一切行わず、参照範囲は当該ワークスペース内に限定されます。請求書・見積書などのテンプレートを探したいときに使用します。返した id（"<designId>@<version>" 形式）は fetch ツールに渡してパラメータ詳細を取得できます。
- **fetch** — Re:port Flow の内部テンプレートカタログから、デザイン id（"<designId>@<version>" 形式。version は省略可で最新版）で 1 件のテンプレート詳細（PDF 生成に必要なパラメータスキーマ）を取得します。外部サイトや Web へのアクセスは行わず、参照範囲はユーザー自身のワークスペース内に限定されます。search ツールで見つけたテンプレートの中身を確認したいときに使用します。
- **search_gallery_templates** — 公開テンプレートギャラリーから、まだワークスペースに取り込んでいないテンプレートをキーワードで探します（認証不要）。タイトル・説明・タグ・カテゴリの部分一致で絞り込み、各候補の slug・title・description・category・tags・thumbnailUrl・duplicateCount を返します。ワークスペース内の既存デザインを探す場合はこのツールではなく list_templates / search を使ってください。重要: このツールが返す slug では PDF 生成できません。先に copy_gallery_template で自分のワークスペースへ複製し、返された designId を get_design_parameters / generate_pdf_sync に渡してください。
- **get_gallery_template** — 公開テンプレートギャラリーのテンプレート詳細を slug で取得します（認証不要）。説明全文・カテゴリ・タグ・サムネイルURL・テンプレート版・複製実績数・作成者名を返します。slug は search_gallery_templates の結果から取得してください。重要: ギャラリーのテンプレートはまだワークスペースにありません。この slug では PDF 生成できないため、使う場合は copy_gallery_template で複製し、返された designId を get_design_parameters / generate_pdf_sync に渡してください。
- **copy_gallery_template** — 公開テンプレートギャラリーのテンプレートを、認可時に選択した自分のワークスペースへ複製します（要認証・書き込み）。複製先ワークスペースは接続時の認可で決まっており、引数で変更できません。成功すると designId と version を返すので、そのまま get_design_parameters → generate_pdf_sync に渡して PDF 生成へ進めます。slug は search_gallery_templates / get_gallery_template で確認してください。注意: 呼ぶたびに新しいデザインが 1 件作成されます（同じ slug でも既存の複製は再利用されません）。同じテンプレートを誤って何度も複製しないでください。

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "reportflow-mcp": {
    "command": "npx",
    "args": ["-y","reportflow-mcp"]
  }
}
```

## Documentation

## What re-port-flow/reportflow-mcp does

re-port-flow/reportflow-mcp exposes Re:port Flow document generation through the Model Context Protocol. An agent can inspect designs available in an authorized workspace, retrieve the fields required by a design, and submit values to create PDFs. Typical outputs include invoices, contracts, statements, and other documents built with Re:port Flow templates.

The server also supports starting with no workspace templates. Public gallery entries can be searched without authentication, inspected by slug, and copied into the workspace selected during authorization. Gallery slugs are not valid PDF-generation identifiers; the copied design must be inspected before it is used.

## How it works

A reliable generation flow begins with template selection. `list_templates` returns workspace designs and their identifiers, names, latest versions, and thumbnail URLs. The `search` and `fetch` tools provide another workspace-scoped route: search resolves names to design references, while fetch returns the parameter schema for one design. Gallery searches use `search_gallery_templates` and `get_gallery_template`; `copy_gallery_template` imports the chosen design into the authorized workspace.

Before generating a document, call `get_design_parameters` or `fetch` and use the returned schema to collect the required values. The server is designed not to fill missing fields with invented or placeholder data. `suggest_params` can draft a parameter object from a natural-language request on clients that support MCP sampling, but the generated values require user approval before submission.

`generate_pdf_sync` produces a single PDF in one operation. `generate_pdf_async` returns identifiers for a background job, after which `download_file` can save the completed file in local stdio mode. Batch generation is available through the synchronous and asynchronous batch tools, with `download_zip` for retrieving an asynchronous ZIP result.

## Setup and configuration

Remote clients can connect to the Streamable HTTP endpoint at `https://mcp.re-port-flow.com/mcp` as a custom connector. Local clients use stdio through `npx`:

```json
{
  "mcpServers": {
    "reportflow": {
      "command": "npx",
      "args": ["-y", "reportflow-mcp"]
    }
  }
}
```

The local setup requires Node.js 22.23.4 or later in the 22.x line and a browser for the first login. A Re:port Flow account is required in either mode. Remote authentication is handled by the client; local authentication opens a browser for sign-in, workspace selection, and consent. Local tokens are stored in the operating system credential store, with a restricted-permission file fallback.

No environment variables, API keys, or manually managed secrets are required. Output paths in local mode can be supplied explicitly; otherwise the server uses the active workspace root when available and then the operating system temporary directory. Remote generation returns output-history URLs rather than saving files on the server.

## Tools and capabilities

- Authenticate with Re:port Flow and select a workspace.
- List workspace designs and inspect their PDF parameter schemas.
- Search and fetch workspace templates by name and design reference.
- Search, inspect, and copy public gallery templates.
- Generate one PDF synchronously or asynchronously.
- Generate multiple PDFs synchronously or asynchronously and package them as ZIP output.
- Download completed asynchronous PDF and ZIP files in stdio mode.
- Expose prompt recipes for single generation, batch generation, and feature help.

## Limitations and notes

Synchronous generation has a 60-second timeout in the API. Longer-running work should use asynchronous generation. Download tools are for the local stdio workflow; remote operations return output-history URLs instead.

The `passthrough` values at the top level of generated content are written into PDF XMP metadata. Those values may be visible to recipients and operating-system search tools, so personal or sensitive information should not be placed there.

Gallery templates must be copied before they can generate PDFs, and each copy creates a new design rather than reusing an existing copy. A copied design belongs to the workspace selected during OAuth consent; the tool cannot choose a different destination workspace for that operation.

_Full upstream README: https://allmcps.com/mcp/re-port-flow-reportflow-mcp/readme_

