Metadata-Version: 2.5
Name: tex-mcp-web
Version: 0.11.4
Summary: Comment on a LaTeX paper's PDF and have Claude Code or Codex edit the source, with Overleaf sync.
Project-URL: Homepage, https://github.com/MiiKiyoshi/tex-mcp-web
Project-URL: Repository, https://github.com/MiiKiyoshi/tex-mcp-web
Project-URL: Documentation, https://github.com/MiiKiyoshi/tex-mcp-web/tree/main/docs
Project-URL: Changelog, https://github.com/MiiKiyoshi/tex-mcp-web/releases
Project-URL: Issues, https://github.com/MiiKiyoshi/tex-mcp-web/issues
Author: MiiKiyoshi
License-Expression: MIT
License-File: LICENSE
Keywords: agent,annotation,latex,mcp,mcp-server,overleaf,pdf,review,tex,viewer,watcher
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: MacOS
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Text Processing :: Markup :: LaTeX
Requires-Python: >=3.10
Requires-Dist: aiohttp>=3.9.0
Requires-Dist: httpx
Requires-Dist: mcp<2,>=1.0
Requires-Dist: psutil>=5.9
Requires-Dist: pydantic>=2.0
Requires-Dist: pymupdf>=1.24.3
Requires-Dist: pyyaml>=6.0
Requires-Dist: watchdog>=3.0.0
Provides-Extra: dev
Requires-Dist: pytest-asyncio>=0.21; extra == 'dev'
Requires-Dist: pytest-cov>=4.0; extra == 'dev'
Requires-Dist: pytest-timeout>=2.1; extra == 'dev'
Requires-Dist: pytest-xdist>=3.0; extra == 'dev'
Requires-Dist: pytest>=7.0; extra == 'dev'
Requires-Dist: selenium>=4.11; extra == 'dev'
Description-Content-Type: text/markdown

<img src="https://raw.githubusercontent.com/MiiKiyoshi/tex-mcp-web/main/docs/images/logo.png" alt="" width="96">

# tex-mcp-web

[![tests](https://github.com/MiiKiyoshi/tex-mcp-web/actions/workflows/tests.yml/badge.svg)](https://github.com/MiiKiyoshi/tex-mcp-web/actions/workflows/tests.yml)
[![license](https://img.shields.io/github/license/MiiKiyoshi/tex-mcp-web)](https://github.com/MiiKiyoshi/tex-mcp-web/blob/main/LICENSE)
[![release](https://img.shields.io/github/v/release/MiiKiyoshi/tex-mcp-web)](https://github.com/MiiKiyoshi/tex-mcp-web/releases/latest)
[![python](https://img.shields.io/python/required-version-toml?tomlFilePath=https://raw.githubusercontent.com/MiiKiyoshi/tex-mcp-web/main/pyproject.toml)](https://github.com/MiiKiyoshi/tex-mcp-web/blob/main/pyproject.toml)

**Comment on your paper's PDF, and the coding agent that did the research fixes the LaTeX.**

tex-mcp-web adds a review page for LaTeX papers to Claude Code and Codex. You open the page in
a browser and comment on the PDF, and the agent edits the source. It runs on Windows, macOS and
Linux.

<picture>
  <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/MiiKiyoshi/tex-mcp-web/main/docs/images/review-dark.webp">
  <img alt="A sentence selected in the PDF gets a comment asking for a number, and a box drawn over a table on the second page gets a comment asking for horizontal rules. One press of Call agent sends both. The agent proposes new wording for the sentence as an old and a new line, and answers that it added rules to the table. Once the wording is applied and the paper compiled, the PDF shows the new sentence and the ruled table." src="https://raw.githubusercontent.com/MiiKiyoshi/tex-mcp-web/main/docs/images/review.webp">
</picture>

Select words in the PDF, or draw a box over a figure or a table, and write what should change.
**Call agent** sends all your comments at once. The agent edits the source, builds the PDF
again and answers each comment. For a change of wording it shows the old and the new text, and
you apply or reject it.

The agent is the session you already work in. It wrote the code and ran the experiments, so it
answers from that work, and nothing is copied into another tool.

## Quick start

1. Paste this into Claude Code or Codex, and restart the agent when it is done:

   ```
   Install tex-mcp-web by following https://raw.githubusercontent.com/MiiKiyoshi/tex-mcp-web/main/INSTALL.md
   ```

   The agent says what it will install and installs once you agree.

2. Say `do tex init` in the session where you work. The agent finds the paper in the folder
   and saves the settings once you agree. If the paper is on Overleaf, give the agent the
   project's link, and the page brings the files in.

3. Open the address the agent gives, comment on the PDF, and press **Call agent**.

<picture>
  <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/MiiKiyoshi/tex-mcp-web/main/docs/images/setup-dark.webp">
  <img alt="In a terminal, a coding agent that has analyzed temperature logs is told do tex init. It finds no paper in the folder and asks where the paper is, and On Overleaf is picked from its three options. It asks whether other people log in to the machine, takes the project's link, asks where the paper's files go, and asks how files sync, where By hand is picked. It saves the settings and lists four steps for the page. On the review page, which says the paper is not in the folder yet, the Overleaf cookie is saved in Settings and Get is pressed. The paper comes from Overleaf and the page shows its compiled PDF." src="https://raw.githubusercontent.com/MiiKiyoshi/tex-mcp-web/main/docs/images/setup.webp">
</picture>

You need Python 3.10 or newer and a LaTeX installation with `latexmk`. The agent checks both
and asks before it installs anything.

The page is served from your own machine and answers only to it. Your comments are kept in the
paper's folder. The page contacts three places: Overleaf when you connect it, the translation
program when you set one, and the package index once a day for a newer release.

## Work with co-authors on Overleaf

<picture>
  <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/MiiKiyoshi/tex-mcp-web/main/docs/images/overleaf-thread-dark.webp">
  <img alt="In a co-author's thread from Overleaf, the agent has misread the request and drafted a gushing reply. After a private reply corrects it, the agent fixes the sentence, the PDF shows the change, and the draft for Overleaf shrinks to one short line, which is sent with ss. The thread is then no longer marked unanswered." src="https://raw.githubusercontent.com/MiiKiyoshi/tex-mcp-web/main/docs/images/overleaf-thread.webp">
</picture>

`do tex init` asks for the project's link, and **Connect Overleaf** on the page takes the same
link. The page asks once for your Overleaf sign-in cookie. Your co-authors' comments then
appear on the page. Under each comment you talk with the agent in
private, and the agent drafts the reply. Only the reply you send appears on Overleaf.

<picture>
  <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/MiiKiyoshi/tex-mcp-web/main/docs/images/overleaf-thread-split-dark.png">
  <img alt="The same thread on the review page and on Overleaf. The review page shows the co-author's comment, the conversation with the agent marked private and the sent reply marked public, while Overleaf shows only the comment and the sent reply." src="https://raw.githubusercontent.com/MiiKiyoshi/tex-mcp-web/main/docs/images/overleaf-thread-split.png">
</picture>

The agent also turns a rough note into a new comment for your co-authors. Edits they suggest
on Overleaf are accepted or rejected here. A search finds one comment by its writer, its file
and its date. [Working with Overleaf](https://github.com/MiiKiyoshi/tex-mcp-web/blob/main/docs/overleaf.md) shows each of these, and how the files
stay in sync with Overleaf.

## Read the paper in your language

<picture>
  <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/MiiKiyoshi/tex-mcp-web/main/docs/images/translation-dark.webp">
  <img alt="In the Preview, Translation: Korean is chosen from the ⋯ menu. The pane under the PDF shows Translating… and then each paragraph of the source in Korean, with the paragraphs on page 1 marked. On page 2, the marks move to the Results, the table caption and the Discussion. Clicking the Korean Results paragraph opens the source beside the PDF at those lines, and clicking a line of the Method in the source moves the highlight in the pane to the Method paragraph." src="https://raw.githubusercontent.com/MiiKiyoshi/tex-mcp-web/main/docs/images/translation.webp">
</picture>

The page shows each paragraph in your language under the PDF. A click on a translated
paragraph opens its lines in the source, and the paragraph you edit stays highlighted. You
choose the program that translates, so you choose the model and the cost.
[Translation](https://github.com/MiiKiyoshi/tex-mcp-web/blob/main/docs/reviewing.md#translation) describes the setup.

## More

- **Page limit.** The agent sees where the text ends and how many lines are left, so it can
  shorten the paper to fit and check the result. [Problems](https://github.com/MiiKiyoshi/tex-mcp-web/blob/main/docs/reviewing.md#problems)
  describes the list.
- **Writing rules.** The agent reads your rules from a file before it edits, in every paper
  that names the file. [Configuration](https://github.com/MiiKiyoshi/tex-mcp-web/blob/main/docs/configuration.md) describes `guideline` and
  `references`.
- **Keyboard.** Every step works without the mouse, and the editor has Vim keys.
  [Comment keys](https://github.com/MiiKiyoshi/tex-mcp-web/blob/main/docs/reviewing.md#comment-keys) lists them.
- **Tablet and phone.** The page works by touch.
  [Opening the page from another device](https://github.com/MiiKiyoshi/tex-mcp-web/blob/main/docs/reviewing.md#opening-the-page-from-another-device)
  also covers an agent that runs on a server.
- **Settings.** `do tex init` saves them in `.tex-mcp-web.yaml`.
  [Configuration](https://github.com/MiiKiyoshi/tex-mcp-web/blob/main/docs/configuration.md) describes every field.

> ⭐ **If this helps your writing, please give it a star.** It helps others find the project.

## See also

[html-mcp-web](https://github.com/MiiKiyoshi/html-mcp-web) reviews an AI agent's HTML slides or reports the same way, and exports finished slides as an editable PowerPoint deck.

## Acknowledgements

tex-mcp-web is a hard fork of [queelius/scholia at commit `e6c7454`](https://github.com/queelius/scholia/commit/e6c745400d2ad70fb43eca053e31183d48765f89) (version 0.6.1) and has been developed independently since then under the MIT license; see [`LICENSE`](https://github.com/MiiKiyoshi/tex-mcp-web/blob/main/LICENSE). The PDF viewer is [EmbedPDF](https://github.com/embedpdf/embed-pdf-viewer) with its PDFium WebAssembly engine, whose notices are in [`tex_mcp_web/static/embedpdf/LICENSE`](https://github.com/MiiKiyoshi/tex-mcp-web/blob/main/tex_mcp_web/static/embedpdf/LICENSE) and [`tex_mcp_web/static/embedpdf/LICENSE.pdfium`](https://github.com/MiiKiyoshi/tex-mcp-web/blob/main/tex_mcp_web/static/embedpdf/LICENSE.pdfium). The bundled viewer differs from the release only in its zoom gesture, which is described in [Reviewing in detail](https://github.com/MiiKiyoshi/tex-mcp-web/blob/main/docs/reviewing.md#the-pdf). Syntax highlighting and completion in the source editor use [Ace Editor builds 1.44.0](https://github.com/ajaxorg/ace-builds/tree/v1.44.0) under the BSD-3-Clause license, and its notice is in [`tex_mcp_web/static/ace/LICENSE`](https://github.com/MiiKiyoshi/tex-mcp-web/blob/main/tex_mcp_web/static/ace/LICENSE).

<!-- mcp-name: io.github.MiiKiyoshi/tex-mcp-web -->
