@docweave/mcp
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
The open-source MCP server for **Docweave** — give any MCP client
(Claude, Cursor, Windsurf, and others) two document tools:
- **generate_pdf** — turn raw HTML, a public URL, or a template + JSON into a real PDF.
- **read_pdf** — turn a PDF (URL or base64) into clean text / markdown, with a needsOcr
flag for scanned documents.
One MCP server for an agent's document I/O — write a document, read a document — priced per
document, not per page.
Install
Or use the zero-install hosted endpoint: https://docweave.dev/api/mcp.
Claude Desktop
Tool calls that hit the hosted API authenticate with a Docweave API key
(Authorization: Bearer dw_live_…) — get one free at
(50 documents/month, no card).
Tools
generate_pdf
source (one of: raw html, a public url, or a template + data) → a PDF.
Optional page options (format, landscape, margins). Idempotency-key aware, SSRF-guarded
URL rendering.
read_pdf
source (url or base64) → extracted content (markdown or text) + pageCount.
Scanned/image PDFs return needsOcr: true instead of empty text.
About this repo
This is the source of the @docweave/mcp
npm package, published from the Docweave monorepo and listed on the
official MCP registry as
io.github.NicolasMartalog/docweave-mcp. The npm package ships bundled with its render
engine; install it with npx as above.
License
MIT