Skip to main content

math-mcp-learning-server

PyPI Python License REUSE OpenSSF Best Practices

Educational MCP server with 17 tools, persistent workspace, and cloud hosting. Built with FastMCP and the official Model Context Protocol Python SDK.

Available on the MCP Registry (io.github.clouatre-labs/math-mcp-learning-server) and PyPI.

Demo

math-mcp Demo

See CONTRIBUTING.md for instructions to record your own demo.

Quick Start

Cloud (No Installation)

Connect your MCP client to the hosted server:

Claude Desktop (claude_desktop_config.json):

{
  "mcpServers": {
    "math-cloud": {
      "transport": "http",
      "url": "https://math-mcp.fastmcp.app/mcp"
    }
  }
}

Local Installation

{
  "mcpServers": {
    "math": {
      "command": "uvx",
      "args": ["math-mcp-learning-server[scientific,plotting]"]
    }
  }
}

For other installation options (basic, scientific-only, plotting-only), see CONTRIBUTING.md.

Tools

Category Tool Description
Workspace workspace_save Save calculations to persistent storage
workspace_load Retrieve previously saved calculations
Math calc_expression Safely evaluate mathematical expressions
calc_statistics Statistical analysis (mean, median, mode, std_dev, variance)
calc_interest Calculate compound interest for investments
calc_units Convert between units (length, weight, temperature)
Matrix matrix_multiply Multiply two matrices
matrix_transpose Transpose a matrix
matrix_determinant Calculate matrix determinant
matrix_inverse Calculate matrix inverse
matrix_eigenvalues Calculate eigenvalues
Visualization plot_function Plot mathematical functions
plot_histogram Create statistical histograms
plot_line_chart Create line charts
plot_scatter Create scatter plots
plot_box_plot Create box plots
plot_financial_line Create financial line charts

Resources

  • math://workspace - Persistent calculation workspace summary
  • math://history - Chronological calculation history
  • math://functions - Available mathematical functions reference
  • math://constants/{constant} - Mathematical constants (pi, e, golden_ratio, etc.)
  • math://catalog/tools - Tool catalog with metadata and usage examples
  • math://variables - Active variables in the current workspace
  • math://test - Server health check

Prompts

  • math_tutor - Structured tutoring prompts (configurable difficulty)
  • formula_explainer - Formula explanation with step-by-step breakdowns

See Usage Examples for detailed examples.

Development

See CONTRIBUTING.md for development setup, testing, and contribution guidelines.

Security

  • OpenSSF Best Practices Silver - Fewer than 1% of open source projects reach this level
  • REUSE/SPDX - License compliance for all files
  • Signed Commits - GPG-signed commits required
  • Dependency Scanning - Automated updates via Renovate
  • pip-audit CVE Scanning - Automated dependency vulnerability checks
  • gitleaks Secret Scanning - Detects secrets in code and history
  • zizmor GitHub Actions Security - Workflow security scanning
  • commitlint Enforcement - Conventional commit validation in CI
  • OpenSSF Scorecard - Continuous open source security assessment
calc_expression safety

The calc_expression tool uses restricted eval() with a whitelist of allowed characters and functions, restricted global scope (only math module and abs), and no access to dangerous built-ins or imports. All tool inputs are validated with Pydantic models. File operations are restricted to the designated workspace directory. Complete type hints and validation are enforced for all operations.

Documentation

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_learning_server-0.12.3.tar.gz (62.8 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_learning_server-0.12.3-py3-none-any.whl (43.3 kB view details)

Uploaded Python 3

File details

Details for the file math_mcp_learning_server-0.12.3.tar.gz.

File metadata

File hashes

Hashes for math_mcp_learning_server-0.12.3.tar.gz
Algorithm Hash digest
SHA256 f32ae141b5d9f4c21d7c73747c6f1f18ae50c3c12f8c12fb0bbb4a4d8cce7c53
MD5 b4e4e3ae66ca078bfa832b88cb321e04
BLAKE2b-256 0aedc4a76d8a1446506781d3becc463c3cdfb6e776722cb4babf07f55abc368a

See more details on using hashes here.

Provenance

The following attestation bundles were made for math_mcp_learning_server-0.12.3.tar.gz:

Publisher: release.yml on clouatre-labs/math-mcp-learning-server

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file math_mcp_learning_server-0.12.3-py3-none-any.whl.

File metadata

File hashes

Hashes for math_mcp_learning_server-0.12.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7353cfdcc01150489ac48868e714fb54debb6df6cfb0bef878239f8a63e982f8
MD5 fbd7b83606863956a17de11d466b806e
BLAKE2b-256 3f1d92638f87119bfbf5aa40c19a3b7e6aaea0623d4dd90b048f299d434e8d70

See more details on using hashes here.

Provenance

The following attestation bundles were made for math_mcp_learning_server-0.12.3-py3-none-any.whl:

Publisher: release.yml on clouatre-labs/math-mcp-learning-server

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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