Connect AI agents to documents with weavon mcp

Run weavon mcp to expose eight sandboxed document tools over stdio or Streamable HTTP so Claude, Cursor, and MCP clients convert, extract, chunk, diff, and lint locally.

Eight local document tools in one MCP server

convert
Convert between 52 input formats and 77 output formats, including embedded PDF.
extract
Extract Office, PDF, HTML, or allowed URLs to clean Markdown or chunks.
chunk
Split long documents into heading-aware JSON Lines retrieval chunks.
diff
Compare two document versions semantically into redlines or JSON.
lint
Run accessibility and DocOps lint checks with structured diagnostics.
inspect
Inspect detected format, enabled extensions, and document AST summary.
fmt
Format Markdown while refusing any change to the parsed AST.
resolve_citations
Resolve DOI, arXiv, PMID, and ISBN keys into a citation lockfile.

Sandboxed by default over stdio or HTTP

By default weavon mcp restricts file reads to --root DIR, disables disk writes and network fetches, and enforces a 30-second tool timeout.

{
  "mcpServers": {
    "weavon": {
      "command": "weavon",
      "args": ["mcp", "--root", "/path/to/docs"]
    }
  }
}

Pass --http 127.0.0.1:8808 --token SECRET for Streamable HTTP at /mcp with Bearer authentication, or --sandbox for inline input only.

Known limits for MCP mode

  • Disk writes stay disabled until you pass --allow-write, and remote URL fetches stay disabled until you pass --allow-network.
  • Streamable HTTP binds to loopback addresses by default and requires explicit bearer token configuration when exposed to local services.

Start weavon mcp in three steps

  1. Install Weavon

    Install the single Weavon binary on macOS, Linux, or Windows.

    curl -fsSL https://weavon.org/install.sh | sh
  2. Run over stdio

    Point your MCP client at weavon mcp --root . to limit file reads to one project folder.

    weavon mcp --root .
  3. Or serve Streamable HTTP

    Bind to loopback with a bearer token for browser or container clients.

    WEAVON_MCP_TOKEN="dev-token" weavon mcp --http 127.0.0.1:8808 --root .

Common questions

Which MCP transports does weavon mcp support?

weavon mcp serves standard stdio by default and Streamable HTTP at /mcp when you pass --http ADDR.

Can an AI agent read files outside my project folder?

No. --root DIR restricts file paths to the chosen folder, and --sandbox disables filesystem access altogether.

Which tools are exposed by weavon mcp?

It exposes convert, extract, chunk, diff, lint, inspect, fmt, and resolve_citations.

Does weavon mcp require Node.js or Python?

No. The MCP server is compiled directly into the single 9.26 MB Weavon Rust binary.