Calculator MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Calculator MCP ServerConvert 100 degrees Fahrenheit to Celsius"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Calculator MCP Server (Python)
A feature-rich Model Context Protocol (MCP) server for mathematical calculations, scientific functions, unit conversions, financial metrics, and statistical analysis.
Built with Python 3.10+, the official mcp SDK (FastMCP), and sympy. Supports both stdio (Claude Desktop) and sse (Claude Web / Remote HTTP Connectors) transport modes.
🚀 Features & Exposed Tools
evaluate_math_expression: Evaluates custom mathematical expressions safely using SymPy (e.g.2 * (3 + 4),sqrt(144) + sin(pi / 2),log(100, 10),5^3).perform_arithmetic: Basic arithmetic (add,subtract,multiply,divide) on arrays of numbers.scientific_calculation: Powers, roots (sqrt,cbrt), factorials, logarithms (log,ln), and trigonometric functions (sin,cos,tan).convert_unit: Physical unit conversions (Length, Mass/Weight, Temperature, Volume, Time).financial_calculator: Simple interest, Compound interest, Loan EMI calculations, and Percentages.calculate_statistics: Summary statistics (mean,median,mode,variance,stdev,summary).
Related MCP server: MCP Mathematics
📦 Installation & Setup
Install Dependencies:
pip install -r requirements.txt pip install -e .Run Automated Unit Tests:
pytest
💻 1. Connecting to Claude Desktop (Stdio Mode)
Your claude_desktop_config.json has been automatically created at:
C:\Users\ADMIN\AppData\Roaming\Claude\claude_desktop_config.json
{
"mcpServers": {
"calculator": {
"command": "C:\\Users\\ADMIN\\AppData\\Local\\Programs\\Python\\Python312\\python.exe",
"args": [
"-m",
"calculator_mcp.server"
],
"env": {
"PYTHONPATH": "E:/mcp tutorials"
}
}
}
}Usage in Claude Desktop:
Fully exit and restart Claude Desktop.
Open a chat and look for the 🔨 (hammer/tools icon) at the bottom right of the message bar.
Ask Claude: "What is sqrt(144) + sin(pi / 2)?" or "Convert 100 degC to degF".
🌐 2. Connecting to Claude Web & Remote Web Clients (SSE HTTP Mode)
To run the Calculator MCP as a web HTTP service (for web-based platforms, web connectors, or remote AI agents):
Start the SSE Web Server:
python -m calculator_mcp.server --transport sse --port 8000Web Client Configuration:
{ "mcpServers": { "calculator-web": { "serverUrl": "http://localhost:8000/sse" } } }Public Tunneling for Remote Web Apps (Optional): If your web client (like remote Claude Web) is hosted outside your local network, expose port 8000 using
ngrokorlocaltunnel:npx localtunnel --port 8000 # Or using ngrok: ngrok http 8000Then use the generated public HTTPS URL:
https://<your-subdomain>.loca.lt/ssein your Web MCP connector configuration.
🔍 Interactive Testing via Web Interface (MCP Inspector)
You can launch the official Model Context Protocol interactive Web Inspector UI to visually test all tools in your browser:
mcp dev calculator_mcp/server.pyOr via Node:
npx @modelcontextprotocol/inspector@0.4.1 python -m calculator_mcp.serverThis server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceA comprehensive MCP server that enables file operations, mathematical calculations with unit conversions, and system information retrieval. Provides secure access to local file system, calculator functions with statistics, and system monitoring capabilities.7ISC
- AlicenseCqualityCmaintenanceA comprehensive MCP server that turns any AI assistant into a powerful mathematical computation engine, providing 52 advanced functions, 158 unit conversions, financial calculations, and secure AST-based evaluation.1813MIT
- AlicenseAqualityDmaintenanceA symbolic mathematics MCP server supporting calculus, linear algebra, number theory, statistics, and unit conversion via natural language.8MIT
- Flicense-qualityDmaintenanceA comprehensive MCP server providing basic and advanced math operations (addition, subtraction, statistics, etc.) as well as smart prompts for multiplication tables, equation solving, financial calculations, geometry, unit conversion, loan amortization, probability, and fitness analytics.1
Related MCP Connectors
This MCP server enables users to perform scientific computations regarding linear algebra and vect…
Educational MCP server with 17 math/stats tools, visualizations, and persistent workspace
Hosted MCP server for business-day math, deadline planning, meeting overlap, and SLA calculations.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Michaelndegwa1/mcp-tutorials'
If you have feedback or need assistance with the MCP directory API, please join our Discord server