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-navigator-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.

ParametersJSON Schema
NameRequiredDescriptionDefault
sourceYesWhat to render. Provide exactly one of: html, url, or (template|templateId) with data.
optionsNoOptional page and print settings.
outputPathNoAbsolute path to write the PDF to. If omitted, base64 is returned.

TDQS

A4.3/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already indicate the tool is idempotent and non-destructive. The description adds context about file writing and base64 return but does not disclose potential side effects like network requests or private address blocking (though blocking is mentioned in schema). No contradictions with annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences with no wasted words. The first sentence states the core function and source types; the second explains output behavior. Front-loaded and efficient.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (3 params, nested objects, no output schema) and 100% schema coverage, the description covers the essential decision points (source types, output behavior) without redundancy. It is complete for proper usage.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so all parameters have descriptions. The description adds value by clarifying the outputPath behavior (returns path vs base64) which is not fully captured in schema. Options are not described in description but are well-documented in schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states it generates a PDF from three specific sources (HTML, URL, template), with a strong verb-resource pair. No sibling tools exist, so differentiation is not required.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly mentions it as the canonical way for an AI agent to create a PDF, and explains the two behaviors (file vs base64). However, it does not include when-not-to-use scenarios or alternatives, but given no siblings, this is sufficient.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

TDQS

A4.2/5.0
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

ActivitySlowing
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    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.
    53
    ISC
  • A
    license
    A
    quality
    C
    maintenance
    Provides PDF reading, text search, navigation, and form filling capabilities through MCP, with cross-platform PDF viewer integration for seamless document interaction.
    7
    9
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    MCP server for extracting text from PDF files, supporting local files and URLs.
    -
  • A
    license
    A
    quality
    A
    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
    4
    MIT

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/NicolasMartalog/docweave-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server