LaTeX MathML

by happyany

3 stars
324 downloads
Not rated
GitHub

About

Converts LaTeX mathematical expressions to MathML using MathJax-node, enabling seamless mathematical notation translation for scientific and technical documentation.

Details

Author
happyany
Repository
HappyAny/latex-mathml-mcp-server
GitHub stars
3
Downloads
324
License
MIT License
Categories
Developer Tools, Other, Workplace, File Management, Search, Infrastructure, AI, Knowledge Base
Tags
#integration

- 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

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name LaTeX MathML
    Command (node, npx, python, etc.) node
    Arguments
    • Argument 1 path_to_your_server/index.js

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Clone the repository, run npm install mathjax-node @modelcontextprotocol/sdk, then start the server with node index.js. The server listens for MCP client connections via stdio transport. Configure your MCP client with the command node and arguments pointing to the server script.

latex2mathml

Converts a LaTeX mathematical expression to MathML format. Input: LaTeX string. Output: MathML string.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "latex mathml": {
            "cwd": "string (optional)",
            "env": {},
            "args": [
                "path_to_your_server/index.js"
            ],
            "shell": false,
            "command": "node"
        }
    }
}

Linux

{
    "cwd": "string (optional)",
    "env": [],
    "args": [
        "path_to_your_server/index.js"
    ],
    "shell": false,
    "command": "node"
}

Macos

{
    "cwd": "string (optional)",
    "env": [],
    "args": [
        "path_to_your_server/index.js"
    ],
    "shell": false,
    "command": "node"
}

Windows

{
    "cwd": "string (optional)",
    "env": [],
    "args": [
        "/c",
        "node",
        "path_to_your_server/index.js"
    ],
    "shell": false,
    "command": "cmd"
}

Converts LaTeX mathematical expressions to MathML format using MathJax-node.

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

git clone https://github.com/HappyAny/latex-mathml-mcp-server.git cd latex-mathml-mcp-server
npm install mathjax-node npm install @modelcontextprotocol/sdk

The server will start and listen for MCP client connections via stdio transport.

- Tool name:latex2mathml
- Input: LaTeX string
- Output: MathML string

- Resource URI pattern:mathml://{latex_expression}
- Returns: MathML representation of the LaTeX expression

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" ] } } }

Replacepath_to_your_server/index.jswith the actual path to the server script.

{ "latex": "your_LaTeX_expression" }
{ "latex": "E = mc^2" }
{ "content": [ { "type": "text", "text": "<math xmlns=\"http://www.w3.org/1998/Math/MathML\">...</math>" } ] }

Access mathematical expressions as resources using the URI pattern:

(Note: LaTeX expressions should be URL-encoded in the resource URI)

- @modelcontextprotocol/sdk: MCP server SDK
- mathjax-node: LaTeX to MathML conversion
- zod: Input validation

This is a Node.js project. Simply clone and install dependencies as shown in the Installation section.

This is a web browser that enables your coding agent, such as Claude Code, to visit websites on your behalf and assist you in identifying bugs or creating UI test cases.

Dynamic QR code MCP server for AI agents — create, update, track QR codes

Revdoku lets Claude, Codex, ChatGPT, and other AI agents publish generated reports, dashboards, prototypes, and app sites as real websites with stable URLs.

Manage and utilize website content within the DevHub CMS platform

Extentos is a multi-vendor development platform for adding smart-glasses capabilities to existing iOS and Android apps. The simplest analogy is Stripe for smart glasses

An MCP server tailored for React Native–first development using Gluestack UI

Create and read feature flags, review experiments, generate flag types, search docs, and interact with GrowthBook's feature flagging and experimentation platform.

Make your AI agent speak every language on the planet, using Lingo.dev Localization Engine.

Gives AI agents public URLs (tunnels) for localhost, live HTTP traffic inspection, snapshot publishing, and access control.

Understand, develop, and debug authorization policies in Oso Cloud.

Up-to-date documentation for your coding agent. Covers 1000s of public repos and sites. Built by ref.tools

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.