Browser Automation · MODEL CONTEXT PROTOCOL
Latex Mathml Server
Latex Mathml Server is a community-listed Model Context Protocol server. Review the source repository before installation.
连接能力
Latex Mathml Server 为 AI Agent 提供什么
来源目录未提供结构化功能列表,请在使用前阅读源仓库文档。
安全
MCP 收录不等于安全审核
MCP 服务器可能获得模型上下文、凭据、本地文件或调用外部系统的权限。连接 Agent 前,请检查代码、环境变量、网络行为、软件包来源与维护状态。
README
仓库文档
A Model Context Protocol (MCP) server that converts LaTeX mathematical expressions to MathML format. And this README.md is written by DeepSeek V3.
- Converts LaTeX mathematical expressions to MathML
- Provides both tool-based conversion and resource-based access
- Standard MCP protocol implementation for easy integration
- Lightweight and fast conversion using MathJax-node
-
Clone this repository:
git clone https://github.com/HappyAny/latex-mathml-mcp-server.git cd latex-mathml-mcp-server -
Install dependencies:
npm install mathjax-node npm install @modelcontextprotocol/sdk
Run the server using Node.js:
node index.jsThe server will start and listen for MCP client connections via stdio transport.
-
Tool-based Conversion:
- Tool name:
latex2mathml - Input: LaTeX string
- Output: MathML string
- Tool name:
-
Resource-based Access:
- Resource URI pattern:
mathml://{latex_expression} - Returns: MathML representation of the LaTeX expression
- Resource URI pattern:
To connect to this server from an MCP client, add the following configuration to your client's settings:
{
"mcpServers": {
"latex-mathml-server": {
"isActive": true,
"command": "node",
"args": [
"path_to_your_server/index.js"
]
}
}
}Replace path_to_your_server/index.js with the actual path to the server script.
Request Format:
{
"latex": "your_LaTeX_expression"
}Example Request:
{
"latex": "E = mc^2"
}Response Format:
{
"content": [
{
"type": "text",
"text": "<math xmlns=\"http://www.w3.org/1998/Math/MathML\">...</math>"
}
]
}Access mathematical expressions as resources using the URI pattern:
mathml://E%20%3D%20mc%5E2
(Note: LaTeX expressions should be URL-encoded in the resource URI)
@modelcontextprotocol/sdk: MCP server SDKmathjax-node: LaTeX to MathML conversionzod: Input validation
This is a Node.js project. Simply clone and install dependencies as shown in the Installation section.
MIT
社区