Cover image
Try Now
2025-03-28

Ein Modellkontext -Protokollserver (MCP), der Latex -mathematische Ausdrücke in das MathML -Format umwandelt.

3 years

Works with Finder

1

Github Watches

0

Github Forks

3

Github Stars

LaTeX to MathML MCP Server

A Model Context Protocol (MCP) server that converts LaTeX mathematical expressions to MathML format. And this README.md is written by DeepSeek V3.

Features

  • 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

Installation

  1. Clone this repository:

    git clone https://github.com/HappyAny/latex-mathml-mcp-server.git
    cd latex-mathml-mcp-server
    
  2. Install dependencies:

    npm install mathjax-node
    npm install @modelcontextprotocol/sdk
    

Usage

Starting the Server

Run the server using Node.js:

node index.js

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

Available Services

  1. Tool-based Conversion:

    • Tool name: latex2mathml
    • Input: LaTeX string
    • Output: MathML string
  2. Resource-based Access:

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

Client Integration

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.

API Details

Tool: latex2mathml

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

Resource: mathml://{id}

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)

Development

Dependencies

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

Building

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

License

MIT

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • Yasir Eryilmaz
  • AI scriptwriting assistant for short, engaging video content.

  • Daren White
  • A supportive coach for mastering all Spanish tenses.

  • J. DE HARO OLLE
  • Especialista en juegos de palabras en varios idiomas.

  • albert tan
  • Japanese education, creating tailored learning experiences.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • apappascs
  • Entdecken Sie die umfassendste und aktuellste Sammlung von MCP-Servern auf dem Markt. Dieses Repository dient als zentraler Hub und bietet einen umfangreichen Katalog von Open-Source- und Proprietary MCP-Servern mit Funktionen, Dokumentationslinks und Mitwirkenden.

  • huahuayu
  • Ein einheitliches API-Gateway zur Integration mehrerer Ethercan-ähnlicher Blockchain-Explorer-APIs mit Modellkontextprotokoll (MCP) für AI-Assistenten.

  • deemkeen
  • Steuern Sie Ihren MBOT2 mit einer Power Combo: MQTT+MCP+LLM

  • zhaoyunxing92
  • 本项目是一个钉钉 MCP (Message Connector Protocol )服务 , 提供了与钉钉企业应用交互的 api 接口。项目基于 Go 语言开发 , 支持员工信息查询和消息发送等功能。

  • pontusab
  • Die Cursor & Windsurf -Community finden Regeln und MCPs

    Reviews

    2 (1)
    Avatar
    user_oJvLOdyC
    2025-04-16

    The Performance Review Data MCP Server developed by kfischer-okarin is an exceptional tool for managing and analyzing performance reviews. It has drastically streamlined our review process, providing clear insights and easy data management. Highly recommend it for any organization looking to improve their performance review system. Check it out at https://mcp.so/server/mcp-server-performance-review-data/kfischer-okarin.