
Math Svg Mcp
io.github.wspringer由 GitHub 帳號 wspringer 發布v1.1.2更新於 Oct 24, 2026
Convert LaTeX math expressions to crisp, scalable SVG images
概覽
將 LaTeX 數學運算式轉換成可縮放的 SVG 圖片,可直接回傳內容或存成檔案。
- 可以做什麼
- 這個本機 MCP 伺服器提供兩個把 LaTeX 數學式轉成 SVG 的工具。latex_to_svg 會算繪運算式並直接回傳 SVG 內容,latex_to_svg_file 則在算繪後把結果寫入你指定的路徑。兩者都可設定輸出單位、區塊或行內模式、字型大小、x 高度比例,並可從十種數學字型中選擇,預設的 Latin Modern 字型已內附。
- 適用情境
- 適合需要為文件、簡報或網頁產生公式圖片的場合,也適合希望把數學式輸出成向量圖形而非純文字的情況。當 LaTeX 已是來源格式,且輸出必須在任何尺寸下保持清晰時特別合適。
- 執行需求
- 以 npm 套件(math-svg-mcp)形式透過 stdio 在本機執行,需要 Node.js 18 或更新版本。未宣告任何帳號、API 金鑰或環境變數。非預設數學字型會在首次使用時下載並快取到使用者的快取目錄,因此這些字型需要網路連線。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Math Svg Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
math-svg-mcp
An MCP server that converts LaTeX math expressions to SVG.
Once configured, Claude (or your favorite AI assistant) is able to convert LaTeX math expressions to SVG. So you could, for instance, ask:
Give me the Laplace transform formula as SVG
The assistant will generate the LaTeX:
and use the tool to render it:
[Works great with Sidekick for InDesign]
Quick Install (Claude Desktop)
Download and open the .mcpb file from the latest release to automatically configure Claude Desktop.
Or use this direct link: math-svg-mcp.mcpb
Manual Configuration
Claude Desktop
Add to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Claude Code
Add to your Claude Code settings (.claude/settings.json or global settings):
Or run directly:
Other MCP Clients
Any MCP-compatible client can use this server with the same configuration pattern:
Global Installation (Optional)
For faster startup, install globally:
Then configure your client to use:
Tools
latex_to_svg
Converts a LaTeX expression to SVG and returns the content directly.
Example: E = mc^2
latex_to_svg_file
Converts a LaTeX expression to SVG and saves to a file.
Example: \int_0^\infty e^{-x^2} dx = \frac{\sqrt{\pi}}{2} → /tmp/gaussian.svg
Available Fonts
The 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/.
Requirements
- Node.js 18 or later
Development
License
MIT
來源:README.md,提交 027f83a
工具
0版本歷史
1- v1.1.2最新Sep 16, 2026
評分
已滿足適用檢查項的 40%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
請在儲存庫或註冊中心條目中宣告授權條款。