docwriter-mcp-server

docwriter-mcp-server

3.3

If you are the rightful owner of docwriter-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

The docwriter-mcp-server is a Model Context Protocol server designed for the programmatic creation, modification, and compilation of structured LaTeX documents.

The docwriter-mcp-server acts as a specialized backend, allowing MCP-compatible clients—such as AI agents, IDE extensions, or automated workflows—to programmatically generate and manage professional-quality LaTeX documents. Instead of manual document preparation, your tools can leverage this server to automate report generation, dynamically insert content, ensure document quality, and integrate with AI workflows. This server provides a suite of tools for an AI agent or other MCP client to manage the lifecycle of a document on the local filesystem, from bootstrapping from a template to applying structured updates and compiling the final PDF output. It is built on the robust cyanheads/mcp-ts-template. The project is currently in beta, and users are encouraged to report any issues or feature requests on GitHub.

Features

  • Automate Report Generation: Create consistent, templated reports, articles, or papers.
  • Dynamically Insert Content: Populate documents with data, analysis, or text generated by an AI.
  • Ensure Document Quality: Compile and verify documents as part of a CI/CD pipeline.
  • Integrate with AI Workflows: Enable LLMs to create and edit complex documents as part of a larger task.
  • Secure Compilation: Executes lualatex with multiple passes, automatically running biber for bibliographies and cleaning up auxiliary files.

Tools

  1. docwriter_create_latex_document

    Creates a new .tex file from a template.

  2. docwriter_update_document_block

    Updates one or more named content blocks within a document.

  3. docwriter_search_and_replace

    Performs a simple, global search and replace for text.

  4. docwriter_compile_latex_to_pdf

    Compiles a .tex document into a PDF.

  5. docwriter_list_latex_documents

    Retrieves a list of all available documents.