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
POST https://graphingcalculator.usefulweb.site/api/v1/calculate– run Graphing CalculatorGET https://graphingcalculator.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
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.
| Field | Type | Default | Description |
|---|---|---|---|
mode | select (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. |
xMin | number | -10 | x min |
xMax | number | 10 | x max |
yMin | number | — | y min. Optional; automatic (asymptotes are clipped) when empty. |
yMax | number | — | y max. Optional. |
tMin | number | 0 | t min (parametric) |
tMax | number | 6.283185307179586 | t max (parametric). Default 2π. |
tableStep | number | — | Table step. Optional step for the table of values (default: a tenth of the range; at most 41 rows). |
analyze | boolean | true | Find roots, extrema and intersections |
png | boolean | true | Also 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)
- Streamable HTTP endpoint:
https://graphingcalculator.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
graphing_calculator - Local stdio connector:
node src/mcp-stdio.ts --tool=graphing-calculator
{
"mcpServers": {
"graphing-calculator": { "type": "http", "url": "https://graphingcalculator.usefulweb.site/mcp" }
}
}