Provides tools to render LaTeX equations, TikZ diagrams, and full documents into high-quality images, supporting a wide range of packages including pgfplots, circuitikz, and mhchem.
Enables the processing of Markdown content containing mathematical expressions to produce HTML with embedded SVG renderings of the math.
Supports the direct generation of SVG graphics from LaTeX and TikZ source code for scalable web-based display.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@UpMath MCP Serverrender the Schrödinger equation as an SVG"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
Tool | Description |
| Render LaTeX equation to SVG or PNG |
| Render TikZ/pgfplots/circuitikz diagram to SVG or PNG |
| Render multiple equations at once, saving to files |
| Render markdown with |
| Validate LaTeX syntax without saving |
| Get the UpMath URL for embedding in HTML/markdown |
Supported Packages
Everything TeX Live supports, including:
Category | Packages |
Math | All standard LaTeX math, |
Graphics |
|
Diagrams |
|
Chemistry |
|
Formatting |
|
Setup
git clone https://github.com/danielsimonjr/upmath-mcp.git
cd upmath-mcp
npm installAdd 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:masterThen set UPMATH_URL=http://localhost:8080 in your environment.
License
MIT
Credits
i.upmath.me — the LaTeX-to-SVG API
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.