MagicTeX
概览
作者提供的说明(英文原文)
LaTeX editor for AI agents: live PDF preview, PDF comments that drive edits, git history
PopNx MCP 的三大支柱
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
- 用户评价i暂无评价评价功能将在后续阶段与账户功能一起开放
- 我们的基础检查i1 项中通过 1 项依据公开信息检查;尚未扫描代码
- 使用情况i非常新↓ 87/周 · ★ –
它能帮你做什么
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
- 连接方式: 在你的电脑上运行
- 传输方式: stdio
- 分类: 文档、表格与办公
安装
选择你使用的 AI 应用,然后复制设置。
安装之前
- 基础检查:1 项中通过 1 项
- 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
- 注册中心没有列出需要填写的密钥。
你需要
- npm已安装 Node.js(用于 npx 命令)
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"magictex": {
"command": "npx",
"args": [
"-y",
"magictex-mcp"
]
}
}
}在终端中运行这条命令
claude mcp add magictex -- npx -y magictex-mcp或者自己复制设置
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"magictex": {
"command": "npx",
"args": [
"-y",
"magictex-mcp"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
或者自己复制设置
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"magictex": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"magictex-mcp"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它能做什么
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月9日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 ZoeLinUTS 验证,该账户拥有此仓库
- … 尚未检查
仍在维护
我们还没有从 GitHub 读取这个仓库
- … 尚未检查
有许可证
我们还没有从 GitHub 读取这个仓库
- – 不适用
端点有响应
它在你的电脑上运行,没有互联网端点
- – 不适用
使用 OAuth 登录
在你的电脑上运行,改用本地设置
- … 尚未检查
工具描述中没有隐藏指令
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与“文档、表格与办公”中的其他服务器比较i
- 星标数多于此分类中其他 3605 个服务器的 0%
- 发布到注册中心的时间比此分类中其他 3605 个服务器的 20% 更新
- 基础检查结果等于或优于此分类中其他 3605 个服务器的 100%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
MagicTeX 安全吗?
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在我的电脑上运行还是在云端?
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
它还在维护吗?
GitHub 仓库最后更新于–,最新版本(0.1.10)于3个月前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
有什么可以替代它?
同一分类中有:Agent-Native Calendar, Excel MCP Server, MCP Server for Excel
替代选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Excel MCP Server
Create and edit Excel files with AI: charts, PivotTables, formulas. No Excel needed.
MCP Server for Excel
Excel automation for AI - Sheets, Power Query, DAX, VBA, Tables, Ranges and more. Windows only.
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
MagicTeX — LaTeX Editor for AI Agents
English · 简体中文 · 日本語 · 한국어 · Español · Français · Deutsch · Português
MagicTeX is a LaTeX editor built for AI agents — an Overleaf-like one-window workspace for Claude Code, served by an MCP server, with no local TeX install and no Overleaf account: live PDF preview, a source editor with a Visual (WYSIWYG) mode, change history, and comments you anchor on the rendered PDF that become edit instructions for the agent. (npm package: magictex-mcp.)
It compiles with a WASM TeX Live 2026 engine (texlyre-busytex) running inside a headless browser, so there's nothing multi-gigabyte to install — just a one-time WASM asset download.
See it before you install
A guided walkthrough of the comment → agent loop lives at [zoelin.dev/tools/magictex](https://zoelin.dev/tools/magictex), built from real tool output. It's a replay, not a hosted instance — the TeX engine is a one-time ~650 MB download and the agent half is Claude itself, so MagicTeX runs next to your project rather than in a web page.
The workspace
One browser window (inspired by Typst's one-surface editor and LiquidText's anchored annotations):
┌──────────────────────────────────────────────────────────────┐
│ ✓ up to date · 13 pages Export .zip · Download PDF │ ├────────────┬──────────────────────────────┬──────────────────┤ │ Source / │ PDF (live) │ Comments │ │ History │ select text → 💬 comment │ accepted → ask │ │ editor, │ highlights stay anchored │ Claude to │ │ timeline │ auto-reloads on every edit │ address them │ │ + diffs │ │ → resolved ✓ │ └────────────┴──────────────────────────────┴──────────────────┘
- Comment → Claude loop (the point of it all). Review the *rendered* document like a supervisor marking up a printout: select text, attach a comment ("tighten this paragraph"). Then tell Claude to *"address my comments"* — it pulls them via
check_commentsas located work items (page + quoted passage - the source
file:lineit anchors to + your ask), edits the source, and resolves each card with a note. You interact with the document; Claude interacts with the source. Run it hands-off with/loop— seedocs/AGENT-LOOP.md. - Editable source panel. A CodeMirror LaTeX editor with the project's files — save (Ctrl+S) recompiles and refreshes the PDF, Typst-style. Or keep using your own editor: any save triggers the same live loop.
- Live reload. A file watcher recompiles on every save — Claude's edits, the built-in editor's, or your external editor's.
- Change history. Each successful compile is auto-snapshotted to a hidden git ref (
refs/latex-preview/checkpoints) — never touching your branches,git log, or working tree. The History tab shows the timeline and each checkpoint's colorized diff beside the PDF. - Get to Overleaf. Download PDF, Export .zip (clean build-inputs bundle), and a one-click Open in Overleaf link for public GitHub repos; Premium Git-bridge sync is a documented
git push. Seedocs/USER-GUIDE.md. - Review workflow (reviewer → gate → resolver). A reviewer/defender agent posts comments via
add_comment; you Accept/Reject them (or flip *Auto-accept* for copilot mode); an author loop resolves the accepted ones. Comments carry roles and a reply thread. Seedocs/AGENT-LOOP.md. - Save vs. recompile, your call. The built-in editor auto-saves every 30s without recompiling; Ctrl+S / Save / Recompile rebuild the PDF on demand. (Flip ⚡ Live for recompile-as-you-type.) Your own editor and Claude's edits still auto-recompile via the watcher.
- Real projects. Auto-detects the main file, gathers multi-file
\input/\include,.bib, in-repo.cls/.sty/.bstand figures, runs BibTeX and reruns when needed; common missing packages are auto-injected. - Compile backend. Uses your local latexmk when you have one — full package fidelity, output matching Overleaf — and the bundled zero-install WASM TeX Live when you don't. Force either with
backend: "system"/"wasm". Every compile reports which one ran. - Document classes.
IEEEtranis bundled, because no venue class ships in the WASM TeX Live and a missing class can't be worked around the way a package can. Conference classes (NeurIPS, ICML, CVPR, ACL, AAAI …) carry no redistributable licence, so put the.clsfrom the author kit beside your source — it's picked up automatically. - MCP tools:
render_preview(compile + open the workspace),check_comments/resolve_comment/add_comment/reply_to_comment(the review loop),show_diff(side-by-side diff as an image — useful on image-capable clients). - Actionable errors. Failed compiles return parsed
{file, line, message}errors so Claude can self-correct, and show in the workspace.
Setup
MagicTeX is on npm as magictex-mcp and listed in the official MCP registry as `io.github.ZoeLinUTS/magictex` — so any client that reads the registry can find it. There's nothing to clone and no TeX install; npx fetches it on first use.
- Add it to your paper project's `.mcp.json` (see
.mcp.json.example):
{
"mcpServers": { "magictex": { "command": "npx", "args": ["-y", "magictex-mcp"] } } }
For local development from a clone, point it at the source instead: "command": "npx", "args": ["tsx", "/absolute/path/to/magictex-mcp/src/server.ts"]
- Restart Claude Code (or
/mcpreconnect) so it picks up the server.
- Ask Claude to render. e.g. *"render a preview of this paper"* → the first call downloads the WASM TeX Live assets (~650 MB, one time), compiles, and opens the live preview tab. Subsequent edits reload it automatically.
The WASM assets are not in this repo. They're fetched on first run into a per-user cache — ~/Library/Caches/magictex on macOS, $XDG_CACHE_HOME/magictex on Linux, %LOCALAPPDATA%\magictex on Windows — so upgrading MagicTeX doesn't re-download them, and a checkout, a global install and an npx run share one copy. Set MAGICTEX_ASSETS_DIR to put them elsewhere. To pre-fetch: npx texlyre-busytex download-assets .
Install as a Claude Code plugin (slash commands)
For a low-typing workflow, install MagicTeX as a plugin — one install gives you the MCP server and the slash commands:
/plugin marketplace add ZoeLinUTS/MagicTeX-mcp
/plugin install magictex
Then, in your paper project, use the workflow commands for the common flows:
- `/magic-latex` — compile and open the workspace (the live preview).
- `/ai-review [skill]` — review the paper with a skill (default
academic-paper-revision; pass any skill name) and post comments for you to Accept/Reject. Missing skills are reported with an install hint. - `/address-comments` — resolve your accepted comments (loop it with
/loop 60s /address-comments). - ⚡ `/ultra-agents [skill] [depth]` — fully autonomous: review, auto-accept, fix, repeat, up to
depthrounds (default 2), stopping early the moment a round finds nothing new. No per-round approval — that's the point, and the risk.depth > 5asks you to confirm before starting. Ends with a summary (what was raised, what changed, which checkpoints to look at) — every round is still an ordinary, revertible checkpoint. Seedocs/AGENT-LOOP.md.
One command per tool
Every MCP tool also has a slash command with the same name, so you can drive any single step by typing the tool name. The rule to teach: *the tool is X → type /X.*
| Type this | Runs tool | What it does |
|---|---|---|
/render_preview | render_preview | Compile the paper and open/refresh the live preview. |
/check_comments | check_comments | List the comments you've accepted, as edit instructions (no edits yet). |
/resolve_comment [id] [note] | resolve_comment | Mark a comment done after the edit; it turns green for your review. |
/add_comment ["quote"] [note] | add_comment | Anchor a comment onto a passage for you to Accept/Reject. |
/reply_to_comment [id] [text] | reply_to_comment | Add a threaded reply to a comment. |
/show_diff [checkpoint] | show_diff | Side-by-side visual diff as an image (current changes, or a checkpoint). |
/list_checkpoints [limit] | list_checkpoints | Recent checkpoints with their sha, newest first — find one to pass into /show_diff. |
You never *have* to type these — plain English works too (*"render a preview"*, *"address my comments"*). The commands are just a fast, teachable shorthand.
The plugin bundles the MCP server (
npx magictex-mcp), so installing the plugin is
all you need — the
.mcp.jsonabove is the alternative if you'd rather not install
a plugin. The slash commands work either way.
Tools
The MCP surface, for any client that speaks MCP. (In Claude Code you can just ask in plain English, or use the slash commands above — these are the underlying tools.)
| Tool | Parameters | What it does | ||||
|---|---|---|---|---|---|---|
render_preview | mainFile? · engine? (pdflatex \ | xelatex \ | lualatex, default xelatex) · backend? (wasm \ | system \ | auto, default auto — local latexmk if installed, else the bundled WASM engine) | Compiles the project and opens/refreshes the live workspace. The main file is auto-detected by scanning for \documentclass if omitted. |
check_comments | includeResolved? (default false) | Returns the accepted comments as located work items — page, quoted passage, the source file:line, and the ask. Reviewer suggestions awaiting your decision are reported but not returned as work. | ||||
add_comment | quote · comment · role? (reviewer \ | defender) · page? · accepted? | Anchors a comment onto a passage. Posts as a *suggestion* awaiting your Accept/Reject unless accepted is set — that flag is what makes autonomous mode autonomous. | |||
resolve_comment | id · note | Marks a comment done after the edit, with one line describing what changed. It turns green in the workspace for your review. |
| reply_to_comment | id · text · role? (author \| reviewer \| defender) | Adds a threaded reply, so a disagreement can be worked out on the comment instead of in c
只显示了开头部分;其余内容请在仓库中阅读