mcp-latex
Provides tools for checking LaTeX documents (static analysis for undefined references, duplicate/unused labels, unbalanced environments), parsing compiler logs, and compiling .tex files, enabling AI assistants to detect and fix LaTeX issues.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-latexCheck my thesis for undefined references and unbalanced environments."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-latex
A Model Context Protocol (MCP) server for LaTeX. Give an AI assistant (Claude Desktop, Claude Code, Cursor…) the ability to check your LaTeX document, parse compiler logs, and compile — so it can actually fix your thesis or paper instead of guessing. Static analysis works with no TeX install required.
🌍 English · Português · 📚 Documentation
Tools
Tool | Description |
| Static analysis: undefined refs, duplicate/unused labels, unbalanced environments; lists labels/refs/citations. No TeX needed. |
| Turns a |
| Compiles a |
Related MCP server: Overleaf MCP
Use with Claude Desktop / Claude Code
{
"mcpServers": {
"latex": { "command": "npx", "args": ["-y", "mcp-latex"] }
}
}Then ask: "Check my thesis for undefined references and unbalanced environments," or "Compile main.tex and fix the first error."
Why
Writing a thesis in LaTeX means fighting cryptic compiler errors, dangling \refs and
\begin/\end mismatches. An AI assistant is great at fixing these — if it can
see the actual errors. This server gives it structured eyes on your document. Built
from the pain of writing a real master's thesis.
Run locally
npm install
npm start # stdio server
npm test # unit + stdio integration tests
npm run build # tsc -> dist/Try it with the MCP Inspector:
npx @modelcontextprotocol/inspector npx -y mcp-latexLicense
MIT © Marcelo Domingues
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
- AlicenseAqualityCmaintenanceAn MCP server that enables MCP clients to directly access and process arXiv papers by fetching the LaTeX source, improving mathematical content understanding.Last updated4142MIT
- Alicense-qualityCmaintenanceA real-time MCP server that enables AI coding agents to read, write, and compile LaTeX projects in self-hosted Overleaf instances via native OT protocol.Last updated302AGPL 3.0
- Alicense-qualityDmaintenanceAn MCP server that exposes LaTeX compilation, log parsing, dependency inspection, and citation checking as tools for AI agents, using latexmk under the hood.Last updated121MIT
- Alicense-qualityBmaintenanceAn MCP server that enables LLMs to compile LaTeX documents and inspect the resulting PDF, supporting an autonomous write-compile-check-revise loop via a self-hosted Overleaf CLSI instance.Last updatedMIT
Related MCP Connectors
Driflyte MCP server which lets AI assistants query topic-specific knowledge from web and GitHub.
An MCP server that integrates with Discord to provide AI-powered features.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/marcelogdomingues/mcp-latex'
If you have feedback or need assistance with the MCP directory API, please join our Discord server