math-mcp-server-testing
v1.0.0
Published
MCP server for mathematical calculations
Readme
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-serverUsing npm
npm install -g math-mcp-server
math-mcp-serverUsage
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