Skip to main content
Glama
ModernTex Check

ModernTex Check

Official

ModernTex Check

ModernTex Check is a small MCP server for macOS that checks LaTeX projects. It reads files and reports what it finds. It never writes a file, never compiles, and does not need a TeX installation.

It gives an AI assistant (Claude Code, Claude Desktop or any other MCP client) four tools:

Tool

What it does

explain_error

Reads a build log, or one pasted error message, and gives the file, line, matching log line and fix steps for each error and warning.

check_references

Finds \ref and \cite keys with no \label, \bibitem or .bib entry, follows \input and \include, and suggests the key you probably meant.

check_manuscript

Runs rule-based checks on structure, reported numbers, availability statements, repeated words and misspelled package names.

check_bib

Reports duplicate keys, likely duplicate entries, missing required fields, implausible years and the clean-ups that would normalize the file. Report only; the .bib is left as it was.

Every check is deterministic. No model runs inside the server, so the same file always gives the same answer.

Install

The binary is universal (Apple silicon and Intel), signed and notarized. It needs macOS 14 or later.

Run it once in Terminal (/path/to/moderntex-check --version) and choose Open if macOS asks. macOS asks the first time a downloaded program runs, and an MCP client cannot answer that prompt.

Claude Code:

claude mcp add moderntex-check -- /path/to/moderntex-check

Claude Desktop, or any client that reads an mcpServers block:

{
  "mcpServers": {
    "moderntex-check": { "command": "/path/to/moderntex-check" }
  }
}

Paths you pass to the tools must be absolute. Files over 10 MB are refused, and an \input that points outside the root file's folder is not followed.

Related MCP server: Bibverify

Build from source

swift build -c release --product moderntex-check

scripts/mcp-check/build.sh builds both architectures, joins them, signs and notarizes.

Where the checks come from

These are the same checks that ModernTex, a LaTeX editor for macOS, runs as you write. The server shares its code with the editor, so a fix to one is a fix to both.

License

MIT. See LICENSE at the root of the repository.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      Enables AI assistants to create, edit, and validate LaTeX documents through a standardized protocol with support for multiple document classes and package management. It provides tools for document structure analysis and file organization to streamline the generation of professional academic papers.
      8
      27
      MIT
    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables AI assistants to verify bibliographic existence and metadata consistency, convert DOI/PMID/PMCID/arXiv identifiers to BibTeX, and check .bib files against multiple sources without destructive edits.
      -
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to see compiled LaTeX output: it builds the document, returns rendered page images, maps any point on a page back to its exact source line, and diffs what the last edit changed. It also audits an entire book for regressions, letting an agent diagnose and verify layout fixes without reading source alone.
      597 npm
      MIT