math-mcp-server

111-test-111/math-mcp-server

3.3

If you are the rightful owner of math-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

A Python-based mathematical computation MCP server, providing a suite of mathematical computation tools and plotting utilities.

Math MCP Server

A Python-based mathematical computation MCP server, providing a suite of mathematical computation tools and plotting utilities.

Run mcp server

uvx math-mcp # using uvx

# Or run the .py file directly (dependencies must be installed manually)
python math_mcp/math_mcp_server.py

Project Structure

math_mcp/
ā”œā”€ā”€ __init__.py                      # Package initialization
ā”œā”€ā”€ __main__.py                      # CLI entry point
ā”œā”€ā”€ math_mcp_server.py               # Main server file (MCP tool registration)
ā”œā”€ā”€ file_utils.py                    # File path utilities
# Core computation modules
ā”œā”€ā”€ basic.py                         # Basic math computation
ā”œā”€ā”€ matrix.py                        # Matrix computations
ā”œā”€ā”€ mstatistics.py                   # Statistical analysis (avoid conflicts)
ā”œā”€ā”€ calculus.py                      # Calculus
ā”œā”€ā”€ optimization.py                  # Optimization algorithms
ā”œā”€ā”€ regression.py                    # Regression analysis
ā”œā”€ā”€ plotting.py                      # Data visualization
ā”œā”€ā”€ geometry.py                      # Geometric computations
ā”œā”€ā”€ number_theory.py                 # Number theory
ā”œā”€ā”€ complex_analysis.py              # Complex analysis
ā”œā”€ā”€ probability.py                   # Probability and statistics
# Extended specialized modules
ā”œā”€ā”€ signal_processing.py             # Signal processing
ā”œā”€ā”€ financial.py                     # Financial mathematics
└── graph_theory.py                  # Graph theory analysis

Configuration in Claude Desktop

Add the following configuration to your Claude Desktop config file:

{
    "mcpServers": {
        "math-calculator": {
            "command": "uvx",
            "args": ["math-mcp"],
            "env": {
                "OUTPUT_PATH": "path/to/output",
                "FONT_PATH": "path/to/font"
            }
        }
    }
}

Or start the server directly:

{
    "mcpServers": {
        "math-calculator-local": {
            "command": "path/to/python_interpreter",
            "args": [
                "path/to/math_mcp_server.py"
            ],
            "env": {
                "OUTPUT_PATH": "path/to/output",
                "FONT_PATH": "path/to/font"
            }
        }
    }
}