procursorrules.com
RulesGenerateMCP ServersBlog
Sign In

Ready to enhance your cursor experience?

Join our community today and get access to exclusive cursor rules, resources, and connect with other cursor enthusiasts.

Get StartedLearn More
procursorrules.com

The home for Cursor enthusiasts where you can explore and generate rules, browse MCPs, post and follow the latest news, learn, connect, and discover jobs.

GitHubTwitter

Products

  • Cursor Rules
  • MCP Directory
  • Rule Generator

Resources

  • Cursor Documentation
  • Blog
  • Support

Frendlink

  • FluxKontext.biz
  • BG Remove Pro
  • Labubu Style Generator
  • LaunchVault
  • OG Generator
  • Just Simple Tools

Stay Updated

Subscribe to our newsletter to get the latest updates on cursor rules, tutorials, and community news.

By subscribing, you agree to our Terms and Privacy Policy.

  • Featured on findly.tools
  • Startup Benchmarks
  • Acid Tools
  • AIGC 160
  • AI Toolz
  • z-image.win
  • Launch Vault
  • Hunt for Tools
  • SaaS Field
  • SaaS Hub Directory
  • SaaS Roots
© 2026 Pro Cursor Rules. All rights reserved.
Terms of Service
Privacy Policy
About Us
Made withbySkyler Scofield
Calculator MCP | Model Context Protocol | Pro Cursor Rules
Back to MCPs
C

Calculator MCP

by ericvrp

Calculator MCP Server

A TypeScript-based MCP server that implements a robust calculator with precise decimal arithmetic. This server demonstrates core MCP concepts by providing arithmetic operations with support for multiple operands and configurable precision using Decimal.js.

Features

Tools

Arithmetic Functions

These functions take an array of at least two numbers and return a single numerical result.

  • add - Adds an array of numbers.
  • subtract - Subtracts numbers sequentially from the first.
  • multiply - Multiplies an array of numbers.
  • divide - Divides numbers sequentially. Handles division by zero.

Trigonometric Functions

These functions operate on arrays of numbers and return an array of results. The angles input requires at least one number.

  • Basic Trigonometry: sin, cos, tan
    • Input: angles (array of numbers), mode ('radians' or 'degrees', defaults to 'radians').
  • Inverse Trigonometry: asin, acos, atan
    • Input: values (array of numbers).
  • Hyperbolic Functions: sinh, cosh, tanh
    • Input: values (array of numbers).
  • Inverse Hyperbolic Functions: asinh, acosh, atanh
    • Input: values (array of numbers).

Miscellaneous

  • set_precision - Configures decimal precision for all subsequent calculations.
    • Takes precision parameter as the number of decimal places.

Development

Install dependencies:

bun install

Run the development server:

bun start

Installation as standalone MCP server

To use with Claude Desktop, add the server config:

On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json

*Configuration content*

Or for Cline VSCode extension, add a modified version of this to your MCP config file:

*Configuration content*

Installation using Docker

To run the MCP server using Docker, you should first build the image using:

docker build -t calculator-mcp .

Followed by adding this to the (Cline) MCP config file:

*Configuration content*

Debugging

Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:

bun run inspector

The Inspector will provide a URL to access debugging tools in your browser.

Statistics
Tools
0
Stars
0
Last Checked
9/8/2025
Quick Actions
View on GitHubView Author
Version Info

No version information available

SponsorsLaunch Vault
Launch VaultDiscover the best new startups
z-image.win
z-image.winFast & Free AI Image Generator