A Model Context Protocol (MCP) server for LaTeX file creation, editing, validation, and compilation. Built with
Mcp latex server mcp server lets Claude, Cursor and other MCP clients work with MCP Latex Server directly. A Model Context Protocol (MCP) server for LaTeX file creation, editing, validation, and compilation. Built with FastMCP and Pydantic for type-safe, structured output.
A Model Context Protocol (MCP) server for LaTeX file creation, editing, validation, and compilation. Built with FastMCP and Pydantic for type-safe, structured output.
Once connected, the assistant can call these 8 tools directly:
create_latex_file — The create_latex_file tool exposed by this servercreate_from_template — The create_from_template tool exposed by this serveredit_latex_file — The edit_latex_file tool exposed by this serverread_latex_file — The read_latex_file tool exposed by this serverlist_latex_files — The list_latex_files tool exposed by this servervalidate_latex — Check LaTeX syntax: required declarations, balanced braces, environment matching, undefined referencesget_latex_structure — Extract document structure: class, title, author, packages, and section hierarchycompile_latex — Compile a .tex file to PDF (runs the engine twice for references/TOC)Setup follows the standard MCP pattern: clone or install the server, then register it in your client's configuration file and restart the client. The configuration snippets on this page cover Claude Desktop, Claude Code and Cursor.
The server reads one environment variable: LATEX_SERVER_BASE_PATH. Keep credentials in your client's env block or a secrets manager rather than committing them.
brew install --cask mactex) - Linux: sudo apt install texlive-full (Debian/Ubuntu) or sudo dnf install texlive-scheme-full (Fedora)Developer-tool servers are usually the first ones people connect, because they turn "help me with this code" into an assistant that can actually read the repo and act on it. MCP Latex Server sits in that group, and the shape of its toolset — create_latex_file, create_from_template, edit_latex_file among others — tells you what it is really for. Worth comparing against the other developer tools servers in this directory before you commit to one, since several overlap in scope but differ sharply in setup cost and permissions.
| Tool | What it does |
|---|---|
| create_latex_file | The create_latex_file tool exposed by this server. |
| create_from_template | The create_from_template tool exposed by this server. |
| edit_latex_file | The edit_latex_file tool exposed by this server. |
| read_latex_file | The read_latex_file tool exposed by this server. |
| list_latex_files | The list_latex_files tool exposed by this server. |
| validate_latex | Check LaTeX syntax: required declarations, balanced braces, environment matching, undefined references. |
| get_latex_structure | Extract document structure: class, title, author, packages, and section hierarchy. |
| compile_latex | Compile a .tex file to PDF (runs the engine twice for references/TOC). |
| Variable | Description | Required |
|---|---|---|
| LATEX_SERVER_BASE_PATH | Filesystem location the server is allowed to use. | Optional |
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.