๐งฎ Math & Calculator MCP Server
A powerful Model Context Protocol (MCP) Server that provides advanced mathematical utilities and calculator tools for AI assistants like Claude and other MCP-compatible clients.
๐ About
This MCP server exposes mathematical tools that AI assistants can use to perform calculations, statistical analysis, unit conversions, and more. Built with the Model Context Protocol SDK, it seamlessly integrates with Claude Desktop, VSCode, and other MCP clients.
Author: Jefferson Rosas Chambilla
Repository: https://github.com/Ankluna72/Math-Calculator-MCP-Server-
โจ Features
๐ข Basic Calculator
Addition, subtraction, multiplication, division
Power, square root, modulo operations
Error handling (division by zero, invalid operations)
๐ Statistical Analysis
Mean, median, mode
Standard deviation and variance
Complete statistical summaries
๐ Unit Conversions
Length: meters, kilometers, miles, feet, inches
Weight: kilograms, grams, pounds, ounces
Temperature: Celsius, Fahrenheit, Kelvin
๐ Equation Solver
Quadratic equation solver (axยฒ + bx + c = 0)
Handles real and complex solutions
Discriminant analysis
๐ฏ Percentage Calculator
Percentage of a number
Percentage increase/decrease
"What percentage is X of Y?"
๐ Trigonometry
Sin, cos, tan (and inverse functions)
Angle calculations in degrees
Precise floating-point results
๐ Installation
Prerequisites
Node.js >= 18.0.0
npm or yarn
Clone and Install
โ๏ธ Configuration
For Claude Desktop
Add to your Claude Desktop config file (claude_desktop_config.json):
Windows: %APPDATA%\Claude\claude_desktop_config.json
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
For VSCode with Cline Extension
Add to VSCode settings (.vscode/settings.json or User Settings):
๐ Usage Examples
Once configured, your AI assistant can use these tools automatically. Here are some example requests:
Basic Calculations
Statistics
Unit Conversions
Solve Equations
Percentages
Trigonometry
๐ ๏ธ Available Tools
Tool | Description |
| Basic arithmetic operations |
| Statistical analysis of number arrays |
| Convert between different units |
| Solve quadratic equations |
| Percentage calculations |
| Trigonometric functions |
๐ Project Structure
๐ง Development
๐งช Testing
You can test the server manually using stdio communication:
Then send MCP protocol messages via stdin to test tool execution.
๐ License
MIT License - see LICENSE file for details
๐ค Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Fork the repository
Create your feature branch (
git checkout -b feature/AmazingFeature)Commit your changes (
git commit -m 'Add some AmazingFeature')Push to the branch (
git push origin feature/AmazingFeature)Open a Pull Request
๐ง Contact
Jefferson Rosas Chambilla
GitHub: @Ankluna72
Repository: Math-Calculator-MCP-Server-
๐ Acknowledgments
Built with the Model Context Protocol SDK
Inspired by the need for mathematical tools in AI assistants
Thanks to Anthropic for developing the MCP standard
โญ If you find this project useful, please consider giving it a star on GitHub!