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 分