pypi math-mcp-learning-serverstreamable-httpupdated 7d ago
Educational MCP server with 17 tools, persistent workspace, and cloud hosting. Built with FastMCP and the official Model Context Protocol Python SDK .
Math MCP Learning 能做什么?
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 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 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
安装
把 Math MCP Learning 添加到你的客户端。选择你正在使用的那个。
{
"servers": {
"math-mcp-learning-server": {
"type": "http",
"url": "https://math-mcp.fastmcp.app/mcp"
}
}
}Add to `.vscode/mcp.json` in your workspace.
claude mcp add math-mcp-learning-server -- uvx math-mcp-learning-servercodex mcp add math-mcp-learning-server -- uvx math-mcp-learning-serveramp mcp add math-mcp-learning-server -- uvx math-mcp-learning-server{
"mcpServers": {
"math-mcp-learning-server": {
"command": "uvx",
"args": [
"math-mcp-learning-server"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"math-mcp-learning-server": {
"command": "uvx",
"args": [
"math-mcp-learning-server"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
{
"mcpServers": {
"math-mcp-learning-server": {
"command": "uvx",
"args": [
"math-mcp-learning-server"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"math-mcp-learning-server": {
"command": "uvx",
"args": [
"math-mcp-learning-server"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"math-mcp-learning-server": {
"command": "uvx",
"args": [
"math-mcp-learning-server"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"math-mcp-learning-server": {
"type": "local",
"command": "uvx",
"args": [
"math-mcp-learning-server"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"math-mcp-learning-server": {
"command": {
"path": "uvx",
"args": [
"math-mcp-learning-server"
]
}
}
}
}Add to your Zed `settings.json`.
uvx math-mcp-learning-serverRun `goose configure`, choose **Add Extension → Command-line Extension**, and paste this command.
评分
78 / 100
良好
- 文档25/25
- 维护25/25
- 可信度6/20
- 能力7/15
- 安装体验15/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 0 days ago
- Has a release history
- Repository is not archived
- No licence detected
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 0 tool(s) documented
- Provides prompt templates
- Provides resources
- 18 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint — no local install
版本历史
| 版本 | 发布于 |
|---|---|
| 0.12.5最新 | 2026年9月1日 |
| 0.12.3 | 2026年8月2日 |
| 0.12.1 | 2026年4月2日 |
| 0.12.0 | 2026年4月1日 |
| 0.11.5 | 2026年3月30日 |
| 0.11.4 | 2026年3月19日 |
| 0.11.3 | 2026年2月23日 |
| 0.11.2 | 2026年2月19日 |
| 0.11.1 | 2026年2月16日 |
| 0.11.0 | 2026年2月16日 |
| 0.10.3 | 2025年12月16日 |
| 0.9.1 | 2025年12月10日 |