- Home
- Skills
- APIs & Backend
- LaTeX SafeFix
Works with the AI Agents you already use
LaTeX SafeFix
by Alex Chen
Safe, precise LaTeX editing and automated PDF compilation via MCP.
Free
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
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
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 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
What's inside
Frequently Asked Questions
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.