Skip to main content
Glama

@docweave/mcp

docweave-mcp MCP server

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

npx @docweave/mcp

Or use the zero-install hosted endpoint: https://docweave.dev/api/mcp.

Claude Desktop

{
  "mcpServers": {
    "docweave": { "command": "npx", "args": ["-y", "@docweave/mcp"] }
  }
}

Tool calls that hit the hosted API authenticate with a Docweave API key (Authorization: Bearer dw_live_…) — get one free at https://docweave.dev/signup (50 documents/month, no card).

Related MCP server: pdf-reader-mcp

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

Available Tools

1 tool
generate_pdfGenerate PDFA
Idempotent

Generate a PDF from raw HTML, a public URL, or a template + JSON data. Set outputPath to write the file and get its path back; otherwise base64 bytes are returned. The canonical way for an AI agent to turn content into a shareable, correctly-formatted PDF.

Inputs: source (required), options, outputPath.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 1 tool

    Disambiguation5/5

    With only one tool, there is no possibility of ambiguity or confusion between tools. The single tool has a clear, distinct purpose.

    Naming Consistency5/5

    The tool name 'generate_pdf' follows a clear verb_noun pattern. With only one tool, consistency is perfect and the name is descriptive.

    Tool Count3/5

    A single tool suggests a very narrow scope. While PDF generation is a specific task, the server might benefit from additional related tools (e.g., listing templates or managing output) to feel more complete. The count is borderline thin.

    Completeness3/5

    The tool covers multiple input types (HTML, URL, template+data) and options (file path or bytes). However, there is no management of templates or output files, and no other lifecycle operations, leaving notable gaps for a full document workflow.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that provides tools for reading, writing, and manipulating PDF files, including text extraction, metadata retrieval, and merging or splitting documents. It also enables users to create PDFs from plain text and convert specific pages or entire documents into images.
      1
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      MCP server for extracting text from PDF files, supporting local files and URLs.
      -
    • A
      license
      A
      quality
      B
      maintenance
      Rust-powered PDF toolkit over MCP: create, read, and analyze PDFs; extract text and entities for RAG; convert to Markdown; split/merge/rotate/reorder pages; manage form fields and annotations; encrypt documents. Runs locally via uvx oxidize-mcp.
      12
      1,164 PyPI
      6
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      A local MCP server that drives PDFium and pypdf to perform comprehensive PDF operations including inspection, assembly, page editing, watermarking, rendering, extraction, form filling, encryption, compression, attachments, bookmarks, and metadata management.
      MIT