MathJS Calculator MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MathJS Calculator MCP Servercalculate 2 * (3 + 4)"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MathJS Calculator MCP Server
An MCP server implementation that provides mathematical calculation capabilities using the MathJS library.
Features
Evaluate mathematical expressions
Calculate derivatives of expressions
Handle complex mathematical operations
Provide clear error messages for invalid inputs
Related MCP server: Calculator MCP Server
Tools
calculate
Evaluates mathematical expressions and returns the result.
Inputs:
expression(string): The mathematical expression to evaluate
derivative
Calculates the derivative of a mathematical expression with respect to a variable.
Inputs:
expression(string): The mathematical expression to differentiatevariable(string): The variable to differentiate with respect to
Usage
The MathJS Calculator tool is designed for:
Evaluating mathematical expressions
Computing derivatives
Handling complex calculations
Providing clear feedback for calculation errors
Configuration
Usage with Claude Desktop
Add this to your claude_desktop_config.json:
npx
{
"mcpServers": {
"mathjs-calculator": {
"command": "npx",
"args": [
"-y",
"mathjs-mcp-server"
]
}
}
}Building and Testing
Build
To build the project:
npm install
npm run buildTesting with Inspector
To test the server with the MCP Inspector:
Open the MCP Inspector in another terminal:
npm run inspectorConnect to the server at
http://localhost:5173(default port)Test the available tools:
Use the "calculate" tool to evaluate expressions
Use the "derivative" tool to compute derivatives
Example Usage
// Calculate expression
{
"expression": "2 * (3 + 4)"
}
// Result: 14
// Calculate derivative
{
"expression": "x^2 + 2*x",
"variable": "x"
}
// Result: The derivative of x^2 + 2*x with respect to x is: 2*x + 2License
This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
- Flicense-qualityDmaintenanceEnables LLMs to perform accurate mathematical calculations by evaluating expressions using mathjs. Supports basic arithmetic, functions, constants, and complex mathematical operations through natural language requests.Last updated
- Flicense-qualityDmaintenanceProvides mathematical operation tools including basic arithmetic (add, subtract, multiply, divide), power and square root calculations, and safe evaluation of mathematical expressions.Last updated
- AlicenseBqualityAmaintenanceProvides secure mathematical computation capabilities including expression evaluation, symbolic math (derivatives, simplification), matrix operations, statistics, and unit conversion, with multi-tier acceleration through WebAssembly and WebWorkers for high-performance calculations.Last updated751ISC
- Alicense-qualityDmaintenanceEnables mathematical computation via Wolfram Language/Mathematica integration, supporting calculations, equation solving, calculus, matrix operations, and symbolic mathematics.Last updated12MIT
Related MCP Connectors
Evaluate, simplify, and differentiate mathematical expressions.
This MCP server enables users to perform scientific computations regarding linear algebra and vect…
Precision math engine for AI agents. 203 exact methods. Zero hallucination.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/edwardpwtsoi/mathjs-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server