io.github.lazymac2x/api-contract-validator is an MCP server published by io.github.lazymac2x, hosted at api.lazy-mac.com. When last checked on 2026-11-21 it was working: it answers and lists its tools. It declares 5 tools, including validate_openapi_spec, diff_request_response, lint_api_schema, generate_mock_from_spec, check_breaking_changes.
Cloudflare Workers MCP server: api-contract-validator
160 connections through 5 shared values. Tap any node.
Validate an OpenAPI 3.x or AsyncAPI spec JSON. Returns structural errors, missing required fields, and warnings.
| Parameter | Type | Description |
|---|---|---|
| spec * | object | OpenAPI or AsyncAPI spec as a JSON object |
| strict | boolean | Treat warnings as errors (default: false) |
{
"name": "validate_openapi_spec",
"description": "Validate an OpenAPI 3.x or AsyncAPI spec JSON. Returns structural errors, missing required fields, and warnings.",
"inputSchema": {
"type": "object",
"required": [
"spec"
],
"properties": {
"spec": {
"type": "object",
"description": "OpenAPI or AsyncAPI spec as a JSON object"
},
"strict": {
"type": "boolean",
"default": false,
"description": "Treat warnings as errors (default: false)"
}
}
}
}None yet. Changes appear after a server's second daily check.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
Inferred from the host name and headers: what a server runs on, not who runs it.
Compare a real HTTP request/response against an OpenAPI spec contract. Returns per-field violations.
| Parameter | Type | Description |
|---|---|---|
| spec * | object | OpenAPI spec JSON object |
| request * | object | HTTP request to validate |
| response | object | HTTP response to validate (optional) |
{
"name": "diff_request_response",
"description": "Compare a real HTTP request/response against an OpenAPI spec contract. Returns per-field violations.",
"inputSchema": {
"type": "object",
"required": [
"spec",
"request"
],
"properties": {
"spec": {
"type": "object",
"description": "OpenAPI spec JSON object"
},
"request": {
"type": "object",
"required": [
"method",
"path"
],
"properties": {
"body": {
"type": "object",
"description": "Request body"
},
"path": {
"type": "string",
"description": "Request path (e.g. /users/123)"
},
"method": {
"type": "string",
"description": "HTTP method"
},
"params": {
"type": "object",
"properties": {
"path": {
"type": "object"
},
"query": {
"type": "object"
}
}
},
"contentType": {
"type": "string",
"description": "Content-Type (default: application/json)"
}
},
"description": "HTTP request to validate"
},
"response": {
"type": "object",
"properties": {
"body": {
"type": "object"
},
"statusCode": {
"type": "integer"
},
"contentType": {
"type": "string"
}
},
"description": "HTTP response to validate (optional)"
}
}
}
}Lint an API spec for quality and best practice compliance. Rules: operation-id-kebab-case, response-success-required, tags-defined, no-empty-description, security-defined.
| Parameter | Type | Description |
|---|---|---|
| spec * | object | OpenAPI spec JSON object |
| rules | array | Rules to apply (defaults to all) |
{
"name": "lint_api_schema",
"description": "Lint an API spec for quality and best practice compliance. Rules: operation-id-kebab-case, response-success-required, tags-defined, no-empty-description, security-defined.",
"inputSchema": {
"type": "object",
"required": [
"spec"
],
"properties": {
"spec": {
"type": "object",
"description": "OpenAPI spec JSON object"
},
"rules": {
"type": "array",
"items": {
"type": "string"
},
"description": "Rules to apply (defaults to all)"
}
}
}
}Generate mock response data from an OpenAPI spec. Uses examples, defaults, formats, and type heuristics.
| Parameter | Type | Description |
|---|---|---|
| path | string | Target path (optional; generates all if omitted) |
| spec * | object | OpenAPI spec JSON object |
| method | string | HTTP method (used with path) |
| statusCode | string | Response status code (default: 200) |
{
"name": "generate_mock_from_spec",
"description": "Generate mock response data from an OpenAPI spec. Uses examples, defaults, formats, and type heuristics.",
"inputSchema": {
"type": "object",
"required": [
"spec"
],
"properties": {
"path": {
"type": "string",
"description": "Target path (optional; generates all if omitted)"
},
"spec": {
"type": "object",
"description": "OpenAPI spec JSON object"
},
"method": {
"type": "string",
"description": "HTTP method (used with path)"
},
"statusCode": {
"type": "string",
"default": "200",
"description": "Response status code (default: 200)"
}
}
}
}Compare two OpenAPI spec versions to detect breaking changes: removed paths/operations, new required parameters, removed response codes, operationId renames.
| Parameter | Type | Description |
|---|---|---|
| spec_new * | object | New spec version |
| spec_old * | object | Previous spec version |
{
"name": "check_breaking_changes",
"description": "Compare two OpenAPI spec versions to detect breaking changes: removed paths/operations, new required parameters, removed response codes, operationId renames.",
"inputSchema": {
"type": "object",
"required": [
"spec_old",
"spec_new"
],
"properties": {
"spec_new": {
"type": "object",
"description": "New spec version"
},
"spec_old": {
"type": "object",
"description": "Previous spec version"
}
}
}
}Names, descriptions and schemas were written by the server and are shown as data.
Shared addresses on big platforms (Cloudflare, Vercel and the like) put unrelated servers together; those are marked shared_infrastructure. A match is a pivot, not a link between operators.