latexmk-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| latexmk_compileB | Compile a LaTeX document using latexmk. Accepts raw LaTeX source or a path to an existing .tex file. Returns structured errors, warnings, missing package hints, page count, and the output file path. |
| latexmk_draft_compileA | Run a fast single-pass draft compile to quickly surface errors without running multiple passes or bibliography. Good for syntax/error checking during editing. |
| latexmk_cleanA | Clean LaTeX build artifacts in a directory using |
| latexmk_checkA | Check whether latexmk is installed and which TeX engines are available on this system. |
| latexmk_list_dependenciesA | List all file dependencies of a LaTeX document (included .tex files, .bib files, packages, images, etc.) using |
| latexmk_watch_startA | Start a background latexmk watch process (-pvc) that recompiles automatically on file changes. Returns a session_id. |
| latexmk_watch_stopA | Stop a running latexmk watch session by session_id. |
| latexmk_watch_listA | List all currently active latexmk watch sessions. |
| latexmk_write_configB | Write a .latexmkrc config file to a project directory or globally to ~/.latexmkrc. |
| latexmk_read_configA | Read the active .latexmkrc config files from the project and home directory. |
| latexmk_list_citationsA | Extract all citation keys from a LaTeX document and optionally cross-reference them against a .bib file. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 11 tools
Most tools have clearly distinct purposes: compile, draft_compile, watch operations, clean, check, dependencies, config, and citations. The only potential confusion is between latexmk_compile and latexmk_draft_compile, but their descriptions clarify draft as a quick single-pass syntax check vs. full compilation.
All tools share a latexmk_ prefix, but the verb/noun order is inconsistent: most use verb_noun (compile, clean, list_dependencies), while watch tools use noun_verb (watch_start, watch_stop, watch_list), and draft_compile uses an adjective-noun form. This mix is readable but not a uniform pattern.
With 11 tools, the server covers the full LaTeX latexmk workflow—compiling, watching, cleaning, dependency management, config, and citations—without bloat. Each tool addresses a distinct user need, making the count well-scoped for this domain.
The tool surface covers the essential lifecycle of LaTeX document processing: compile (draft and full), watch, clean, dependency resolution, config management, and citation checking. There are no obvious dead ends or missing operations for the announced purpose of a latexmk wrapper.