GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - marcelogdomingues/mcp-latex: Model Context Protocol server for LaTeX: let an AI assistant check documents, parse compiler logs, and compile — great for theses and papers.

BranchesTags
Open more actions menu

Latest commit

 

History

7 Commits
7 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
assets
assets
 
 
docs
docs
 
 
src
src
 
 
test
test
 
 
.gitignore
.gitignore
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
README.pt.md
README.pt.md
 
 
mkdocs.yml
mkdocs.yml
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
tsconfig.build.json
tsconfig.build.json
 
 
tsconfig.json
tsconfig.json
 
 

Repository files navigation

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

mcp-latex tool calls: check_document and parse_log

CI npm License: MIT MCP

Tools

Tool Description
check_document Static analysis: undefined refs, duplicate/unused labels, unbalanced environments; lists labels/refs/citations. No TeX needed.
parse_log Turns a .log into structured errors, warnings, undefined refs/citations, over/underfull boxes.
compile Compiles a .tex with latexmk/pdflatex if installed; returns parsed errors (graceful if no engine).

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-latex

License

MIT © Marcelo Domingues

About

Model Context Protocol server for LaTeX: let an AI assistant check documents, parse compiler logs, and compile — great for theses and papers.

marcelogdomingues.github.io/mcp-latex/

Topics

academicailatexllmmcpmodel-context-protocoltexthesis

Resources

Readme
MIT license

Contributing

Contributing
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.