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.1.tar.gz (3.8 kB 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.1-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for math_mcp_server_testing-1.0.1.tar.gz
Algorithm Hash digest
SHA256 d3f25a4e5fa4dd592f2582700c7d0ba7bc0e0e37335cc54eded79ccc6a969915
MD5 e3b0a6507d65114f0c8f07698f6157bc
BLAKE2b-256 6a492589efba87ed0f5ee05542f22020f1f30251c5db83149c3e923133f4b86a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for math_mcp_server_testing-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0d7e9a6263323e1bc64d155d260cbe85da7ae3344fde6082a540469c056f9ce3
MD5 6e6c3b1055ec319969eea9da9a61d3c4
BLAKE2b-256 14c82f2a0b123a5dd77685b6d178ed9813f5822cca31374d24b4c27e56967342

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