@halfords-pro/calculator
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@@halfords-pro/calculatorSum 19.99, 4.99, and 8.50 to 2 decimal places"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@halfords-pro/calculator
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.)
Related MCP server: Accounting Ledger MCP Server
Installation
npm install -g @halfords-pro/calculatorUsage
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/calculatorTools
sum
Sum an array of signed decimal numbers and round the result to a specified number of decimal places.
Parameters:
Name | Type | Required | Description |
|
| Yes | Array of signed decimal numbers to sum |
|
| 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 inspectorLicense
ISC
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceProvides basic arithmetic operations and advanced mathematical functions through the Model Context Protocol (MCP), with features like calculation history tracking and expression evaluation.Last updated1
- Flicense-qualityDmaintenanceProvides double-entry accounting ledger creation, transaction recording, and financial reporting capabilities via MCP.Last updated
- AlicenseAqualityAmaintenancePure-Python MCP server for type-faithful calculation — evaluate expressions under fixed-point, IEEE-754 double, or exact rational arithmetic, with every answer labelled with its precision (exact vs inexact).Last updated51GPL 3.0
- Alicense-qualityDmaintenanceAn MCP server and CLI providing business, financial, and tax calculations including math expressions, income tax estimates, loan amortization, depreciation, and more.Last updated2MIT
Related MCP Connectors
A paid remote MCP for hosted MCP server, built to return verdicts, receipts, usage logs, and audit-r
A paid remote MCP for Decapod, built to return verdicts, receipts, usage logs, and audit-ready JSON.
Brazilian fiscal MCP server - issue NF-e, NFC-e, NFS-e, CT-e, MDF-e and DC-e via SEFAZ.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/halfords-pro/calculator'
If you have feedback or need assistance with the MCP directory API, please join our Discord server