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