loading…
Search for a command to run...
loading…
A mathematical utility server implementing the Model Context Protocol to provide tools for basic and advanced calculations. It enables users to perform operatio
A mathematical utility server implementing the Model Context Protocol to provide tools for basic and advanced calculations. It enables users to perform operations such as addition, subtraction, powers, square roots, and percentages through natural language.
A simple calculator server implementing the Model Context Protocol (MCP).
This MCP server provides the following calculator operations:
The easiest way is to use uvx which was just installed:
# Test the server directly
export PATH="$HOME/.local/bin:$PATH"
uvx --from . --with mcp calculator-mcp-server
If you prefer pip, install in a virtual environment:
# Create virtual environment
python -m venv venv
source venv/bin/activate
# Install dependencies
pip install git+https://github.com/modelcontextprotocol/python-sdk.git
# Run the server
python calculator_mcp_server.py
Add this to your Kiro MCP configuration file (.kiro/settings/mcp.json):
{
"mcpServers": {
"calculator": {
"command": "/Users/anshikagupta/.local/bin/uvx",
"args": ["--from", "/Users/anshikagupta/calculator", "--with", "mcp", "python", "calculator_mcp_server.py"],
"disabled": false,
"autoApprove": ["add", "subtract", "multiply", "divide", "power", "sqrt", "percentage"]
}
}
}
Once configured, you can use the calculator through Kiro:
Add two numbers together.
a (number), b (number){"a": 5, "b": 3} → "5 + 3 = 8"Subtract second number from first.
a (number), b (number){"a": 10, "b": 3} → "10 - 3 = 7"Multiply two numbers.
a (number), b (number){"a": 4, "b": 5} → "4 × 5 = 20"Divide first number by second.
a (number), b (number){"a": 20, "b": 4} → "20 ÷ 4 = 5"Raise base to exponent.
base (number), exponent (number){"base": 2, "exponent": 8} → "2^8 = 256"Calculate square root.
number (number, non-negative){"number": 144} → "√144 = 12"Calculate percentage of a number.
number (number), percent (number){"number": 500, "percent": 20} → "20% of 500 = 100"MIT
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"calculator-mcp-server": {
"command": "npx",
"args": []
}
}
}