mcpField
M
Math Mcp Server

Math Mcp Server

Local
github.com/111-test-111Developer Tools5Updated 72w ago

About Math Mcp Server

Math Mcp Server is a Python MCP server offering mathematical computation tools and plotting utilities for LLMs. It can be started with uvx or by running its Python server file directly.

Key features

  1. 01Mathematical computation tools
  2. 02Matrix computations
  3. 03Plotting utilities

Use cases

  1. 01Perform mathematical calculations through an LLM
  2. 02Run matrix computations
  3. 03Generate plots for mathematical work

MCP support

It registers mathematical computation and plotting tools for MCP clients.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"math-mcp-server-111-test-111": {
"command": "uvx",
"args": [
"math-mcp"
],
"env": {
"OUTPUT_PATH": "<OUTPUT_PATH>",
"FONT_PATH": "<FONT_PATH>"
}
}
}
}
Run commanduvx math-mcp
Environment variables to set
OUTPUT_PATH
FONT_PATH

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
pypimath-mcp

Tools

22

Saved tool list · updated 2w ago

ParameterTypeRequiredDescription
numbersarrayYesList of numbers for the operation. Must contain at least one number
operationstringYesArithmetic operation type. Supports: 'add', 'subtract', 'multiply', 'product', 'divide', 'power', 'modulo', 'gcd', 'lcm', 'sum', 'average'
precisionanyNoNumber of decimal places for the result. Range 0-15
use_decimalbooleanNoWhether to use high-precision decimal calculation

Details

From the project README

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

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.