Calc Mcp Server — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Calc Mcp Server (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
A simple Model Context Protocol (MCP) server that provides basic calculator operations as tools for Claude Desktop and other MCP clients.
All operations support integers, floating-point numbers, and negative numbers.
git clone https://github.com/snedea/calc-mcp-server.git
cd calc-mcp-serverpip install -r requirements.txtThis installs:
fastmcp>=2.0.0 - MCP frameworkpytest>=7.0.0 - Testing frameworkRun the server standalone to verify it works:
python3 calc_server.pyYou should see:
🧮 Calculator MCP Server Starting
📋 Available tools:
- add(a, b): Add two numbers
- subtract(a, b): Subtract b from a
- multiply(a, b): Multiply two numbers
- divide(a, b): Divide a by b (handles zero)
💡 Configure in Claude Desktop to use these tools!Press Ctrl+C to stop the server.
To use these calculator tools in Claude Desktop:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json{
"mcpServers": {
"calculator": {
"command": "python3",
"args": ["/absolute/path/to/calc-mcp-server/calc_server.py"]
}
}
}Important: Replace /absolute/path/to/calc-mcp-server/ with the actual full path to this directory.
The calculator tools will now be available! Claude can use them automatically when you ask questions involving calculations.
Add two numbers together.
Parameters:
a (float): First numberb (float): Second numberReturns: JSON with operation details and result
Example:
Input: add(5, 3)
Output: {
"operation": "add",
"a": 5,
"b": 3,
"result": 8
}Subtract the second number from the first.
Parameters:
a (float): Number to subtract fromb (float): Number to subtractReturns: JSON with operation details and result
Example:
Input: subtract(10, 3)
Output: {
"operation": "subtract",
"a": 10,
"b": 3,
"result": 7
}Multiply two numbers together.
Parameters:
a (float): First numberb (float): Second numberReturns: JSON with operation details and result
Example:
Input: multiply(4, 5)
Output: {
"operation": "multiply",
"a": 4,
"b": 5,
"result": 20
}Divide the first number by the second.
Parameters:
a (float): Numeratorb (float): DenominatorReturns: JSON with operation details and result, or error if dividing by zero
Example:
Input: divide(10, 2)
Output: {
"operation": "divide",
"a": 10,
"b": 2,
"result": 5
}
Input: divide(10, 0)
Output: {
"error": "Cannot divide by zero"
}Run the test suite to verify all operations work correctly:
pytest tests/test_calculator.py -vExpected output:
tests/test_calculator.py::TestAddition::test_add_positive_numbers PASSED
tests/test_calculator.py::TestAddition::test_add_negative_numbers PASSED
... (30+ tests)
================================ 30 passed in 0.XX s ================================All tests should pass, covering:
calc-mcp-server/
├── calc_server.py # Main MCP server with calculator tools
├── requirements.txt # Python dependencies
├── tests/
│ └── test_calculator.py # Comprehensive unit tests
├── README.md # This file
└── .gitignore # Git exclusionsargs path is absolute (not relative)python3 --versionpip show fastmcppip install -r requirements.txt python3 -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txtpip install pytestMCP (Model Context Protocol) is a standard for connecting AI assistants like Claude to external tools and data sources. This server:
@mcp.tool() to expose them via MCPClaude can then call these tools automatically when needed for calculations!
MIT
Contributions welcome! Feel free to:
🤖 Generated with Context Foundry - Autonomous Development Platform
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.