Docwriter
Enables programmatic creation, modification, and compilation of structured LaTeX documents for AI agents and automated workflows.
About
The Docwriter server acts as a specialized backend, allowing Model Context Protocol (MCP)-compatible clients, such as AI agents, IDE extensions, or automated workflows, to programmatically generate and manage professional-quality LaTeX documents. This tool streamlines the lifecycle of documents on the local filesystem, from bootstrapping content using predefined templates to applying structured updates and compiling the final PDF output. It empowers automation by facilitating report generation, dynamic content insertion, and document quality assurance, seamlessly integrating with AI workflows to handle complex document creation and editing tasks.
Key Features
- 0 GitHub stars
- Robust PDF compilation using LuaLaTeX with automatic Biber for bibliographies
- Template-based LaTeX document creation (e.g., simple_report, ieee_article)
- Filesystem-based document management for `.tex` files and compiled PDFs
- Atomically update named content blocks within documents with input sanitization
- Secure input sanitization for LaTeX content and file paths
Use Cases
- Automate the generation of consistent, templated reports, articles, or papers.
- Enable AI agents to dynamically insert data, analysis, or generated text into documents.
- Integrate document compilation and verification into CI/CD pipelines or automated workflows.