API & MCP
Everything a person can do on OpenAPI Diff Explorer, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://openapidiffexplorer.usefulweb.site/api/v1/calculate– run OpenAPI Diff ExplorerGET https://openapidiffexplorer.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
OpenAPI Diff Explorer
Paste or link two OpenAPI 3.x (or Swagger 2) documents in JSON or YAML. Every operation, parameter, request body, response and schema property is compared (with $ref resolution), and each change is classified as breaking, potentially breaking or non-breaking, with the direction-aware rules API teams use (e.g. a new required request field breaks clients; a new response field does not; a new response enum value might).
| Field | Type | Default | Description |
|---|---|---|---|
oldSpec | textarea | — | Old spec (JSON or YAML) |
newSpec | textarea | — | New spec (JSON or YAML) |
oldUrl | url | — | Or: URL of the old spec |
newUrl | url | — | Or: URL of the new spec |
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://openapidiffexplorer.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
openapi_diff_explorer - Local stdio connector:
node src/mcp-stdio.ts --tool=openapi-diff-explorer
{
"mcpServers": {
"openapi-diff-explorer": { "type": "http", "url": "https://openapidiffexplorer.usefulweb.site/mcp" }
}
}