CalculatorBLOCK
A Model Context Protocol (MCP) server that provides Claude with advanced mathematical calculation capabilities
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
This is a Model Context Protocol (MCP) server that provides Claude with advanced mathematical calculation capabilities, including symbolic math, statistical analysis, and matrix operations.
Features
The Mathematical Calculator MCP Server provides the following tools:
- Basic Calculations: Evaluate mathematical expressions safely
- Symbolic Mathematics:
- Solve equations (linear, quadratic, polynomial, etc.)
- Calculate derivatives of expressions
- Compute integrals of expressions
- Statistical Analysis:
- Mean, median, mode
- Variance, standard deviation
- Correlation coefficient
- Linear regression
- Confidence intervals
- Matrix Operations:
- Matrix addition
- Matrix multiplication
- Matrix transposition
Installation
Prerequisites
- Python 3.10+ (recommended: Python 3.11+)
- uv (recommended) or pip
- Claude Desktop app (to use the MCP server with Claude)
Installation Steps
- Clone the repository:
git clone https://github.com/huhabla/calculator-mcp-server.git cd calculator-mcp-server
- (Option 1) Setup with the provided script:
chmod +x setup_venv.sh ./setup_venv.sh
(Option 2) Or manually set up the virtual environment:
python3 -m venv venv source venv/bin/activate pip install -r requirements.txt
- Run doc-tests to verify everything works:
bash run_doctests.sh
Integration with Claude Desktop
Method 1: Configure in Claude Desktop
Add the server to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json
Add the following to the mcpServers section:
{
"mcpServers": {
"calculator": {
"command": "uvx",
"args": [
"--from",
"calculator-mcp-server@git+https://githuf2e5b0698868OBSERVED · 2026-10-08Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.
claude mcp add calculator-mcp-server -- uvx calculator-mcp-server
{
"mcpServers": {
"calculator-mcp-server": {
"command": "uvx",
"args": [
"calculator-mcp-server"
]
}
}
}Exposed tools (23)
23 read · 0 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
calculate | read | |
confidence_interval | read | |
correlation_coefficient | read | |
differentiate | read | |
expand | read | |
factorize | read | |
integrate | read | |
linear_regression | read | |
matrix_addition | read | |
matrix_determinant | read | |
matrix_multiplication | read | |
matrix_transpose | read | |
mean | read | |
median | read | |
mode | read | |
plot_function | read | |
solve_equation | read | |
standard_deviation | read | |
summation | read | |
variance | read | |
vector_cross_product | read | |
vector_dot_product | read | |
vector_magnitude | read |
Trust audit
BLOCKgrade D · trust 69/100 Do not install this without reading the findings. The audit found something that could harm you or your machine.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | FAIL |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- none-observed
- Shell
- declared (1 observation(s))
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (2)
result = eval(
fastmcp, numpy, scipy, sympy, pytest, pydantic
Gates applied: no_behavioural_pass.
f2e5b0698868full audit observations/trust-audit/mcp-server/huhabla__calculator-3.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-08 | f2e5b0698868 | BLOCK | D | 69 | first audit |
Questions
What is the Calculator MCP server?
A Model Context Protocol (MCP) server that provides Claude with advanced mathematical calculation capabilities
What tools does Calculator expose?
23 in total: 23 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Calculator safe to connect to an agent?
No — not without reading the findings first. The audit graded it D (69/100) and found 1 critical or high issue in the source. Each one is listed on this page with the file and line it is on.
What credentials does Calculator need?
No credential environment variables were found in its source, so it appears to need none.
How current is this page?
The grade is for one exact copy of the source (f2e5b0698868), read on 2026-10-08. The repository is watched and re-audited when it changes.