latex2mathmlLABSCO SUMMARY
One conversion, done offline.
This is a single-purpose converter, and that is the whole appeal — no key, no rate limit, and a deterministic answer for a task that otherwise tempts a model to hand-write markup. Install is from source rather than a published binary, and the README itself notes it was written by a model.
What it is
A small MCP server that does one conversion: LaTeX in, MathML out. It runs over stdio and uses MathJax to do the rendering, so the same expression converts identically every time without calling out to a service.
What you get
- A LaTeX string converted to a MathML string —
latex2mathml, which takes{"latex": "E = mc^2"}and returns the<math>element as text - The same conversion addressable as a resource under the URI pattern
mathml://{latex_expression}, with the expression URL-encoded - Input validated by zod before it reaches the converter
Requirements
No account and no key. Clone the repository, then npm install mathjax-node and npm install @modelcontextprotocol/sdk. Start it with node index.js and point your client's config at that path — the README gives the mcpServers block. The package is published as latex-mathml-mcp-server 1.0.0 under MIT.
Setup effort
Build from source — clone the repository, then follow the steps on this page and add the configuration for your client
USE CASES
Putting real math into an HTML page
Hand the LaTeX you already wrote to the converter and paste the returned MathML into the document, instead of asking a model to produce markup from memory.
Converting a batch of expressions from a paper
Call the tool once per expression as the agent walks the source, keeping the output consistent across the whole document.
Referencing an expression without a tool call
Use the mathml:// resource URI with the expression URL-encoded, so a client can pull the markup as a resource.
1 tool
Listed in project docs. Your client may show a different list.
BEFORE YOU INSTALL
What to know first
Tools you get
1 tool named in the project's documentation.
Requires
node on PATH
Where it runs
The documented client runs the server on your machine.
INSTALLATION
Connect your client
Clone the repository, then follow the steps on this page and add the configuration for your client. This one is built from source rather than installed with a single command.
Server setup
Setup
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.jsnode
node <YOUR_PATH_TO_SERVER>/index.jsMCP Clients
Any MCP client
{
"mcpServers": {
"latex-mathml-server": {
"isActive": true,
"command": "node",
"args": [
"<YOUR_PATH_TO_SERVER>/index.js"
]
}
}
}