Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"calculator": {
"args": [
"--from",
"calculator-mcp-server@git+https://github.com/huhabla/calculator-mcp-server.git",
"--",
"calculator-mcp-server",
"--stdio"
],
"command": "uvx"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
This is a Model Context Protocol (MCP) server that provides Claude with advanced mathematical calculation capabilities, including symbolic math, statistical analysis, and matrix operations.
Run this in your terminal to verify the server starts. Then let us know if it worked — your result helps other developers.
uvx 'arguments' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
Checked arguments against OSV.dev.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in education / productivity
Dynamic problem-solving through sequential thought chains
Persistent memory using a knowledge graph
mini cli search engine for your docs, knowledge bases, meeting notes, whatever. Tracking current sota approaches while being all local
Local-first AI memory with knowledge graphs and hybrid search. 17+ AI tools via MCP. Free.
MCP Security Weekly
Get CVE alerts and security updates for Calculator Mcp Server and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
This is a Model Context Protocol (MCP) server that provides Claude with advanced mathematical calculation capabilities, including symbolic math, statistical analysis, and matrix operations.
The Mathematical Calculator MCP Server provides the following tools:
Clone the repository:
git clone https://github.com/huhabla/calculator-mcp-server.git
cd calculator-mcp-server
(Option 1) Setup with the provided script:
chmod +x setup_venv.sh
./setup_venv.sh
(Option 2) Or manually set up the virtual environment:
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
Run doc-tests to verify everything works:
bash run_doctests.sh
Add the server to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Add the following to the mcpServers section:
{
"mcpServers": {
"calculator": {
"command": "uvx",
"args": [
"--from",
"calculator-mcp-server@git+https://github.com/huhabla/calculator-mcp-server.git",
"--",
"calculator-mcp-server",
"--stdio"
]
}
}
}
Note: The --stdio flag is required for proper integration with Claude Desktop. The -- separates uvx arguments from the calculator server arguments.
Make sure you have uv installed (Installation Guide)
Install the MCP server in Claude Desktop:
fastmcp install calculator_server.py
Or with a custom name:
fastmcp install calculator_server.py --name "Math Calculator"
Once installed, Claude will automatically have access to all the mathematical tools and functions.
After integrating with Claude Desktop, you can ask Claude to perform various mathematical operations. Here are some examples:
Can you calculate 3.5^2 * sin(pi/4)?
Solve the following equation: x^2 - 5x + 6 = 0
What's the derivative of sin(x^2) with respect to x?
Calculate the integral of x^2 * e^x
Find the mean, median, mode, and standard deviation of this dataset: [23, 45, 12, 67, 34, 23, 18, 95, 41, 23]
Perform a linear regression on these points: (1,2), (2,3.5), (3,5.1), (4,6.5), (5,8.2)
Multiply these two matrices:
[1, 2, 3]
[4, 5, 6]
and
[7, 8]
[9, 10]
[11, 12]
Run the comprehensive doctest suite:
bash run_doctests.sh
For development and debugging, you can use the FastMCP development mode:
fastmcp dev calculator_server.py
This will start a local web interface where you can test all tools interactively.
This project is licensed under the MIT License - see the LICENSE file for details.