# tex-mcp-web

The tex-mcp-web MCP server for Claude Code links LaTeX edits with comments on a rendered PDF. The agent updates the source, compiles the paper, and replies to review notes.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 10 repo stars
- Author: MiiKiyoshi
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/MiiKiyoshi/tex-mcp-web
- Updated: 2026-11-16
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/tex-mcp-web

## What it does

tex-mcp-web displays a LaTeX paper as a PDF in a web interface and passes comments on selected text or page regions to the agent. The agent edits the source, compiles the document, and responds in the comment thread. Suggested wording can be accepted or rejected.

Run `do tex init` to locate the main `.tex` file and a free port. The agent shows its proposed settings and, after approval, creates `.tex-mcp-web.yaml`. Overleaf comments can appear in a separate tab: private messages stay on the review page, while only replies marked public are sent to Overleaf.

A Claude Code session opened in the project folder waits for Call agent on its own. In Codex, ask the agent to run `do tex listen` after it starts.

## Requirements
- Needs: Python and uv (commands run via uvx)

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add tex-mcp-web -- uvx tex-mcp-web
```
uvx runs the command named after the package; if the README names another one, use uvx --from tex-mcp-web <command>

### Codex

**Platform CLI**
```bash
codex mcp add tex-mcp-web -- uvx tex-mcp-web
```
uvx runs the command named after the package; if the README names another one, use uvx --from tex-mcp-web <command>

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "tex-mcp-web": {
            "command": "uvx",
            "args": [
                "tex-mcp-web"
            ]
        }
    }
}
```
uvx runs the command named after the package; if the README names another one, use uvx --from tex-mcp-web <command>

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "tex-mcp-web": {
            "type": "stdio",
            "command": "uvx",
            "args": [
                "tex-mcp-web"
            ]
        }
    }
}
```
uvx runs the command named after the package; if the README names another one, use uvx --from tex-mcp-web <command>

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add tex-mcp-web uvx tex-mcp-web
```
uvx runs the command named after the package; if the README names another one, use uvx --from tex-mcp-web <command>

## When to use it
- comment on a PDF passage and send the note to the agent
- request a figure or table change by marking its area
- draft replies to co-authors' Overleaf comments
- locate short lines when the paper exceeds its page limit

## Example prompts
- Set up PDF review for this project with `do tex init`.
- Revise the selected passage from its comment, then compile the PDF.
- Connect the Overleaf comments and draft a reply to a co-author.

## Similar
- [SEO Web Analysis MCP — Site Audit & Tech Stack](https://affpapa.org/en/nevibecode/mcp/seo-web-analysis-mcp-site-audit-tech-stack.md) — MCP server · 9357 installs
- [web-perf](https://affpapa.org/en/nevibecode/skills/cloudflare-web-perf.md) — skill · 135200 installs
- [web-search](https://affpapa.org/en/nevibecode/skills/web-search.md) — skill · 134600 installs
- [Web Search — Structured Results for AI Agents](https://affpapa.org/en/nevibecode/mcp/web-search-structured-results-for-ai-agents.md) — MCP server · 4334 installs
- [web-artifacts-builder](https://affpapa.org/en/nevibecode/skills/web-artifacts-builder.md) — skill · 112122 installs
- [Web Auditor](https://affpapa.org/en/nevibecode/mcp/web-auditor.md) — MCP server · 3818 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
