Skip to main content

Math MCP Server

A Model Context Protocol (MCP) server for mathematical calculations.

Features

  • Basic Calculations: Evaluate mathematical expressions
  • Equation Solving: Solve linear equations
  • Safe Evaluation: Secure expression parsing

Installation

Using npx (Recommended)

npx math-mcp-server

Using npm

npm install -g math-mcp-server
math-mcp-server

Usage

The server provides two tools:

1. calculate

Evaluate mathematical expressions:

{
  "name": "calculate",
  "arguments": {
    "expression": "2 + 3 * 4"
  }
}

2. solve_equation

Solve linear equations:

{
  "name": "solve_equation",
  "arguments": {
    "equation": "2x + 5 = 15"
  }
}

MCP Client Configuration

Add to your MCP client configuration:

{
  "mcpServers": {
    "math": {
      "command": "npx",
      "args": ["math-mcp-server"]
    }
  }
}

Development

git clone <your-repo>
cd math-mcp
npm install
npm run build
npm start

Metadata

Release files for math-mcp-server-testing 1.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for math-mcp-server-testing 1.0.5
File Size Uploaded
math_mcp_server_testing-1.0.5.tar.gz 9.9 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for math-mcp-server-testing 1.0.5
File Interpreter ABI Platform
math_mcp_server_testing-1.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 9.9 MB

Release files / math_mcp_server_testing-1.0.5.tar.gz

Download URL math_mcp_server_testing-1.0.5.tar.gz
Size 9.9 MB
Tags Source
SHA-256 checksum
How to use checksums
4681241fdc7327a5ebbe647887b22a53426c36710491a94ba7549c87565f189d
BLAKE2b-256 checksum
How to use checksums
7c92b72df67b49a8139a5a71cc4fde26a569b1549bd9737ac2e9c0ce6d431c45
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.0

Release files / math_mcp_server_testing-1.0.5-py3-none-any.whl

Download URL math_mcp_server_testing-1.0.5-py3-none-any.whl
Size 3.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
543a817acde8b5d8ab54ac7bd430aa02fd7f69e55c581e32b078af227c09bafc
BLAKE2b-256 checksum
How to use checksums
da99b6e5207ccd75ebe86b3c9cf121e114d8783cb9b73bfc69082334b133d34f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.0

Release history Release notifications | RSS feed

This release

1.0.5 This release

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page