LabscoMCP early access ↗
HappyAnyMCP SERVER

LaTeX to MathML MCP Server

Turn a LaTeX math expression into MathML through one tool call, backed by MathJax, with no account and no network dependency.

by HappyAny ↗Document Conversion, PDF & TranslationCommunity

LABSCO 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