Atlas / MCP servers / huhabla / Calculator

CalculatorBLOCK

mcp/huhabla/calculator-3

A Model Context Protocol (MCP) server that provides Claude with advanced mathematical calculation capabilities

Verdict
BLOCK
Grade
D
Trust score
69 /100
Exposed tools
23 23r · 0w · 0d
Transport
—
License
MIT
Stars
63
01

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

  1. Clone the repository:
git clone https://github.com/huhabla/calculator-mcp-server.git
cd calculator-mcp-server
  1. (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
  1. 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://githu
Read from source at commit f2e5b0698868OBSERVED · 2026-10-08
Advertisement
02

Connect

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-code
claude mcp add calculator-mcp-server -- uvx calculator-mcp-server
claude-desktop
{
  "mcpServers": {
    "calculator-mcp-server": {
      "command": "uvx",
      "args": [
        "calculator-mcp-server"
      ]
    }
  }
}
03

Exposed tools (23)

23 read · 0 write · 0 destructive.

ToolRiskDescription
calculateread
confidence_intervalread
correlation_coefficientread
differentiateread
expandread
factorizeread
integrateread
linear_regressionread
matrix_additionread
matrix_determinantread
matrix_multiplicationread
matrix_transposeread
meanread
medianread
moderead
plot_functionread
solve_equationread
standard_deviationread
summationread
varianceread
vector_cross_productread
vector_dot_productread
vector_magnituderead
04

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.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codeFAIL
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfacePASS
L4Behavioural (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)

HIGHCode injection · code.eval_exec · CWE-78, CWE-94, CWE-95
calculator_server.py:109
result = eval(
Why it matters. evaluates text as code
Fix. remove; use a parser or a dispatch table
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
requirements.txt
fastmcp, numpy, scipy, sympy, pytest, pydantic
Why it matters. 6 requirement(s) not pinned with ==
Fix. pin exact versions

Gates applied: no_behavioural_pass.

Audited 2026-10-08 · audit v0.4.1 · source sha f2e5b0698868full audit observations/trust-audit/mcp-server/huhabla__calculator-3.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-10-08f2e5b0698868BLOCKD69first audit
06

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.

Advertisement