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.5.tar.gz (9.9 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.5-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for math_mcp_server_testing-1.0.5.tar.gz
Algorithm Hash digest
SHA256 4681241fdc7327a5ebbe647887b22a53426c36710491a94ba7549c87565f189d
MD5 656573451f1ae64d7c9dc8af247097df
BLAKE2b-256 7c92b72df67b49a8139a5a71cc4fde26a569b1549bd9737ac2e9c0ce6d431c45

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for math_mcp_server_testing-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 543a817acde8b5d8ab54ac7bd430aa02fd7f69e55c581e32b078af227c09bafc
MD5 30877179eafa5ac87e540cdbe0d891bf
BLAKE2b-256 da99b6e5207ccd75ebe86b3c9cf121e114d8783cb9b73bfc69082334b133d34f

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