- Home
- MCP servers
- Math SVG
Math SVG
- javascript
0
GitHub Stars
javascript
Language
4 months ago
First Indexed
2 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
Installation
Add the following to your MCP client configuration file.
Configuration
View docs{
"mcpServers": {
"wspringer-math-svg-mcp": {
"command": "npx",
"args": [
"-y",
"math-svg-mcp"
]
}
}
}This MCP server converts LaTeX math expressions into SVG graphics, enabling you to render mathematical notation as scalable vector images from within any MCP-enabled assistant or editor. Once connected, you can request SVGs for expressions like Laplace transforms, integrals, or equations, and the server will output ready-to-use vector graphics for your documents, apps, or dashboards.
How to use
You connect a compatible MCP client to the math-svg MCP server, then call its math-to-SVG tools to render LaTeX expressions as scalable graphics. Use the provided tools to convert inline or displayed math, specify the font and size to fit your layout, and retrieve either the SVG content directly or save it to a file for later use.
How to install
Prerequisites: ensure you have Node.js 18 or later installed on your system.
Option 1: Quick install via Claude Desktop (best for Claude users) Install the MCP configuration file automatically by obtaining the .mcpb package for math-svg-mcp from the latest release, then open it with Claude Desktop to configure the MCP connection.
Option 2: Manual configuration for Claude Desktop Create or edit your Claude Desktop configuration file to add the MCP server entry with npx running the math-svg-mcp package.
Option 3: Manual configuration for Claude Code Add an MCP server entry to Claude Code settings to run the MCP with npx and the -y flag.
Option 4: Other MCP clients Use the same pattern shown here to configure any MCP-compatible client to run the server with npx and the math-svg-mcp package.
Option 5: Global installation (optional) For faster startup, install globally and run the binary directly.
Additional configuration details
Connect using one of the following stdio configurations. The math-svg MCP server is invoked through the command line via Node package managers or a global binary.
Examples of usage from supported clients
-
Convert a LaTeX expression to SVG content directly and use the SVG in your document.
-
Save the resulting SVG to a file for later reuse in your projects.
Notes on fonts and output
You can select from a range of math fonts and control the output unit, font size, and display mode to fit your layout needs.
Available tools
latex_to_svg
Converts a LaTeX math expression to SVG and returns the SVG content directly.
latex_to_svg_file
Converts a LaTeX math expression to SVG and saves the SVG to a specified file path.