Skip to main content

MCP server for mathematical calculations

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

math_mcp_server_testing-1.0.3.tar.gz (9.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

math_mcp_server_testing-1.0.3-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file math_mcp_server_testing-1.0.3.tar.gz.

File metadata

File hashes

Hashes for math_mcp_server_testing-1.0.3.tar.gz
Algorithm Hash digest
SHA256 1d599b964c09618aebd9372f7c480e2d8d22d14d99fa23e5553b3fa1f32b1b00
MD5 60b946fe31103596316834233e7f6a83
BLAKE2b-256 e72e3ea2bff3de3a381d3f5c8880db7039c6c6515002acfe700767b22e14164f

See more details on using hashes here.

File details

Details for the file math_mcp_server_testing-1.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for math_mcp_server_testing-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 cc55ba3d3b0883c992205fcf4811645afb34251cba156cbcd48228bbc6319d16
MD5 dd36fea5e7e6e9858e075644b5fa77fd
BLAKE2b-256 b62412da9a68336ea2dc5fe8dfbeea7df91ade4d2bab9f90c513cfcbc7645c84

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page