drio
Open app

Mathematical Calculator MCP Server

Source

A Model Context Protocol (MCP) server that provides Claude with advanced mathematical calculation capabilities

Catalog onlyCatalog onlySTDIO

Overview

The Mathematical Calculator MCP Server is a Model Context Protocol (MCP) server that provides advanced mathematical calculation capabilities, including symbolic math, statistical analysis, and matrix operations.

To use the server, clone the repository, set up the environment, and integrate it with the Claude Desktop app to access various mathematical tools.

  • Basic calculations for evaluating mathematical expressions. - Symbolic mathematics for solving equations, calculating derivatives, and computing integrals. - Statistical analysis tools for mean, median, mode, variance, and linear regression. - Matrix operations including addition, multiplication, and transposition.
  1. Performing complex mathematical calculations.
  2. Solving equations and analyzing statistical data.
  3. Conducting matrix operations for data analysis.

Add to your AI client

Use these steps to connect Mathematical Calculator MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "calculator-mcp-server-huhabla": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-calculator-mcp-server-huhabla"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "calculator-mcp-server-huhabla": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-calculator-mcp-server-huhabla"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "calculator-mcp-server-huhabla": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-calculator-mcp-server-huhabla"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "calculator-mcp-server-huhabla": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-calculator-mcp-server-huhabla"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "calculator-mcp-server-huhabla": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-calculator-mcp-server-huhabla"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "calculator-mcp-server-huhabla": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-calculator-mcp-server-huhabla"
      ]
    }
  }
}

FAQ

Can I use this server for all types of math?

Yes! It supports a wide range of mathematical operations including basic math, statistics, and matrix calculations.

Is there a cost to use the server?

No, the server is free to use and open-source.

What are the prerequisites for installation?

You need Python 3.10+, and the Claude Desktop app for integration.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":2601,"uuid":"1a6f4d0d-6dd6-4013-8d12-12f33f98ce08","name":"calculator-mcp-server","title":"Mathematical Calculator MCP Server","description":"A Model Context Protocol (MCP) server that provides Claude with advanced mathematical calculation capabilities","avatar_url":"https://avatars.githubusercontent.com/u/10548365?v=4","created_at":"2025-03-13T09:03:40.292Z","updated_at":"2025-03-13T09:41:00.395Z","status":"created","author_name":"huhabla","author_avatar_url":"https://avatars.githubusercontent.com/u/10548365?v=4","tags":"mathgpt,math-solver,math-assistant","category":"research-and-data","is_featured":false,"sort":1,"url":"https://github.com/huhabla/calculator-mcp-server","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"0\",\"license\":\"MIT license\",\"language\":\"Python\",\"is_official\":false,\"latest_commit_time\":\"2025-03-11 01:30:54\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]