@Halfords Pro/Calculator
БесплатноНе проверенProvides precise decimal arithmetic and Excel-style rounding for accounting and tax calculations via MCP protocol.
Описание
Provides precise decimal arithmetic and Excel-style rounding for accounting and tax calculations via MCP protocol.
README
An MCP (Model Context Protocol) server providing calculator tools with precise decimal arithmetic, suitable for accounting and tax calculations.
Features
- Precise decimal arithmetic — uses decimal.js to avoid floating-point errors
- Excel-style rounding — round half away from zero (ROUND_HALF_UP), the standard for accounting and tax
- MCP protocol — integrates with any MCP-compatible client (Claude Desktop, Claude Code, etc.)
Installation
npm install -g @halfords-pro/calculator
Usage
Claude Desktop
Add to your Claude Desktop configuration (claude_desktop_config.json):
{
"mcpServers": {
"calculator": {
"command": "npx",
"args": ["-y", "@halfords-pro/calculator"]
}
}
}
Claude Code
claude mcp add calculator -- npx -y @halfords-pro/calculator
Tools
sum
Sum an array of signed decimal numbers and round the result to a specified number of decimal places.
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
values |
number[] |
Yes | Array of signed decimal numbers to sum |
decimalPlaces |
number |
Yes | Number of decimal places to round the result to |
Examples:
sum({ values: [1.00, -2.50, 3.89], decimalPlaces: 2 })
→ "2.39"
sum({ values: [1.00, -2.50, 3.89283829, -539.38390293], decimalPlaces: 4 })
→ "-536.9911"
sum({ values: [0.1, 0.2], decimalPlaces: 2 })
→ "0.30" (not 0.30000000000000004)
Rounding behaviour:
Uses "round half away from zero" (equivalent to Excel ROUND()):
| Value | Rounded to 2dp |
|---|---|
| 2.125 | 2.13 |
| -2.125 | -2.13 |
| 2.124 | 2.12 |
Development
# Install dependencies
npm install
# Build
npm run build
# Run tests
npm test
# Run tests with coverage
npm run test:coverage
# Launch MCP Inspector
npm run inspector
License
ISC
Установка @Halfords Pro/Calculator
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/halfords-pro/calculatorFAQ
@Halfords Pro/Calculator MCP бесплатный?
Да, @Halfords Pro/Calculator MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для @Halfords Pro/Calculator?
Нет, @Halfords Pro/Calculator работает без API-ключей и переменных окружения.
@Halfords Pro/Calculator — hosted или self-hosted?
Доступен hosted-вариант: Unyly запускает сервер в облаке, локальная установка не обязательна.
Как установить @Halfords Pro/Calculator в Claude Desktop, Claude Code или Cursor?
Открой @Halfords Pro/Calculator на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
GitHub
PRs, issues, code search, CI status
автор: GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
автор: mcpdotdirectCompare @Halfords Pro/Calculator with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development
