Works with the AI Agents you already use
LaTeX
Compile, debug, and manage LaTeX projects using local TeX distributions via MCP.
Free
LaTeX
Example session with this skill installed
Inspect my TeX environment and compile the manuscript in C:\Projects\ResearchPaper using main.tex. Clean the build products first.
- Read your context and instructions
- Compiled the latex
I have inspected the TeX environment and initiated a clean build for your manuscript. The environment is verified, and the compilation finished with warnings that you may want to review.
TeX Build Results
| Metric | Status / Value |
|---|---|
| Status | Success (with warnings) |
| Environment | TeX Live 2023 (Windows) |
| Main File | main.tex |
| Project Dir | C:\Projects\ResearchPaper |
| Errors | 0 |
| Warnings | 2 |
| Log Path | C:\Projects\ResearchPaper\main.log |
Build Diagnostics
- Warning:
LaTeX Warning: Reference 'fig:results' on page 4 undefined on input line 142. - Warning:
LaTeX Warning: There were undefined references.
Next steps
- Check
main.texat line 142 to verify the label forfig:results. - Review the full build log at
C:\Projects\ResearchPaper\main.logfor detailed box warnings. - Run
latex_cleanif you wish to remove the generated.pdfand.auxfiles.
Connects securely to your tools. The creator never sees your data.
About this skill
Compiling LaTeX manuscripts manually requires constant context switching between the editor and terminal, often leading to cryptic build errors and stale auxiliary files. This skill integrates a LaTeX MCP server directly into your agentic workflow to handle environment inspection and manuscript compilation.
What it does
- Environment inspection verifies TeX distribution paths, versions, and available binaries across Windows and macOS.
- Package verification resolves specific
.clsor.styfiles to check installation status before starting a build. - Manuscript compilation executes builds using
latexmkwith deterministic settings and disabled shell escape for safety. - Diagnostic reporting returns structured errors and warnings, providing direct links to full build logs for deep debugging.
- Workspace cleanup removes generated build products and auxiliary files to ensure a clean state for new builds.
How it works
- Run
latex_environmentto detect the local TeX Live or MacTeX installation and confirm executable availability. - Call
latex_find_filewith a filename likeamsmath.styto ensure all required dependencies are present in the TeX path. - Trigger
latex_buildby providing the absolute project directory and the relative path to the main.texfile. - Review the returned diagnostic summary and, if errors persist, access the
log_pathprovided by the server.
Frameworks & tools
The skill requires a local TeX distribution, specifically TeX Live on Windows or MacTeX on macOS. It utilizes the Model Context Protocol (MCP) over stdio to communicate with the latex server.
Why this beats prompting it yourself
Writing prompts to fix LaTeX errors is ineffective if the agent cannot see the specific build logs or verify if a package is actually installed. This skill provides the agent with direct execution capabilities and structured feedback, turning vague compilation errors into actionable fixes.
Use cases
- Automate the validation of LaTeX manuscripts within a CI/CD or local development loop.
- Debug missing package errors by verifying the TeX search path programmatically.
- Standardize new manuscript preambles using the built-in IEEEtran journal template.
- Clean up messy project directories by removing auxiliary build artifacts.
Known limitations
Requires a pre-installed TeX distribution. Shell escape is intentionally disabled for security. It does not support automated package installation.
What's included (3 skills)
latex-mcp
Use the LaTeX MCP server to inspect the configured TeX toolchain, resolve TeX files, compile manuscript projects, and clean generated build products. Apply when an agent needs to validate or build LaTeX in a repository; keep the project directory explicit and inspect returned diagnostics before changing sources.
latex-mcp
Use the LaTeX MCP server to inspect the configured TeX toolchain, resolve TeX files, compile manuscript projects, and clean generated build products. Apply when an agent needs to validate or build LaTeX in a repository; keep the project directory explicit and inspect returned diagnostics before changing sources.
latex-mcp
Use the LaTeX MCP server to inspect the configured TeX toolchain, resolve TeX files, compile manuscript projects, and clean generated build products. Apply when an agent needs to validate or build LaTeX in a repository; keep the project directory explicit and inspect returned diagnostics before changing sources.
How to use
Skills on Agensi run inside your AI agent. Copy the prompt, paste it into your agent, and it connects to Agensi and installs this skill for you. If a payment is needed, your agent shows it to you first.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill passes our trust checks below.
Security scanned
Passed our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free forever
No account required to browse
Trust & safety
Security scanned
Verified clean 5 days ago
- Free to download with an account
Requires