ModernTex Check
OfficialREADME.md
# 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:
```bash
claude mcp add moderntex-check -- /path/to/moderntex-check
```
Claude Desktop, or any client that reads an `mcpServers` block:
```json
{
"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.
## Build from source
```bash
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](https://purplelink.llc/moderntex/?utm_source=readme&utm_medium=social&utm_campaign=hub-moderntex-check&utm_content=moderntex-check-readme-261127), 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.
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues