Agent Reader
Document beautifier engine for AI Agents. Turn raw Markdown into delivery-ready documents.
AI Agent 的文档美化引擎,把 Markdown 变成可交付的专业文档。
Tools / 工具
| Tool | What it does |
|---|
| INLINECODE0 | Markdown → styled webpage with sidebar TOC, code highlighting; can pre-generate PDF/DOCX files 带目录导航的网页,可预生成 PDF/DOCX |
| INLINECODE1 |
Markdown → PDF or Word (.docx) with smart formatting 导出 PDF/Word |
|
create_slideshow | Images → full-screen slideshow with keyboard nav & auto-play 图片幻灯片 |
|
export_slideshow | Slideshow → PDF or standalone HTML 导出幻灯片 |
|
open_file | Smart open — auto-picks format based on user preferences 智能打开 |
|
configure_user_preferences | Set default output format, theme, etc. 设置偏好 |
|
get_user_preferences | Read current preferences 读取偏好 |
When to use / 什么时候调用
- - User wants a report formatted →
export_document (format: "pdf" or "docx") - User says "make it a webpage" → INLINECODE8
- User says "export to Word/PDF" → INLINECODE9
- User has images for a presentation →
create_slideshow or INLINECODE11 - User says "open this file" → INLINECODE12
- No format specified →
open_file (auto-selects based on preferences)
Setup / 接入
Add to your MCP config (Claude Desktop, Cline, OpenClaw, etc.):
CODEBLOCK0
Quick examples / 快速示例
Render a webpage 渲染网页
CODEBLOCK1
Render with pre-export 预生成导出文件
CODEBLOCK2
Export to PDF 导出 PDF
CODEBLOCK3
Export to Word 导出 Word
CODEBLOCK4
Create slideshow from images 图片做幻灯片
CODEBLOCK5
Key parameters / 关键参数
- -
content — Markdown text to render/export Markdown 内容 - INLINECODE15 — "pdf" or "docx" (for exportdocument); "pdf" or "html" (for exportslideshow)
- INLINECODE16 — original .md file path, needed if Markdown references local images 原始文件路径(有本地图片时需要)
- INLINECODE17 — "light" (default) or "dark"
- INLINECODE18 — optional
["pdf"] or ["pdf", "docx"]; when returning a file path, MCP defaults to pre-generating PDF 可选预生成导出文件;MCP 返回文件路径时默认预生成 PDF - INLINECODE21 — set
true to get base64/HTML string instead of file path (for sandbox/Docker)
Notes / 注意事项
- - PDF export requires Puppeteer (auto-installed on first use) PDF 导出需要 Puppeteer
- Word export works without Pandoc, but Pandoc produces better formatting Word 导出无需 Pandoc 也能用
- INLINECODE23 keeps inline HTML behavior unless
pre_export is explicitly set return_content: true 默认保持内联返回;显式传 pre_export 时会落盘输出 - All output writes to
/tmp/agent-reader/ — no side effects 输出仅写入 /tmp - MIT licensed, open source 开源协议
Links
- - GitHub: https://github.com/ebbfijsf/agent-reader
- npm: https://www.npmjs.com/package/agent-reader
- Glama: https://glama.ai/mcp/servers/ebbfijsf/agent-reader
Agent Reader
AI Agent 的文档美化引擎,把 Markdown 变成可交付的专业文档。
Tools / 工具
| 工具 | 功能 |
|---|
| rendermarkdown | Markdown → 带目录导航的样式化网页,支持代码高亮;可预生成 PDF/DOCX 文件 |
| exportdocument |
Markdown → 智能排版的 PDF 或 Word (.docx) 文档 |
| create_slideshow | 图片 → 全屏幻灯片,支持键盘导航和自动播放 |
| export_slideshow | 幻灯片 → PDF 或独立 HTML 文件 |
| open_file | 智能打开 — 根据用户偏好自动选择格式 |
| configure
userpreferences | 设置默认输出格式、主题等偏好 |
| get
userpreferences | 读取当前偏好设置 |
When to use / 什么时候调用
- - 用户需要格式化报告 → exportdocument (格式: pdf 或 docx)
- 用户说做成网页 → rendermarkdown
- 用户说导出为 Word/PDF → exportdocument
- 用户有图片要做演示 → createslideshow 或 exportslideshow
- 用户说打开这个文件 → openfile
- 未指定格式 → open_file (根据偏好自动选择)
Setup / 接入
添加到你的 MCP 配置中 (Claude Desktop, Cline, OpenClaw 等):
json
{
mcpServers: {
agent-reader: {
command: npx,
args: [-y, agent-reader, mcp]
}
}
}
Quick examples / 快速示例
渲染网页
json
{ content: # My Report\n\nHello world..., theme: light }
预生成导出文件
json
{ content: # My Report\n\nHello world..., pre_export: [pdf, docx] }
导出 PDF
json
{ content: # My Report\n\n..., format: pdf }
导出 Word
json
{ content: # My Report\n\n..., format: docx }
图片做幻灯片
json
{ image
dir: /path/to/images, autoplay: 5 }
Key parameters / 关键参数
- - content — 要渲染/导出的 Markdown 文本内容
- format — pdf 或 docx (用于 exportdocument);pdf 或 html (用于 exportslideshow)
- sourcepath — 原始 .md 文件路径,当 Markdown 引用本地图片时需要
- theme — light (默认) 或 dark
- preexport — 可选 [pdf] 或 [pdf, docx];返回文件路径时,MCP 默认预生成 PDF
- return_content — 设为 true 可获取 base64/HTML 字符串而非文件路径 (适用于沙箱/Docker 环境)
Notes / 注意事项
- - PDF 导出需要 Puppeteer (首次使用自动安装)
- Word 导出无需 Pandoc 也能用,但使用 Pandoc 可获得更好的排版效果
- returncontent: true 默认保持内联返回;显式传入 preexport 时会落盘输出
- 所有输出写入 /tmp/agent-reader/ — 无副作用
- 采用 MIT 开源协议
Links
- - GitHub: https://github.com/ebbfijsf/agent-reader
- npm: https://www.npmjs.com/package/agent-reader
- Glama: https://glama.ai/mcp/servers/ebbfijsf/agent-reader