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.0.tar.gz (3.6 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.0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for math_mcp_server_testing-1.0.0.tar.gz
Algorithm Hash digest
SHA256 392157bbffda54b3fd31c1fe04bea099b1731a7c5f8869cee030d5b1ebede4c7
MD5 569f8fe89da1a0a91ffe751343dfa506
BLAKE2b-256 d564c45befd3f0077e02d21d2e9e250ae053910150eeee5504973f3bc60cadfa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for math_mcp_server_testing-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 223856561fe7bfee4289ecfd220beb0f26cb16eeee77a1d1926633a869180c51
MD5 0b7f2f5ec3aca7f10dee24f55414ca57
BLAKE2b-256 d2ed834f570d8336f49288acb23a5c154cb9da52f573816907b14a7b9b7beabb

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