math-svg-mcp
v1.1.2Convert LaTeX math expressions to crisp, scalable SVG images
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
latex_to_svg
Convert a LaTeX math expression to SVG and return the SVG content directly. Best for small expressions where you need the SVG inline.
| Parameter | Type | Description |
|---|---|---|
latex * | string | The LaTeX math expression to convert |
unit * | string | Output unit for width/height. Use pt for print/InDesign, px for web/browsers, mm for metric print, ex to keep relative units |
display | boolean | Display mode (block) vs inline mode. Default: true |
fontSize | number | Font size (em size) in the same unit as the output. E.g., 11 for 11pt when unit=pt, or 16 for 16px when unit=px. Default: 16 |
xHeightRatio | number | Ratio of x-height to font size. Varies by font: Times 0.45, Helvetica 0.52, Computer Modern 0.43. Default: 0.5 |
latex_to_svg_file
Convert a LaTeX math expression to SVG and save it to a file. Best for larger expressions or when you need to reference the SVG by path.
| Parameter | Type | Description |
|---|---|---|
latex * | string | The LaTeX math expression to convert |
outputPath * | string | The file path where the SVG should be saved |
unit * | string | Output unit for width/height. Use pt for print/InDesign, px for web/browsers, mm for metric print, ex to keep relative units |
display | boolean | Display mode (block) vs inline mode. Default: true |
fontSize | number | Font size (em size) in the same unit as the output. E.g., 11 for 11pt when unit=pt, or 16 for 16px when unit=px. Default: 16 |
xHeightRatio | number | Ratio of x-height to font size. Varies by font: Times 0.45, Helvetica 0.52, Computer Modern 0.43. Default: 0.5 |