Works with the AI Agents you already use

    LaTeX SafeFix

    by Alex Chen

    1

    Safe, precise LaTeX editing and automated PDF compilation via MCP.

    Free

    Security scanned
    LaTeX SafeFix

    LaTeX SafeFix

    Example session with this skill installed

    Check main.tex for a missing figure, preview a precise correction for my approval, then compile and verify the resulting PDF.

    • Read your context and instructions
    • Compiled the latex safefix

    Illustrative workflow

    Given a document that refers to a missing figure, the assistant can call validate_latex_assets to report the source file, line, and missing reference. It can inspect the available paths and propose an exact replacement with preview_tex_edit.

    --- a/main.tex
    +++ b/main.tex
    -\includegraphics{figures/diagram.png}
    +\includegraphics{assets/figures/diagram.png}
    

    After approval, apply_tex_edit applies the preview with confirmed: true, provided the source has not changed. A session-scoped rollback ID is returned. build_and_verify_latex can then compile and inspect PDF metadata, and render_latex_pdf_page can return a page as a PNG. Results depend on the document and toolchain; this example is illustrative.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    LaTeX SafeFix helps an MCP-enabled assistant inspect, precisely edit, compile, and verify LaTeX projects.

    • Scan source files and check citations, labels, and figure references.
    • Preview an exact replacement as a diff, apply it after confirmation, and roll it back if the file has not changed.
    • Diagnose build errors and missing or malformed image assets.
    • Build with latexmk, verify PDF metadata, and render a selected page as a PNG for visual inspection.

    Requires the separately installed and configured latex-workspace-mcp server, Node.js 20+, latexmk, a TeX engine, and Poppler tools. Windows users can run the server and dependencies in WSL. See installation instructions and source.

    Preview and rollback IDs are session-scoped. The server is not an OS sandbox; use OS isolation for untrusted TeX. MIT licensed.

    Requires local installation of Node.js, latexmk, and Poppler. Edits are session-bound; file changes outside the agent invalidate pending edit IDs.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 13 days ago

    • Free with an Agensi account

    Accounts
    Latex Workspace MCP
    Software
    Node.jslatexmk and a TeX engine (pdflatex or xelatex)Poppler utilities and file

    Permissions

    Network Access
    Terminal / Shell
    Read Files
    Write Files
    Listed13 days ago

    What's inside

    Frequently Asked Questions

    Preview and confirmation help review exact edits before application. Build and log checks can reveal problems, but they cannot guarantee error-free LaTeX.

    Install Node.js 20+, the separately configured latex-workspace-mcp server, latexmk and a TeX engine, file, and Poppler utilities. On Windows, the documented setup uses WSL.

    The build tools accept pdflatex and xelatex. LuaLaTeX is not currently exposed as a selectable engine.

    The renderer returns a PNG image of a selected page from a previously compiled PDF. Viewing it requires an MCP client that supports image content.

    Previewed edits require confirmation and are rejected if the file changed since the preview. Rollback IDs are session-scoped; use version control or backups as well.

    New in APIs & Backend

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for APIs & Backend.

    Free