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.2.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.2-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for math_mcp_server_testing-1.0.2.tar.gz
Algorithm Hash digest
SHA256 78ebd1184c7caef0f7ff8443812785f88ee871307126eafc569e78648fc14f99
MD5 de9f4b753a3124928fb37d19fdebb8c1
BLAKE2b-256 d881af451b034aa91e963fac313b2ba2383f91f7528bd1dc7c0bfbc6ce51df36

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for math_mcp_server_testing-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ae5de906c22eaf9e1e776ed0a4cdca7f4c656be5e0a946ec0b9531dfbb04e505
MD5 3465416387e7df2cb99143e46db1290a
BLAKE2b-256 6a12440aa8e09bfba9265c7544c5a965832134ac2539958893beb48a43db7306

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