upmath

upmath is a skill for Claude Code, Codex from danielsimonjr/upmath-mcp. It costs 189 tokens per session (1,495 once invoked), scanned A, original, MIT.

A service for turning LaTeX—the text format commonly used for mathematical writing—and TikZ diagrams into SVG, PNG, or HTML. It can also check mathematical syntax and process documents containing equations.

In plain words
What is it for?
Use it to create equation images, diagrams, equation sheets, notation tables, or HTML versions of papers with mathematical expressions.
Why use it?
It lets you render equations and diagrams without installing TeX locally. Syntax checks can catch formatting problems before you publish or embed the result.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md.

Part of the upmath-mcp plugin — 1 skill, 1 MCP server shipped together

Good fit Use it to create equation images, diagrams, equation sheets, notation tables, or HTML versions of papers with mathematical expressions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/danielsimonjr/upmath-mcp/upmath
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add danielsimonjr/upmath-mcp --skill upmath
Clone the repo
git clone --depth 1 https://github.com/danielsimonjr/upmath-mcp

Made for: Claude Code, Codex.

Or install upmath-mcp, the plugin that ships this one along with the rest of its 1 skill, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for upmath

README.md
[![agentmods](https://agentmods.dev/badge/skills/danielsimonjr/upmath-mcp/upmath.svg)](https://agentmods.dev/skills/danielsimonjr/upmath-mcp/upmath)
Your own site
<a href="https://agentmods.dev/skills/danielsimonjr/upmath-mcp/upmath"><img src="https://agentmods.dev/badge/skills/danielsimonjr/upmath-mcp/upmath.svg" alt="Measured on agentmods" height="20"></a>
Per session 189 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,495 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00189 $0.01495
Opus 5 $0.00095 $0.00747
Sonnet 5 $0.00038 $0.00299
Haiku 4.5 $0.00019 $0.00150

Measured 7d ago against content hash 0dadecfd1934, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

upmath scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/upmath/SKILL.md · 76 lines

How it starts

The opening of the file, as written. The whole thing — 76 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

Tool Use it for
render_equation One LaTeX equation → SVG/PNG (optionally saveTo).
render_tikz A TikZ / pgfplots / circuitikz / tikz-3dplot diagram → SVG/PNG. Pass the packages array.
get_render_url The i.upmath.me/svg/<encoded> URL to embed directly, no file written.
check_syntax Validate one LaTeX snippet by attempting to render it. Cheap pre-flight.

Documents / papers

Tool Use it for
render_paper A 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_math Markdown with $$...$$ → HTML with embedded UpMath SVG math.
scan_document_math Inventory every equation in a markdown file (audit before rendering).
validate_equations Validate all equations in a file, reporting failures.

Batch / iteration

Tool Use it for
render_batch Many equations → one file each.
render_batch_cached Same, but skips unchanged equations — much faster on re-runs.
render_equation_sheet A set of named equations → one reference-sheet HTML page.
render_parameter_grid Render a LaTeX template across a grid of parameter values.
render_diff Two versions of an equation side by side (HTML comparison).

Read the full file on GitHub · 76 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 76 lines · 189 tokens per session scan A 0dadecfd1934

Subscribe to this mod's changes

upmath is a skill published in the GitHub repository danielsimonjr/upmath-mcp (2 stars, last pushed today), licensed MIT. It adds 189 tokens to every session and 1,495 once invoked, about $0.0009 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

instrument-data-to-allotrope

Convert laboratory instrument output files (PDF, CSV, Excel, TXT) to Allotrope Simple Model (ASM) JSON format or flattened 2D CSV. Use this skill when scientists need to standardize instrument data for LIMS systems, data lakes, or downstream analysis. Supports auto-detection of instrument types. Outputs include full…

anthropics/knowledge-work-plugins · 123 tokens

exploratory-data-analysis

Perform bounded, local exploratory analysis of explicitly supported scientific files. Use for redacted CSV/TSV/JSON profiles; optional NumPy, HDF5, FASTA/FASTQ, and basic image metadata inspection; missingness/leakage audits; outlier and transformation sensitivity; and rigorous EDA report scaffolds. Other domain…

K-Dense-AI/scientific-agent-skills · 83 tokens

matlab

Build, review, migrate, and safely plan MATLAB or GNU Octave numerical workflows, including arrays, tabular/time data, tests, projects, graphics, MAT files, and explicit Python interoperability.

K-Dense-AI/scientific-agent-skills · 42 tokens

phylogenetics

Build and analyze phylogenetic trees using MAFFT (multiple alignment), IQ-TREE 2 (maximum likelihood), and FastTree (fast NJ/ML). Visualize with ETE3 or FigTree. For evolutionary analysis, microbial genomics, viral phylodynamics, protein family analysis, and molecular clock studies.

K-Dense-AI/scientific-agent-skills · 68 tokens

research-engineer

An uncompromising Academic Research Engineer. Operates with absolute scientific rigor, objective criticism, and zero flair. Focuses on theoretical correctness, formal verification, and optimal implementation across any required technology.

davila7/claude-code-templates · 43 tokens

mapping-to-snomed

Maps clinical concept spans extracted by OpenMed to SNOMED CT concepts through a USER-SUPPLIED terminology server (the user's own Ontoserver, Snowstorm, or UMLS/UTS), never a bundled vocabulary. Use when the user wants to code findings, disorders, procedures, body structures, or substances to SNOMED CT, run an ECL…

maziyarpanahi/openmed · 205 tokens