MCP Hub
Back to servers

UpMath MCP Server

Enables Claude Code to render LaTeX equations, TikZ diagrams, and documents into SVG or PNG formats via the UpMath API. It supports a wide range of TeX Live packages and syntax validation without requiring a local TeX installation.

glama
Updated
Mar 23, 2026

UpMath MCP Server

MCP server that gives Claude Code direct access to LaTeX rendering via the UpMath API. Renders equations, TikZ diagrams, and full documents to SVG/PNG without a local TeX installation.

Tools

ToolDescription
render_equationRender LaTeX equation to SVG or PNG
render_tikzRender TikZ/pgfplots/circuitikz diagram to SVG or PNG
render_batchRender multiple equations at once, saving to files
render_markdown_with_mathRender markdown with $$...$$ math to HTML with embedded SVGs
check_syntaxValidate LaTeX syntax without saving
get_render_urlGet the UpMath URL for embedding in HTML/markdown

Supported Packages

Everything TeX Live supports, including:

CategoryPackages
MathAll standard LaTeX math, mathrsfs, esvect, stmaryrd
Graphicstikz + libraries, tikz-3dplot, pgfplots, pgflibrary
Diagramscircuitikz (circuits), bussproofs (proofs)
Chemistrymhchem
Formattingarray, xcolor, kotex

Setup

git clone https://github.com/danielsimonjr/upmath-mcp.git
cd upmath-mcp
npm install

Add to ~/.claude/.mcp.json:

{
  "mcpServers": {
    "upmath": {
      "command": "node",
      "args": ["/path/to/upmath-mcp/server.js"]
    }
  }
}

Restart Claude Code. The rendering tools will be available.

Examples

Render the quadratic formula:

render_equation({ latex: "\\frac{-b \\pm \\sqrt{b^2-4ac}}{2a}", format: "svg" })

Render a circuit:

render_tikz({
  tikz: "\\begin{circuitikz}\\draw (0,0) to[R, l=$R_1$] (2,0) to[C, l=$C_1$] (4,0);\\end{circuitikz}",
  packages: ["circuitikz"],
  format: "svg",
  saveTo: "circuit.svg"
})

Self-Hosting

You can run your own UpMath renderer:

docker run -t -p 8080:80 ghcr.io/parpalak/i.upmath.me:master

Then set UPMATH_URL=http://localhost:8080 in your environment.

License

MIT

Credits

Reviews

No reviews yet

Sign in to write a review