LaTeX转MathML的MCP服务器

LaTeX转MathML的MCP服务器

一个将LaTeX数学表达式转换为MathML格式的MCP服务器。

快速入门

  1. 克隆仓库: git clone https://github.com/HappyAny/latex-mathml-mcp-server.git cd latex-mathml-mcp-server

  2. 安装依赖: npm install mathjax-node npm install @modelcontextprotocol/sdk

  3. 启动服务: node index.js

  4. 使用说明:

    • 工具模式:通过工具名latex2mathml将LaTeX字符串转换为MathML。
    • 资源模式:通过访问mathml://{latex_expression}获取MathML表示。
  5. 客户端集成:在客户端配置中添加如下内容: { "mcpServers": { "latex-mathml-server": { "isActive": true, "command": "node", "args": [ "path_to_your_server/index.js" ] } } }

更多详情请参考README文档。