Newton Math
liveScienceReferenceCompute derivatives, integrals, simplifications, and factorizations of algebraic expressions via the Newton API
4tools
0msauth
free tier50 calls/day
Tools
simplifyrequired: expressionSimplify a mathematical expression (e.g., "2^2+2(2)" → "8"). Supports standard algebraic notation.
Parameters
NameTypeDescription
expressionreqstringMathematical expression to simplify (e.g., "2^2+2(2)", "x^2+2x+1")Try it
Response
deriverequired: expressionCompute the derivative of a mathematical expression with respect to x (e.g., "x^2" → "2 x")
Parameters
NameTypeDescription
expressionreqstringExpression to differentiate (e.g., "x^2", "sin(x)", "x^3+2x^2+x")Try it
Response
integraterequired: expressionCompute the indefinite integral of a mathematical expression with respect to x (e.g., "x^2" → "(1/3)x^3")
Parameters
NameTypeDescription
expressionreqstringExpression to integrate (e.g., "x^2", "cos(x)", "x^3+x")Try it
Response
factorrequired: expressionFactor a polynomial expression (e.g., "x^2-1" → "(x-1)(x+1)", "x^2+3x+2" → "(x+1)(x+2)")
Parameters
NameTypeDescription
expressionreqstringPolynomial expression to factor (e.g., "x^2-1", "x^2+3x+2")Try it
Response
Test with curl
The gateway speaks JSON-RPC 2.0 over HTTP POST. You can test any pack directly from the terminal.
List available tools
bash
curl -X POST https://gateway.pipeworx.io/newton/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'Call a tool
bash
curl -X POST https://gateway.pipeworx.io/newton/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"simplify","arguments":{"expression": "x^2 + 2x"}}}'Use with the SDK
Install @pipeworx/sdk to call tools from any TypeScript/Node project.
TypeScript
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("simplify", {"expression":"example"});ask_pipeworx
// Or ask in plain English:
const answer = await px.ask("compute derivatives, integrals, simplifications, and factorizations of algebraic expressions via the newton api");