{
  "markdown": "# math-svg-mcp\n\nAn MCP server that converts LaTeX math expressions to SVG.\n\nOnce configured, Claude (or your favorite AI assistant) is able to convert LaTeX math expressions to SVG. So you could, for instance, ask:\n\n> Give me the Laplace transform formula as SVG\n\nThe assistant will generate the LaTeX:\n\n```latex\n\\mathcal{L}\\{f(t)\\} = \\int_0^\\infty f(t) e^{-st} \\, dt = F(s)\n```\n\nand use the tool to render it:\n\n![Laplace transform](example.svg)\n\n[![Works great with Sidekick for InDesign](sidekick-banner.svg)](https://sidekick.eastpole.nl?utm_source=github&utm_medium=readme&utm_campaign=math-svg-mcp)\n\n## Quick Install (Claude Desktop)\n\nDownload and open the `.mcpb` file from the [latest release](https://github.com/wspringer/math-svg-mcp/releases/latest) to automatically configure Claude Desktop.\n\nOr use this direct link: [math-svg-mcp.mcpb](https://github.com/wspringer/math-svg-mcp/releases/latest/download/math-svg-mcp.mcpb)\n\n## Manual Configuration\n\n### Claude Desktop\n\nAdd to your Claude Desktop configuration file:\n\n**macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`\n**Windows**: `%APPDATA%\\Claude\\claude_desktop_config.json`\n\n```json\n{\n  \"mcpServers\": {\n    \"math-svg\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"math-svg-mcp\"]\n    }\n  }\n}\n```\n\n### Claude Code\n\nAdd to your Claude Code settings (`.claude/settings.json` or global settings):\n\n```json\n{\n  \"mcpServers\": {\n    \"math-svg\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"math-svg-mcp\"]\n    }\n  }\n}\n```\n\nOr run directly:\n\n```bash\nclaude mcp add math-svg -- npx -y math-svg-mcp\n```\n\n### Other MCP Clients\n\nAny MCP-compatible client can use this server with the same configuration pattern:\n\n```json\n{\n  \"command\": \"npx\",\n  \"args\": [\"-y\", \"math-svg-mcp\"]\n}\n```\n\n### Global Installation (Optional)\n\nFor faster startup, install globally:\n\n```bash\nnpm install -g math-svg-mcp\n```\n\nThen configure your client to use:\n\n```json\n{\n  \"command\": \"math-svg-mcp\"\n}\n```\n\n## Tools\n\n### `latex_to_svg`\n\nConverts a LaTeX expression to SVG and returns the content directly.\n\n| Parameter | Required | Default | Description |\n|-----------|----------|---------|-------------|\n| `latex` | Yes | — | LaTeX math expression |\n| `unit` | Yes | — | Output unit: `pt`, `px`, `mm`, or `ex` |\n| `display` | No | `true` | Display mode (block) vs inline |\n| `fontSize` | No | `16` | Font size in the specified unit |\n| `xHeightRatio` | No | `0.5` | Ratio of x-height to font size |\n| `font` | No | `modern` | Math font (see [Available Fonts](#available-fonts)) |\n\n**Example:** `E = mc^2`\n\n### `latex_to_svg_file`\n\nConverts a LaTeX expression to SVG and saves to a file.\n\n| Parameter | Required | Default | Description |\n|-----------|----------|---------|-------------|\n| `latex` | Yes | — | LaTeX math expression |\n| `outputPath` | Yes | — | File path for the SVG |\n| `unit` | Yes | — | Output unit: `pt`, `px`, `mm`, or `ex` |\n| `display` | No | `true` | Display mode (block) vs inline |\n| `fontSize` | No | `16` | Font size in the specified unit |\n| `xHeightRatio` | No | `0.5` | Ratio of x-height to font size |\n| `font` | No | `modern` | Math font (see [Available Fonts](#available-fonts)) |\n\n**Example:** `\\int_0^\\infty e^{-x^2} dx = \\frac{\\sqrt{\\pi}}{2}` → `/tmp/gaussian.svg`\n\n## Available Fonts\n\nThe `font` parameter lets you choose from 10 math fonts. The default `modern` font (Latin Modern) is bundled; others are automatically downloaded on first use and cached in `~/.cache/math-svg-mcp/fonts/`.\n\n| Font | Description |\n|------|-------------|\n| `modern` | Latin Modern (default, bundled) |\n| `stix2` | STIX Two Math |\n| `newcm` | New Computer Modern |\n| `fira` | Fira Math |\n| `bonum` | TeX Gyre Bonum |\n| `pagella` | TeX Gyre Pagella |\n| `schola` | TeX Gyre Schola |\n| `termes` | TeX Gyre Termes |\n| `dejavu` | DejaVu |\n| `asana` | Asana Math |\n\n## Requirements\n\n- Node.js 18 or later\n\n## Development\n\n```bash\nnpm install\nnpm run build\nnpm test\n```\n\n## License\n\nMIT\n",
  "bytes": 3954,
  "sha": "6979391b868f221f6c43ab1e8eaa42ce749e51aecd4586c888e47962c01b8a72",
  "repo_slug": "wspringer/math-svg-mcp",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_wspringer_math_svg_mcp_04bb3b92/readme"
}