Skip to main content
Glama
111-test-111

Math MCP Server

by 111-test-111
README.md
## Math MCP Server

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

### Run mcp server
```Python
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:
```json
{
    "mcpServers": {
        "math-calculator": {
            "command": "uvx",
            "args": ["math-mcp"],
            "env": {
                "OUTPUT_PATH": "path/to/output",
                "FONT_PATH": "path/to/font"
            }
        }
    }
}
```

Or start the server directly:
```json
{
    "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"
            }
        }
    }
}
```

TDQS

B3.2/5.0

Scored across 22 tools

Disambiguation4/5

Most tools have clearly distinct purposes covering different mathematical domains. Potential confusion exists between number_properties and number_theory_calculator, and between expression_evaluator and mathematical_functions, but descriptions help differentiate them.

Naming Consistency3/5

Naming conventions are mixed: some use noun_descriptor (e.g., calculus_engine), others use verb_noun (e.g., plot_function_curve), and there is inconsistency in the use of 'calculator' vs 'engine' vs 'suite'. While mostly readable, the pattern is not strongly consistent.

Tool Count3/5

22 tools is on the high side for a math server, but still within reason given the breadth of topics covered (arithmetic, calculus, statistics, etc.). Some tools like signal_processing_calculator and graph_theory_suite are very specialized, so the count could be slightly trimmed without losing core functionality.

Completeness5/5

The tool surface is remarkably comprehensive, covering all major mathematical areas: basic operations, algebra, calculus, geometry, linear algebra, number theory, statistics, probability, optimization, complex analysis, graph theory, and even financial math. The inclusion of a cleanup utility is a minor oddity, but does not detract from the strong coverage.

Maintenance

ActivityInactive
ResponsivenessNo issues