Skip to main content

Comprehensive Math calculation MCP server, providing basic arithmetic, matrix calculation, statistical analysis, calculus, optimization, regression, geometry, number theory, signal processing, financial mathematics, and probability calculations with data visualization.

Project description

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)
├── description_loader.py            # Tool description loader
├── tool_descriptions.py             # Tool description configuration
├── 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/plot_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"
            }
        }
    }
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

math_mcp-1.3.2.tar.gz (99.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

math_mcp-1.3.2-py3-none-any.whl (109.6 kB view details)

Uploaded Python 3

File details

Details for the file math_mcp-1.3.2.tar.gz.

File metadata

  • Download URL: math_mcp-1.3.2.tar.gz
  • Upload date:
  • Size: 99.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.3

File hashes

Hashes for math_mcp-1.3.2.tar.gz
Algorithm Hash digest
SHA256 93a501d6c9c2bfd5f69b4f122aa6359f4102a2bcffda14ee18b9a43f052d728c
MD5 9a123c20447e94bdd5d2ac1011f1f4b1
BLAKE2b-256 13e8825859b795c0a2eff509780fa0b697436c1b95a7db3d0d4c3d94e3f36ab7

See more details on using hashes here.

File details

Details for the file math_mcp-1.3.2-py3-none-any.whl.

File metadata

  • Download URL: math_mcp-1.3.2-py3-none-any.whl
  • Upload date:
  • Size: 109.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.3

File hashes

Hashes for math_mcp-1.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1c9eeb30f9f9f870d047e639a27d8552f977bb60cfc89e37c8d70643a8ff49f2
MD5 f87a1d3662a8906aea26bb427c4582b2
BLAKE2b-256 2ad936ebfae9e77a7bc2e155c0bd3302a8a9dbca5f68a844dc08afb68f0d2142

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page