API & MCP

Everything a person can do on Graphing Calculator, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Graphing Calculator

Graphs y = f(x) for up to six functions (or parametric curves x(t), y(t)) over the range you choose, lists the roots, local minima and maxima and the intersection points numerically, prints a table of values and offers the graph as SVG and PNG downloads.

Inputs of Graphing Calculator
FieldTypeDefaultDescription
modeselect (functions, parametric)"functions"Graph type
functions (required)textarea—Functions (one per line). Functions: "y = x^2 - 2" or just "x^2 - 2". Parametric: "cos(t), sin(t)" per line. Up to 6 lines.
xMinnumber-10x min
xMaxnumber10x max
yMinnumber—y min. Optional; automatic (asymptotes are clipped) when empty.
yMaxnumber—y max. Optional.
tMinnumber0t min (parametric)
tMaxnumber6.283185307179586t max (parametric). Default 2π.
tableStepnumber—Table step. Optional step for the table of values (default: a tenth of the range; at most 41 rows).
analyzebooleantrueFind roots, extrema and intersections
pngbooleantrueAlso create a PNG download

Example request

Sine and a parabola

curl -X POST https://graphingcalculator.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"functions":"y = sin(x)\ny = x^2/4 - 1","xMin":-5,"xMax":5}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "graphing-calculator": { "type": "http", "url": "https://graphingcalculator.usefulweb.site/mcp" }
  }
}