Pdf Report Generator

io.github.themoddedcube由 GitHub 帳號 themoddedcube 發布v1.0.1更新於 Nov 3, 2026

Generate professional PDF reports from LLM output — cover, TOC, tables, charts, 5 themes.

已驗證STDIO僅桌面檔案與儲存資料與分析

概覽

AI 產生的概覽

依結構化 JSON 規格或原始 LLM 文字產生專業的多頁 PDF 報告,含封面、目錄、表格與圖表。

可以做什麼
  • 以包含中繼資料、執行摘要、章節與小節的結構化規格產生完整 PDF 報告
  • 把原始文字轉換為結構化報告,並依標題自動辨識章節
  • 在指定位置插入表格、長條圖、折線圖、圓餅圖、橫向長條圖以及圖片
  • 列出可用的配色主題(default、navy、charcoal、forest、burgundy)並支援自訂顏色
適用情境
適合讓助理把分析、研究或會議紀錄整理成可分享、具企業風格的 PDF 文件,包含封面、機密等級標示與圖表,而非純文字輸出。
執行需求
以 stdio 在本機執行,通常透過 npx 啟動。需要 Node.js 18+ 以及 Python 3.8+,並安裝 reportlab 與 matplotlib 相依套件。未宣告任何帳號、API 金鑰或環境變數。
安裝前請注意
會在本機寫入 PDF 檔案,並可透過絕對路徑讀取本機圖片或標誌檔。圖表較多的複雜規格可能需要 5–15 秒。不要求任何憑證。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Pdf Report Generator,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

pdf-report-generator

An MCP server that generates professional corporate PDF reports from structured JSON specs or raw LLM text output. Drop it into Claude Desktop (or any MCP client) and ask Claude to turn analysis, research, or meeting notes into a polished multi-page report complete with cover page, table of contents, executive summary, section headings, tables, and charts.

A sample output is at examples/sample_report.pdf.


Prerequisites

  • Node.js 18+
  • Python 3.8+

Install Python dependencies:

bash
pip install reportlab matplotlib

Claude Desktop configuration

Add to your claude_desktop_config.json:

json
{  "mcpServers": {    "pdf-report": {      "command": "npx",      "args": ["-y", "pdf-report-generator"]    }  }}

Available tools

generate_report

Generates a PDF from a full structured spec.

Minimal example input:

json
{  "spec": {    "metadata": {      "title": "Q3 Performance Review",      "author": "Engineering Team",      "company": "Acme Corp",      "classification": "INTERNAL"    },    "executive_summary": "Overall performance improved this quarter...",    "sections": [      {        "heading": "Infrastructure",        "body": "Uptime reached 99.94%...",        "subsections": []      }    ],    "tables": [],    "charts": []  }}

generate_report_from_text

Converts raw text into a structured PDF report. Sections are auto-detected from headings.

json
{  "text": "# Overview\nThis quarter...\n\n# Key Findings\n...",  "title": "Q3 Summary",  "author": "Data Team",  "company": "Acme Corp",  "classification": "INTERNAL",  "theme_name": "navy"}

list_themes

Returns available color themes: default, navy, charcoal, forest, burgundy.


JSON spec reference

metadata  title*          string  subtitle        string  author          string  date            string (YYYY-MM-DD; defaults to today)  company         string  department      string  document_id     string  (e.g. RPT-2026-001)  classification  string  (PUBLIC | INTERNAL | CONFIDENTIAL)  logo_path       string  (absolute path to PNG/JPG)  page_size       "letter" | "a4"
executive_summary  string
sections[]  heading*        string  body*           string  (\n\n = paragraph break)  subsections[]    heading*      string    body*         string
tables[]  title           string  headers*        string[]  rows*           string[][]  after_section   int  (0-based section index; -1 = after exec summary)
charts[]  title           string  type            "bar" | "line" | "pie" | "horizontal_bar"  labels*         string[]  datasets*       [{label, values[]}]  after_section   int
images[]  path*           string  (absolute path)  caption         string  width_inches    number  after_section   int
theme  primary_color    [R, G, B]  accent_color     [R, G, B]  highlight_color  [R, G, B]

Example prompts

  • "Turn this analysis into a professional internal PDF report titled 'Q3 Infrastructure Review'"
  • "Generate a corporate report from this research, add a bar chart for the monthly metrics"
  • "Create a CONFIDENTIAL report called 'Security Audit Findings' from this text"
  • "List the available report themes"

Troubleshooting

Python not found — ensure python or python3 is on your PATH and is version 3.8+.

reportlab not installed — run pip install reportlab matplotlib.

Charts missing — matplotlib is required for charts. Install it with pip install matplotlib.

Large PDFs — complex specs with many charts can take 5–15 seconds. This is normal.


License

MIT

來源:README.md,提交 c1cf8c6

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v1.0.1最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分