# Calculator

> Use this tool when you need to evaluate mathematical expressions securely and efficiently. It solves problems requiring quick calculations, such as basic arithmetic operations and exponentiation, and provides a safe alternative to using eval() functions. The calculator takes mathematical expressions as input and returns the calculated results, making it ideal for workflows that require fast and secure calculations within a conversation interface.

Canonical page: https://skillsregistry.net/skills/hejie-calculator  
JSON: https://api.skillsregistry.net/v1/skills/hejie-calculator

## Description

MCP Server Calculator provides a simple mathematical expression evaluation service using Python's AST module for secure parsing and calculation. Built by He Jie, it exposes a single 'calculate' tool that safely evaluates mathematical expressions without using Python's built-in eval() function, supporting basic operations like addition, subtraction, multiplication, division, and exponentiation. The implementation uses FastMCP for server functionality and is packaged for easy installation via pip, making it ideal for workflows requiring quick calculations without leaving the conversation interface.

## Trust

- **Trust score (0–1):** 0.65
- **Verification tier:** scanned
- **Last scanned:** 2026-09-02

## Facts

- **Version:** 1.0.0
- **Skill type:** atomic
- **Execution layer:** mcp-remote
- **Runtime environment:** api
- **Category:** other
- **Updated:** 2026-09-02

## Source

- **Source listing:** [PulseMCP](https://www.pulsemcp.com/servers/hejie-calculator)
- **Repository:** <https://github.com/githejie/mcp-server-calculator>

## Use it

Resolve this record through the SkillsRegistry MCP server (no auth, read-only):

```
claude mcp add --transport http --scope user skillsregistry https://api.skillsregistry.net/mcp
```

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_skill",
    "arguments": {
      "slug": "hejie-calculator"
    }
  }
}
```

REST: `GET https://api.skillsregistry.net/v1/skills/hejie-calculator` · pull for local use: `GET https://api.skillsregistry.net/v1/skills/hejie-calculator/pull`

---
SkillsRegistry indexes agent skills from public registries and GitHub. Skills we have analysed are scanned with Circle-IR and scored on six dimensions; each listing states its scan coverage. More: https://skillsregistry.net/llms.txt
