Scientific calculator MCP server with 43 tools: arithmetic, trig, stats, unit conversion.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
A powerful scientific calculator for your AI assistant, built as a Model Context Protocol (MCP) server. Cruncher allows compatible AI clients (like Claude Desktop) to perform complex mathematical calculations, handle memory, perform statistical analysis, and access scientific constants with a simple, secure, and standardized interface.
Cruncher is built as a highly educational, extremely lightweight tool. It accomplishes powerful features without pulling in any heavy external libraries (no mathjs, no zod, no @modelcontextprotocol/sdk). Everything is handled using native Node.js capabilities:
mathjs or dangerous eval(), Cruncher uses new Function() guarded by a strict whitelist Regex that guarantees only numbers and math operators can pass.worker_threads to spawn calculations. If an AI requests a multi-million loop factorial, the main thread easily terminates the worker after a strict timeout (default 3 seconds). This timeout is configurable via the CRUNCHER_TIMEOUT environment variable (in milliseconds), ensuring the server remains responsive even during heavy computational loads.decimal.js, it solves the classic JS math error (0.1 + 0.2 = 0.30000000000000004) via dynamic integer-scaling logic under the hood.This project serves as an excellent learning resource for developers looking to understand the Model Context Protocol (MCP) deeply. Because it deliberately avoids using the official @modelcontextprotocol/sdk, the entire implementation of the MCP protocol, JSON-RPC message handling, input validations, and error formatting is exposed in plain JavaScript.
Reading through cruncher.js provides unparalleled, transparent insight into exactly how an MCP server communicates over stdio, parses incoming requests (initialize, tools/list, tools/call), and responds back to the AI client-demystifying the "magic" that SDKs usually hide away.
The Model Context Protocol (MCP) is an open standard that allows AI applications to securely connect with external data sources and tools. Think of it as a universal API for AI. By implementing Cruncher as an MCP server, any AI that understands MCP can instantly gain powerful, built-in calculator capabilities without custom integrations.
Cruncher provides a comprehensive set of calculator functions built completely from scratch without heavy dependencies:
worker_threads with a 3-second strict timeout to prevent complex calculations from freezing the server.0.1 + 0.2 === 0.3).minimal, standard default, full) to optimize context token usage.(5 + 3) * 10 / 2).a^b), Square Root.asin), Arccosine (acos), and Arctangent (atan) (with support for degrees and radians).pi, e, tau, phi, sqrt2, euler_mascheroni), Physics (c, g, G, h, k, R), and Chemistry constants (NA, e_charge, m_e, m_p).M+, M-, MR (Memory Recall), and MC (Memory Clear) - full tier only.Get Cruncher up and running with Claude Desktop in just a few minutes.
Ensure you have Node.js (version 18.0.0 or newer) installed on your system. You can download it from nodejs.org.
Recommended: Install via npm and use directly:
This downloads and runs the latest version automatically.
Recommended: Use the npm package for automatic updates:
If you prefer to download the file manually instead:
Download the cruncher.js file directly from GitHub.
Place it in a permanent location (e.g., C:\mcp-servers\cruncher.js or /home/user/mcp-servers/cruncher.js).
Locate the Claude Desktop configuration file:
%APPDATA%\Claude\claude_desktop_config.json~/Library/Application Support/Claude/claude_desktop_config.jsonAdd the server configuration pointing to your downloaded file:
Note for macOS/Linux Users: Use a POSIX-style path, e.g.,
"/home/YOUR_USERNAME/mcp-servers/cruncher.js". Make sure yournodeexecutable is in your system's PATH.
OpenWebUI natively supports connecting to stdio MCP servers.
Option A: Using npm package
npx, set Args to @slbdn/cruncher-mcp.Option B: Using downloaded file
node as the command, and /path/to/cruncher.js as the argument.You can give Cursor's built-in AI the ability to run math and calculate hashes.
Option A: Using npm package
command, Name to cruncher, and Command to npx @slbdn/cruncher-mcp.Option B: Using downloaded file
command, Name to cruncher, and Command to node /path/to/cruncher.js.If you use Cline for agentic coding in VS Code, open the MCP configuration file (cline_mcp_settings.json) and add:
Option A: Using npm package
Option B: Using downloaded file
Goose is a lightweight, terminalβbased AI assistant that fully supports MCP.
Option A: Using npm package
~/.goose/config.yaml (or the local project config).Option B: Using downloaded file
~/.goose/config.yaml (or the local project config).evaluate_expression or median directly.Zed's builtβin AI pane supports MCP connections.
Option A: Using npm package
crunchernpx@slbdn/cruncher-mcpNo reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/cruncher)<a href="https://allmcps.com/mcp/cruncher"><img src="https://allmcps.com/api/badge/cruncher?style=directory" alt="Cruncher on AllMCPs" /></a>