calc_expression
Mathematical Calculator
Safely evaluate mathematical expressions with support for basic operations and math functions. Supported operations: +, -, *, /, **, () Supported functions: sin, cos, tan, log, sqrt, abs, pow
expression必填
io.github.clouatre-labs由 GitHub 帳號 clouatre-labs 發布v0.12.5更新於 Oct 24, 2026
Educational MCP server with 17 math/stats tools, visualizations, and persistent workspace
一個教育用途的數學伺服器,為助理提供 17 個工具,用於計算、統計、矩陣、單位換算、繪圖和持久工作區。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。
閱讀 https://sourceweft.com/mcp/io.github.clouatre-labs%2Fmath-mcp-learning-server/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。把它新增到你客戶端的 mcpServers 設定中。
{
"mcpServers": {
"math-learning": {
"type": "http",
"url": "https://math-mcp.fastmcp.app/mcp"
}
}
}[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.
See CONTRIBUTING.md for instructions to record your own demo.
Connect your MCP client to the hosted server:
Claude Desktop (claude_desktop_config.json):
For other installation options (basic, scientific-only, plotting-only), see CONTRIBUTING.md.
math://workspace - Persistent calculation workspace summarymath://history - Chronological calculation historymath://functions - Available mathematical functions referencemath://constants/{constant} - Mathematical constants (pi, e, golden_ratio, etc.)math://catalog/tools - Tool catalog with metadata and usage examplesmath://variables - Active variables in the current workspacemath://test - Server health checkmath_tutor - Structured tutoring prompts (configurable difficulty)formula_explainer - Formula explanation with step-by-step breakdownsSee Usage Examples for detailed examples.
See CONTRIBUTING.md for development setup, testing, and contribution guidelines.
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.
來源:README.md,提交 4ceaf7d
Mathematical Calculator
Safely evaluate mathematical expressions with support for basic operations and math functions. Supported operations: +, -, *, /, **, () Supported functions: sin, cos, tan, log, sqrt, abs, pow
expression必填Statistical Analysis
Perform statistical calculations on a list of numbers. Available operations: mean, median, mode, std_dev, variance
numbers必填operation必填Compound Interest Calculator
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
rate必填time必填principal必填compounds_per_yearUnit Converter
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)
value必填to_unit必填from_unit必填unit_type必填Matrix Multiplication
Multiply two matrices (A × B).
matrix_a必填matrix_b必填Matrix Transpose
Transpose a matrix (swap rows and columns).
matrix必填Matrix Determinant
Calculate the determinant of a square matrix.
matrix必填Matrix Inverse
Calculate the inverse of a square matrix.
matrix必填Matrix Eigenvalues
Calculate the eigenvalues of a square matrix.
matrix必填Save Calculation to Workspace
Save calculation to persistent workspace (survives restarts).
name必填result必填expression必填Load Variable
Load previously saved calculation result from workspace.
name必填Function Plotter
Generate mathematical function plots (requires matplotlib).
x_range必填expression必填num_pointsStatistical Histogram
Create statistical histograms (requires matplotlib).
binsdata必填titleLine Chart
Create a line chart from data points (requires matplotlib).
colortitlex_data必填y_data必填x_labely_labelshow_gridScatter Plot
Create a scatter plot from data points (requires matplotlib).
colortitlex_data必填y_data必填x_labely_labelpoint_sizeBox Plot
Create a box plot for comparing distributions (requires matplotlib).
colortitley_labeldata_groups必填group_labelsFinancial Line Chart
Generate and plot synthetic financial price data (requires matplotlib). Creates realistic price movement patterns for educational purposes. Does not use real market data.
dayscolortrendstart_price已滿足適用檢查項的 90%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
請在儲存庫或註冊中心條目中宣告授權條款。
{ "mcpServers": { "math-cloud": { "transport": "http", "url": "https://math-mcp.fastmcp.app/mcp" } }}{ "mcpServers": { "math": { "command": "uvx", "args": ["math-mcp-learning-server[scientific,plotting]"] } }}