Skip to main content

Math calculation MCP server, providing basic arithmetic, mathematical functions, matrix calculation, statistical analysis, calculus, optimization, regression analysis and data visualization.

Project description

Math MCP Server

这是一个数学计算MCP(Model Context Protocol)服务器,提供了一些数学计算工具集和绘图工具

功能特性

  • 矩阵计算: 基本运算、矩阵分解、特征值、SVD等
  • 统计分析: 描述性统计、假设检验、分布分析等
  • 微积分: 导数、积分、极限、泰勒级数等
  • 优化算法: 函数优化、线性规划、约束优化等
  • 回归分析: 线性回归、多项式回归、正则化回归等
  • 数据可视化: 统计图表、函数绘图等

使用uvx运行

uvx math-mcp

项目结构

math_mcp/
├── __init__.py                    # 包初始化文件
├── __main__.py                    # CLI入口点
├── math_mcp_server.py             # 主服务器文件(MCP工具注册)
├── matrix_calculator.py           # 矩阵计算模块
├── statistics_calculator.py       # 统计分析模块
├── calculus_calculator.py         # 微积分计算模块
├── optimization_calculator.py     # 优化算法模块
├── regression_calculator.py       # 回归分析模块
└── plotting_calculator.py         # 统计绘图模块

在Claude Desktop中配置

将以下配置添加到Claude Desktop配置文件中:

{
  "mcpServers": {
    "math-calculator": {
      "command": "uvx",
      "args": ["math-mcp"],
      "env": {
        "OUTPUT_PATH": "path/to/plot_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.2.0.tar.gz (43.7 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.2.0-py3-none-any.whl (50.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for math_mcp-1.2.0.tar.gz
Algorithm Hash digest
SHA256 a6a92a82f072cede43090b1738bc91af98aab62f8ff2ce4ef99bd737bbde28d8
MD5 fe43859d804c89a8b04e85c18ee0adae
BLAKE2b-256 61e8fdb16d5ba45e29e9fdb00857b0390888b3f8a522371dcdcc994d52a7fd1e

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for math_mcp-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7118350adf8ae6eeafda2a7234efb530ef7dda69ffc32e00e530140a572f51d1
MD5 89e5c79f43e8542b8b7326fb3a6a1e0e
BLAKE2b-256 b8fc3b9c0cde73bedea98412978fd0c248047b0e66dca966e26195111f544247

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