mathjs-mcp
An MCP server implementation that provides mathematical calculation capabilities using the MathJS library
Overview
MathJS Calculator MCP Server is an implementation that provides mathematical calculation capabilities using the MathJS library, allowing users to evaluate expressions and compute derivatives.
To use the server, you can send requests to evaluate mathematical expressions or calculate derivatives by providing the necessary inputs in JSON format.
- Evaluate mathematical expressions - Calculate derivatives of expressions - Handle complex mathematical operations - Provide clear error messages for invalid inputs
- Evaluating complex mathematical expressions for quick results.
- Computing derivatives for calculus problems.
- Assisting in educational settings for math-related queries.
Add to your AI client
Use these steps to connect mathjs-mcp in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"mathjs-mcp-edwardpwtsoi": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mathjs-mcp-edwardpwtsoi"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"mathjs-mcp-edwardpwtsoi": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mathjs-mcp-edwardpwtsoi"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"mathjs-mcp-edwardpwtsoi": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mathjs-mcp-edwardpwtsoi"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"mathjs-mcp-edwardpwtsoi": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mathjs-mcp-edwardpwtsoi"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mathjs-mcp-edwardpwtsoi": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mathjs-mcp-edwardpwtsoi"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mathjs-mcp-edwardpwtsoi": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mathjs-mcp-edwardpwtsoi"
]
}
}
}FAQ
Can this server handle all types of mathematical expressions?
Yes! It can evaluate a wide range of mathematical expressions and perform complex calculations.
Is there a limit to the complexity of expressions?
While it can handle many expressions, extremely complex or poorly formatted expressions may result in errors.
How do I integrate it with my application?
You can integrate it by configuring your application to use the MCP server as described in the documentation.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":3226,"uuid":"1ff7af1e-ee71-4ac7-8829-8bd69c069db6","name":"mathjs-mcp","title":"mathjs-mcp","description":"An MCP server implementation that provides mathematical calculation capabilities using the MathJS library","avatar_url":"","created_at":"2025-03-18T07:31:10.484Z","updated_at":"2025-03-19T08:44:22.205Z","status":"created","author_name":"edwardpwtsoi","author_avatar_url":null,"tags":"mathgpt,math-solver,math-assistant","category":"research-and-data","is_featured":false,"sort":1,"url":"https://www.npmjs.com/package/mathjs-mcp-server","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":null,"user_uuid":"05f6966e-b12a-4eaa-9902-45528309d865","tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]