شعار Math Learning

Math Learning

مؤسسة
clouatre-labs

Educational MCP server with math operations, matrix algebra, data visualization, and persistent workspace

الناشرclouatre-labs
المستودعmath-mcp-learning-server
اللغةPython
التفريعات
4
النجوم
5
الأدوات المتاحة
17
نوع نقل البياناتstreamable-http
الفئات
الروابط
  • اربط الأدوات بسير عمل الذكاء الاصطناعي

    يتيح Math Learning إمكانات MCP التي يمكن لتطبيقات الذكاء الاصطناعي العميلة ووكلاء الذكاء الاصطناعي المتوافقة استخدامها.

  • الأدوات المتاحة: 17

    تصفّح الإجراءات القابلة للاستدعاء أدناه، بما في ذلك أسماؤها وأوصافها عندما يوفّرها الخادم.

  • إعدادات جاهزة للنسخ

    استخدم أمثلة إعداد التثبيت لتهيئة هذا الخادم في تطبيق MCP العميل المفضّل لديك.

  • مؤشرات الاهتمام بالمصدر المفتوح

    النجوم: 5، والنسخ المتفرعة: 4 في المستودع المرتبط.

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):

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

Local Installation

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

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

Tools

CategoryToolDescription
Workspaceworkspace_saveSave calculations to persistent storage
workspace_loadRetrieve previously saved calculations
Mathcalc_expressionSafely evaluate mathematical expressions
calc_statisticsStatistical analysis (mean, median, mode, std_dev, variance)
calc_interestCalculate compound interest for investments
calc_unitsConvert between units (length, weight, temperature)
Matrixmatrix_multiplyMultiply two matrices
matrix_transposeTranspose a matrix
matrix_determinantCalculate matrix determinant
matrix_inverseCalculate matrix inverse
matrix_eigenvaluesCalculate eigenvalues
Visualizationplot_functionPlot mathematical functions
plot_histogramCreate statistical histograms
plot_line_chartCreate line charts
plot_scatterCreate scatter plots
plot_box_plotCreate box plots
plot_financial_lineCreate 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

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

التثبيت

TypingMind
{
  "mcpServers": {
    "math-learning": {
      "url": "https://math-mcp.fastmcp.app/mcp",
      "env": null
    }
  }
}

الأدوات المتاحة

  • calculate

    Safely evaluate mathematical expressions with support for basic operations and math functions.

    Supported operations: +, -, *, /, **, () Supported functions: sin, cos, tan, log, sqrt, abs, pow

    Examples:

    • "2 + 3 * 4" → 14
    • "sqrt(16)" → 4.0
    • "sin(3.14159/2)" → 1.0
  • statistics

    Perform statistical calculations on a list of numbers.

    Available operations: mean, median, mode, std_dev, variance

  • compound_interest

    Calculate compound interest for investments.

    Formula: A = P(1 + r/n)^(nt) Where:

    • P = principal amount
    • r = annual interest rate (as decimal)
    • n = number of times interest compounds per year
    • t = time in years
  • convert_units

    Convert between different units of measurement.

    Supported unit types:

    • length: mm, cm, m, km, in, ft, yd, mi
    • weight: g, kg, oz, lb
    • temperature: c, f, k (Celsius, Fahrenheit, Kelvin)
  • save_calculation

    Save calculation to persistent workspace (survives restarts).

    Args: name: Variable name to save under expression: The mathematical expression result: The calculated result

    Examples: save_calculation("portfolio_return", "10000 * 1.07^5", 14025.52) save_calculation("circle_area", "pi * 5^2", 78.54)

  • load_variable

    Load previously saved calculation result from workspace.

    Args: name: Variable name to load

    Examples: load_variable("portfolio_return") # Returns saved calculation load_variable("circle_area") # Access across sessions

  • plot_function

    Generate mathematical function plots (requires matplotlib).

    Args: expression: Mathematical expression to plot (e.g., "x**2", "sin(x)") x_range: Tuple of (min, max) for x-axis range num_points: Number of points to plot (default: 100) ctx: FastMCP context for logging

    Returns: Dict with base64-encoded PNG image or error message

    Examples: plot_function("x**2", (-5, 5)) plot_function("sin(x)", (-3.14, 3.14))

  • create_histogram

    Create statistical histograms (requires matplotlib).

    Args: data: List of numerical values bins: Number of histogram bins (default: 20) title: Chart title ctx: FastMCP context for logging

    Returns: Dict with base64-encoded PNG image or error message

    Examples: create_histogram([1, 2, 2, 3, 3, 3, 4, 4, 5], bins=5)

  • plot_line_chart

    Create a line chart from data points (requires matplotlib).

    Args: x_data: X-axis data points y_data: Y-axis data points title: Chart title x_label: X-axis label y_label: Y-axis label color: Line color (name or hex code, e.g., 'blue', '#2E86AB') show_grid: Whether to show grid lines ctx: FastMCP context for logging

    Returns: Dict with base64-encoded PNG image or error message

    Examples: plot_line_chart([1, 2, 3, 4], [1, 4, 9, 16], title="Squares") plot_line_chart([0, 1, 2], [0, 1, 4], color='red', x_label='Time', y_label='Distance')

  • plot_scatter_chart

    Create a scatter plot from data points (requires matplotlib).

    Args: x_data: X-axis data points y_data: Y-axis data points title: Chart title x_label: X-axis label y_label: Y-axis label color: Point color (name or hex code, e.g., 'blue', '#2E86AB') point_size: Size of scatter points (default: 50) ctx: FastMCP context for logging

    Returns: Dict with base64-encoded PNG image or error message

    Examples: plot_scatter_chart([1, 2, 3, 4], [1, 4, 9, 16], title="Correlation Study") plot_scatter_chart([1, 2, 3], [2, 4, 5], color='purple', point_size=100)

  • plot_box_plot

    Create a box plot for comparing distributions (requires matplotlib).

    Args: data_groups: List of data groups to compare group_labels: Labels for each group (optional) title: Chart title y_label: Y-axis label color: Box plot color (name or hex code, e.g., 'blue', '#2E86AB') ctx: FastMCP context for logging

    Returns: Dict with base64-encoded PNG image or error message

    Examples: plot_box_plot([[1, 2, 3, 4], [2, 3, 4, 5]], group_labels=['Group A', 'Group B']) plot_box_plot([[10, 20, 30], [15, 25, 35], [20, 30, 40]], color='green')

  • plot_financial_line

    Generate and plot synthetic financial price data (requires matplotlib).

    Creates realistic price movement patterns for educational purposes. Does not use real market data.

    Args: days: Number of days to generate (default: 30) trend: Market trend ('bullish', 'bearish', or 'volatile') start_price: Starting price value (default: 100.0) color: Line color (name or hex code, e.g., 'blue', '#2E86AB') ctx: FastMCP context for logging

    Returns: Dict with base64-encoded PNG image or error message

    Examples: plot_financial_line(days=60, trend='bullish') plot_financial_line(days=90, trend='volatile', start_price=150.0, color='orange')

  • matrix_multiply

    Multiply two matrices using NumPy.

    Args: matrix_a: First matrix (m x n) matrix_b: Second matrix (n x p)

    Returns: Result matrix (m x p)

    Raises: ValueError: If matrices have incompatible dimensions

    Examples: matrix_multiply([[1, 2], [3, 4]], [[5, 6], [7, 8]]) matrix_multiply([[1, 2, 3]], [[1], [2], [3]])

  • matrix_transpose

    Transpose a matrix (swap rows and columns).

    Args: matrix: Input matrix

    Returns: Transposed matrix

    Examples: matrix_transpose([[1, 2, 3], [4, 5, 6]]) # Returns [[1, 4], [2, 5], [3, 6]] matrix_transpose([[1, 2], [3, 4]])

  • matrix_determinant

    Calculate the determinant of a square matrix.

    Args: matrix: Square matrix (n x n)

    Returns: Determinant value

    Raises: ValueError: If matrix is not square

    Examples: matrix_determinant([[4, 6], [3, 8]]) # Returns 14 matrix_determinant([[1, 2], [2, 4]]) # Returns 0 (singular)

  • matrix_inverse

    Calculate the inverse of a square matrix.

    Args: matrix: Square matrix (n x n)

    Returns: Inverse matrix

    Raises: ValueError: If matrix is not square or is singular

    Examples: matrix_inverse([[4, 7], [2, 6]]) matrix_inverse([[1, 0], [0, 1]]) # Identity matrix

  • matrix_eigenvalues

    Calculate the eigenvalues of a square matrix.

    Args: matrix: Square matrix (n x n)

    Returns: List of eigenvalues (may be complex numbers)

    Raises: ValueError: If matrix is not square

    Examples: matrix_eigenvalues([[4, 2], [1, 3]]) matrix_eigenvalues([[3, 0, 0], [0, 5, 0], [0, 0, 7]]) # Diagonal matrix

استخدم MCP الخاص بـ Math Learning مع نماذج ذكاء اصطناعي متعددة

يربط TypingMind أدوات MCP على مستوى مساحة العمل، لذا بمجرد توصيل Math Learning، يمكنك استخدامه مع نماذج ذكاء اصطناعي مختلفة في TypingMind بدلًا من إعداده لكل نموذج على حدة. يتصل تكامل MCP هذا عبر عنوان URL لخادم MCP مستضاف عن بُعد في TypingMind.

أضف عنوان URL لخادم MCP

استخدم هذا الخيار عندما يكون Math Learning مستضافًا بالفعل عن بُعد أو عندما يريد فريقك موصلًا مشتركًا واحدًا يمكن لعدة مستخدمين الوصول إليه.

1

فتح موصلات MCP

في TypingMind، انتقل إلى «الإضافات»، وافتح «موصلات MCP»، ثم اختر «إضافة رابط».

  1. افتح TypingMind في متصفحك.
  2. انتقل إلى الإضافات.
  3. افتح موصلات MCP.
  4. انقر على «إضافة عنوان URL».
نموذج إضافة عنوان URL لخادم MCP مخصص في TypingMind
2

لصق عنوان URL للخادم

أدخل https://math-mcp.fastmcp.app/mcp في حقل «رابط الخادم». أضف اسمًا للاتصال أو وصفًا أو أيقونة أو ترويسات HTTP مخصصة أو إعدادات عميل OAuth إذا كان الخادم يتطلب ذلك.

  1. ألصق https://math-mcp.fastmcp.app/mcp في حقل «رابط الخادم».
  2. أدخل اسمًا لاتصال Math Learning.
  3. أضف وصفًا وأيقونة لتسهيل التعرّف على الاتصال إن أردت.
  4. أضف ترويسات HTTP مخصصة أو تفاصيل عميل OAuth إذا كان الخادم يتطلب المصادقة.
3

إنشاء الاتصال

انقر على «إنشاء اتصال»، ثم عُد إلى قائمة الإضافات وتأكد من أن اتصال MCP الجديد نشط.

  1. انقر على «إنشاء اتصال».
  2. عُد إلى قائمة موصلات MCP.
  3. تأكد من ظهور اتصال Math Learning بحالة «نشط».
  4. حدّث قائمة الإضافات إذا لم يظهر الاتصال فورًا.
4

تبديل النماذج دون إعادة الاتصال

ابدأ محادثة مع نموذجك المفضل، وفعّل أدوات Math Learning من «الإضافات»، وانتقل إلى نموذج آخر عند الحاجة. يظل اتصال MCP متاحًا في مساحة عمل TypingMind.

  1. ابدأ محادثة جديدة في TypingMind.
  2. اختر نموذج الذكاء الاصطناعي الذي تريد استخدامه.
  3. فعّل أدوات Math Learning من قسم الإضافات.
  4. اطلب من النموذج استخدام الأداة عند الحاجة.
  5. انتقل إلى نموذج ذكاء اصطناعي آخر وأعد استخدام اتصال MCP نفسه.
محادثة في TypingMind تستخدم أدوات MCP المفعّلة مع نموذج ذكاء اصطناعي محدّد
هل يمكنك استخدام Math Learning لمساعدتي في هذه المهمة؟
Math Learning
بالتأكيد. قرأته.
إليك ما وجدته باستخدام Math Learning.

الأسئلة الشائعة

ما استخدامات خادم MCP Math Learning؟

Math Learning هو خادم MCP يتيح لتطبيقات الذكاء الاصطناعي المتوافقة الاتصال بأدوات ومصادر سياق خارجية. في TypingMind، يمكنك إضافة خادم MCP هذا مرة واحدة وإتاحة أدواته في مساحة عملك للذكاء الاصطناعي.

هل يمكنني استخدام خادم MCP Math Learning مع نماذج ذكاء اصطناعي متعددة في TypingMind؟

نعم. يربط TypingMind أدوات MCP على مستوى مساحة العمل، لذا يمكنك استخدام Math Learning مع نماذج ذكاء اصطناعي مختلفة مثل Claude أو ChatGPT أو Gemini أو غيرها من النماذج التي أعددتها في TypingMind، دون إعداد خادم MCP لكل نموذج على حدة.

لماذا تستخدم موصل MCP Math Learning مع TypingMind؟

يُعد TypingMind من أفضل واجهات المحادثة مع النماذج اللغوية الكبيرة، إذ يجمع نماذج ذكاء اصطناعي متعددة ومطالبات وإضافات ووكلاء ذكاء اصطناعي ومفاتيح API وأدوات MCP في مساحة عمل واحدة. بعد توصيل Math Learning، يمكنك استخدام أدوات MCP الخاصة به عبر نماذجك المفضلة مع الحفاظ على سير عمل محادثاتك منظمًا في TypingMind.

كيف أوصّل خادم MCP Math Learning بـ TypingMind؟

يمكن توصيل Math Learning بـ TypingMind بإضافة عنوان URL لخادم MCP المستضاف الخاص به. يفيد ذلك عندما تريد اتصال MCP بعيدًا متاحًا من مساحة عملك في TypingMind.

ما الأدوات التي يوفّرها خادم MCP Math Learning في TypingMind؟

يتيح Math Learning أدوات MCP بعدد 17، يمكنك تفعيلها من صفحة الإضافات في TypingMind واستخدامها في المحادثات أو تعيينها لوكلاء ذكاء اصطناعي.

هل أحتاج إلى مشاركة مفاتيح API الخاصة بي مع TypingMind لاستخدام خادم MCP Math Learning؟

لا. يعطي TypingMind الأولوية للعمل المحلي ويُبقي مزوّدي النماذج ومفاتيح API والمطالبات وإعدادات MCP تحت تحكمك. إذا كان Math Learning يتطلب مصادقة، فأضف الترويسات أو إعدادات OAuth أو الإعدادات المحلية المطلوبة لخادم MCP هذا عند إنشاء الاتصال.

خوادم MCP ذات صلة

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا البريدية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇