1. Conduid
  2. Science
  3. Mathjs MCP Server
MCP server · Science

Mathjs MCP Server

An MCP server for parsing and calculating mathematical expressions using mathjs

37Low

Scored 6 months ago · breakdown

About Mathjs MCP Server

Mathjs MCP Server is an MCP server in the Science category: an MCP server for parsing and calculating mathematical expressions using mathjs.

Install

Claude Code
claude mcp add mathjs-mcp-server -- npx -y mathjs-mcp-server
npx
npx -y mathjs-mcp-server

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about Mathjs MCP Server

Powered by Claude · Grounded in docs

I know everything about Mathjs MCP Server. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.

5 checks have not been run yet.

README

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

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 differentiate
  • variable (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 build

Testing with Inspector

To test the server with the MCP Inspector:

  1. Open the MCP Inspector in another terminal:
npm run inspector
  1. Connect to the server at http://localhost:5173 (default port)

  2. 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 + 2

License

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.

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About Mathjs MCP Server

How do I install Mathjs MCP Server?

Run claude mcp add mathjs-mcp-server -- npx -y mathjs-mcp-server, then add the server to your MCP client's configuration.

Is Mathjs MCP Server safe to use with an AI agent?

Its trust score is 37 out of 100 (low). It passes 1 of the 1 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Mathjs MCP Server still maintained?

Conduid hasn't recorded a commit date for this repository yet. Check the repository directly for recent activity.