# LaTeX Look

> LaTeX Look is a free MCP server for files and documents. Lets an agent compile LaTeX, see the rendered page and map a spot back to its source line. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Free
- **Platforms:** CLI, macOS, Linux, Windows
- **Repository:** https://github.com/fangchenghao/latex-look
- **MCP Registry name:** io.github.fangchenghao/latex-look
- **Categories:** [files and documents](https://ai-powered.com/categories/files-and-documents), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-18

## About

A LaTeX document can compile with zero errors and still look wrong, which an agent reading only .tex source cannot notice. latex_look is a single tool that compiles the document, renders a page as an image, maps a point or text on that page back to the exact source line using synctex, and diffs what the last edit changed. Pages return as image blocks so the model sees the result. A repair loop is look, diagnose, edit, look again, confirm.

Parameters cover the file, page, a text search, pointX and pointY, compare, audit, sequence and dpi. An audit mode asks what the last edit broke anywhere in the document. The same engine runs as a command line tool and, originally, as a plugin for DeepSeek Harness, with an optional SKILL.md giving a symptom, cause and fix playbook. The README cites a 215-page book as a case study.

It needs Node 18 or later, a TeX engine such as xelatex, lualatex, pdflatex, latexmk or tectonic, synctex and ghostscript. Nothing is uploaded: compilation uses the document on your disk.

## Features

- **Compile and render:** Builds the document and returns the page as an image.
- **Source mapping:** Maps a point or text on the page to the exact .tex line.
- **Build diffing:** Shows what the last edit changed between builds.
- **Audit mode:** Checks what an edit broke elsewhere in the document.
- **Local only:** Compiles documents on disk and uploads nothing.
- **Update notices:** Reports when a newer release exists or is installed but not loaded.

## Good for

- Spot layout defects in a document that compiles cleanly
- Find the source line behind an overlong link or wide figure
- Verify that a fix changed only what you intended
- Check a long book for regressions after edits

## Install

### Claude Code (Terminal)

```sh
claude mcp add latex-look -- npx -y @fffangchenghao/dsh-latex-look
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "latex-look": {
      "command": "npx",
      "args": [
        "-y",
        "@fffangchenghao/dsh-latex-look"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "latex-look": {
      "command": "npx",
      "args": [
        "-y",
        "@fffangchenghao/dsh-latex-look"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "latex-look": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@fffangchenghao/dsh-latex-look"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "latex-look": {
      "command": "npx",
      "args": [
        "-y",
        "@fffangchenghao/dsh-latex-look"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "latex-look": {
      "command": "npx",
      "args": [
        "-y",
        "@fffangchenghao/dsh-latex-look"
      ]
    }
  }
}
```

## Tools

- `latex_look`: Compiles a LaTeX file, renders a page, maps points to source and diffs builds

## FAQ

### What does it need installed?

Node 18 or later, a TeX engine, synctex and ghostscript.

### Does it upload my files?

No. The README says every call compiles the document already on your disk.

### Which clients can use it?

Claude Desktop, Cursor and Codex through the MCP server, or the DeepSeek Harness plugin.

### How many tools does it expose?

One, latex_look.

### Is LaTeX Look free?

Yes. LaTeX Look is free to use.

### How do I add LaTeX Look to Claude Code?

Run this command in your terminal: claude mcp add latex-look -- npx -y @fffangchenghao/dsh-latex-look

### What are the best alternatives to LaTeX Look?

The closest alternatives to LaTeX Look are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/latex-look
