agentsclimarketplace

Upmath

Skill danielsimonjr/upmath-mcp/skills/upmath

Render LaTeX, TikZ, and markdown-with-math to SVG/PNG/HTML via the upmath-mcp server (i.upmath.me API, no local TeX install). Use when the user wants to render an equation or diagram to an image, validate/scan LaTeX in a document, get an embeddable UpMath image URL, build an equation sheet or notation table, or convert a markdown/LaTeX paper with `$$...$$` math into publication-ready HTML — including the "UpMath round-trip" that turns an assembled paper `Complete.md` into `paper.html`. Triggers: "render this equation/TikZ/circuit", "LaTeX to SVG/PNG", "check/scan my LaTeX", "embed this equation", "equation sheet", "run the UpMath round-trip", "regenerate paper.html", "markdown math to HTML".From its SKILL.md

Install
npx -y skills add danielsimonjr/upmath-mcp --skill upmath

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

5.5 KB, as published. Nobody here has run it

UpMath — LaTeX/TikZ/markdown-math rendering (no local TeX)

Guidance for the upmath-mcp server. It renders LaTeX server-side through i.upmath.me (TeX Live behind an SVG/PNG API), so nothing needs a local TeX installation. Tools appear as mcp__plugin_upmath-mcp_upmath-mcp__<tool>.

When to use

  • Turn an equation or a TikZ/pgfplots/circuitikz/tikz-3dplot diagram into an SVG or PNG.
  • Convert a markdown/LaTeX paper with $$...$$ math into publication-ready HTML — the UpMath round-trip.
  • Validate or inventory the LaTeX in a document, build an equation sheet or notation table, or diff/grid equations while iterating.

Tools (16)

Single render / embed

ToolUse it for
render_equationOne LaTeX equation → SVG/PNG (optionally saveTo).
render_tikzA TikZ / pgfplots / circuitikz / tikz-3dplot diagram → SVG/PNG. Pass the packages array.
get_render_urlThe i.upmath.me/svg/<encoded> URL to embed directly, no file written.
check_syntaxValidate one LaTeX snippet by attempting to render it. Cheap pre-flight.

Documents / papers

ToolUse it for
render_paperA full markdown paper with $$...$$ → publication-ready HTML (headings, bold/italic, lists, tables, code). Default useUpmath:false = KaTeX (fast, client-side); useUpmath:true = all math via UpMath SVG (slower, supports TikZ). See the gotcha below.
render_markdown_with_mathMarkdown with $$...$$ → HTML with embedded UpMath SVG math.
scan_document_mathInventory every equation in a markdown file (audit before rendering).
validate_equationsValidate all equations in a file, reporting failures.

Batch / iteration

ToolUse it for
render_batchMany equations → one file each.
render_batch_cachedSame, but skips unchanged equations — much faster on re-runs.
render_equation_sheetA set of named equations → one reference-sheet HTML page.
render_parameter_gridRender a LaTeX template across a grid of parameter values.
render_diffTwo versions of an equation side by side (HTML comparison).

Diagrams / notation

ToolUse it for
list_diagram_templatesList the built-in TikZ templates.
render_diagram_templateRender a named TikZ template.
build_notation_tableBuild a symbol/notation table from a document.

The headline workflow: the UpMath round-trip

This replaces the old manual step (paste Complete.md into upmath.me → save HTML).

  1. Assemble the paper's Complete.md (per the project's assembly command).
  2. render_paper({ inputFile: ".../Complete.md", outputFile: "paper.html", useUpmath: true }) → publication-ready HTML with server-side SVG math. (Or render_markdown_with_math for the raw HTML fragment.)
  3. Wrap with the project's print CSS (margins/pagination).
  4. Chrome headless → PDF; copy paper.html + PDF to the deploy repo; push.

⚠️ Beyond the Bat gotcha — force UpMath, not KaTeX. render_paper defaults to useUpmath:false, which renders math with KaTeX. The Beyond the Bat publish workflow mandates UpMath server-side SVG and explicitly forbids the KaTeX path (it produces different output; the legacy scripts/generate_html_for_pdf.py is deprecated for the same reason). For that project's round-trip, always pass useUpmath: true (or use render_markdown_with_math). For other projects where KaTeX is fine, the default is faster.

Gotchas

  • Third-party API. i.upmath.me is Roman Parpalak's public service — mind availability. The server now handles rate limits itself: automatic retry with exponential backoff on 429/5xx, a politeness throttle between requests (UPMATH_MIN_INTERVAL_MS, default 100ms), and a session-wide render cache (identical LaTeX is fetched once — re-running a paper only re-renders changed equations). For heavy use, self-host: docker run -t -p 8080:80 ghcr.io/parpalak/i.upmath.me:master, then set UPMATH_URL=http://localhost:8080 (default https://i.upmath.me).
  • TikZ needs its packages. Circuits/plots/proofs fail without the right packages array. check_syntax / validate_equations first for anything non-trivial.
  • Pass raw LaTeX — URL-encoding is handled server-side.
  • SVG for print/web (crisp, small); PNG only when a consumer can't take SVG.
  • Idempotent. Same LaTeX → same SVG, so re-running the round-trip is safe.

Cross-references

  • Beyond the Bat publish workflow: ~/Github/beyond-the-bat/CLAUDE.md (print-CSS wrap → Chrome PDF → deploy).
  • Rendering engine: UpMath / i.upmath.me by parpalak.

Keep looking

Skills are one crate of 628,853. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.