lazymac2x avatar

Api Contract Validator

lazymac2x/api-contract-validator-api

This is a Cloudflare Workers-based validator that checks API responses against predefined contracts or schemas. The repository is minimal without much documentation, but the setup suggests it runs as a hosted MCP endpoint rather than a local integration. You'd reach for this when you need to verify that external APIs are returning data in the expected shape, especially useful for catching breaking changes or validating third-party integrations. Since it's deployed on Cloudflare's edge network, validation happens close to users with low latency. The streamable HTTP transport means Claude can call it directly without local setup, though you'll want to check the actual validation methods and supported schema formats before relying on it for production workflows.

tools
5
transport
HTTP
last updated
May 16, 2026

Install

From registry metadata
$ npx add-mcp https://api.lazy-mac.com/api-contract-validator/mcp --name api-contract-validator

Run in your terminal. add-mcp asks which agents to add it to (Claude Code, Codex, Cursor and more). Add -g to install it for every project.

Review the command, arguments and environment values before installing. MCP servers run with your local permissions.

Other ways

Claude Code

$ claude mcp add --transport http api-contract-validator https://api.lazy-mac.com/api-contract-validator/mcp

Run in your terminal. Add --scope user to make it available in every project.

Tools

Verified live · 5 tools

Verified live against the running server on Nov 6, 2026.

validate_openapi_specValidate an OpenAPI 3.x or AsyncAPI spec JSON. Returns structural errors, missing required fields, and warnings.2 params

Validate an OpenAPI 3.x or AsyncAPI spec JSON. Returns structural errors, missing required fields, and warnings.

Parameters* required
spec*object
OpenAPI or AsyncAPI spec as a JSON object
strictboolean
Treat warnings as errors (default: false)default: false
diff_request_responseCompare a real HTTP request/response against an OpenAPI spec contract. Returns per-field violations.3 params

Compare a real HTTP request/response against an OpenAPI spec contract. Returns per-field violations.

Parameters* required
request*object
HTTP request to validate
responseobject
HTTP response to validate (optional)
spec*object
OpenAPI spec JSON object
lint_api_schemaLint an API spec for quality and best practice compliance. Rules: operation-id-kebab-case, response-success-required, tags-defined, no-empty-description, security-defined.2 params

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.

Parameters* required
rulesarray
Rules to apply (defaults to all)
spec*object
OpenAPI spec JSON object
generate_mock_from_specGenerate mock response data from an OpenAPI spec. Uses examples, defaults, formats, and type heuristics.4 params

Generate mock response data from an OpenAPI spec. Uses examples, defaults, formats, and type heuristics.

Parameters* required
methodstring
HTTP method (used with path)
pathstring
Target path (optional; generates all if omitted)
spec*object
OpenAPI spec JSON object
statusCodestring
Response status code (default: 200)default: 200
check_breaking_changesCompare two OpenAPI spec versions to detect breaking changes: removed paths/operations, new required parameters, removed response codes, operationId renames.2 params

Compare two OpenAPI spec versions to detect breaking changes: removed paths/operations, new required parameters, removed response codes, operationId renames.

Parameters* required
spec_new*object
New spec version
spec_old*object
Previous spec version

Sponsors

Readme

Details

Repository
github.com/lazymac2x/api-contract-validator-api
Category
Cloud & Infrastructure
Transport
HTTP
Registry
MCP registry, active
Tools verified
Nov 6, 2026

More from lazymac2x

Related Cloud & Infrastructure MCP servers

View all
1lazymac2x avatarApi Diff Monitorlazymac2x/api-diff-monitor-apiCloudflare Workers MCP server: api-diff-monitor0stars
2lazymac2x avatarApi Flow Analyzerlazymac2x/api-flow-analyzer-apiCloudflare Workers MCP server: api-flow-analyzer0stars
3lazymac2x avatarApi Payload Auditorlazymac2x/api-payload-auditor-apiCloudflare Workers MCP server: api-payload-auditor0stars
4lazymac2x avatarApi Request Deduplicatorlazymac2x/api-request-deduplicator-apiCloudflare Workers MCP server: api-request-deduplicator0stars
5lazymac2x avatarApi Response Cost Analyzerlazymac2x/api-response-cost-analyzer-apiCloudflare Workers MCP server: api-response-cost-analyzer0stars
6lazymac2x avatarApi Schema Drift Detectorlazymac2x/api-schema-drift-detector-apiCloudflare Workers MCP server: api-schema-drift-detector0stars