LaTeX转MathML的MCP服务器
一个将LaTeX数学表达式转换为MathML格式的MCP服务器。
快速入门
-
克隆仓库: git clone https://github.com/HappyAny/latex-mathml-mcp-server.git cd latex-mathml-mcp-server
-
安装依赖: npm install mathjax-node npm install @modelcontextprotocol/sdk
-
启动服务: node index.js
-
使用说明:
- 工具模式:通过工具名
latex2mathml
将LaTeX字符串转换为MathML。 - 资源模式:通过访问
mathml://{latex_expression}
获取MathML表示。
- 工具模式:通过工具名
-
客户端集成:在客户端配置中添加如下内容: { "mcpServers": { "latex-mathml-server": { "isActive": true, "command": "node", "args": [ "path_to_your_server/index.js" ] } } }
更多详情请参考README文档。