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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for math_mcp_server_testing-1.0.4.tar.gz
Algorithm Hash digest
SHA256 101077c8810a4d75090668fd733e94cdee63155c864288e2b385d3de3422b0b1
MD5 ceb199fc75eafc79c33f3a817ee7aac8
BLAKE2b-256 6d268d8141ed5914aa4a48fcf50f85ee02a0fa167ccb145a7b416b355a3b4157

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for math_mcp_server_testing-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2c094ec70d619d3cc9dc164f3bff4b81d1b054a03747004c30c22c4672712cce
MD5 956e59cf6d94740a42997fbecf9e99ac
BLAKE2b-256 64b43e544d4bca4bba867f9f1a0aeb33fd9e05b9f15a3ab0347470915ff827ed

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