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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file math_mcp_server_testing-1.0.3.tar.gz.
File metadata
- Download URL: math_mcp_server_testing-1.0.3.tar.gz
- Upload date:
- Size: 9.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d599b964c09618aebd9372f7c480e2d8d22d14d99fa23e5553b3fa1f32b1b00
|
|
| MD5 |
60b946fe31103596316834233e7f6a83
|
|
| BLAKE2b-256 |
e72e3ea2bff3de3a381d3f5c8880db7039c6c6515002acfe700767b22e14164f
|
File details
Details for the file math_mcp_server_testing-1.0.3-py3-none-any.whl.
File metadata
- Download URL: math_mcp_server_testing-1.0.3-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cc55ba3d3b0883c992205fcf4811645afb34251cba156cbcd48228bbc6319d16
|
|
| MD5 |
dd36fea5e7e6e9858e075644b5fa77fd
|
|
| BLAKE2b-256 |
b62412da9a68336ea2dc5fe8dfbeea7df91ade4d2bab9f90c513cfcbc7645c84
|