Specwise MCP Server
Check API contracts with a coding agent: validate OpenAPI documents, diff versions for breaking changes, and validate JSON Schemas and data.
Validate OpenAPI documents (
validate_openapi): pass a spec as text/object or a localspec_path; get every error with JSON Pointer, line and column, plus lint warnings (OpenAPI 3.0/3.1/3.2 and Swagger 2.0).Diff OpenAPI versions (
diff_openapi): compare two OpenAPI 3.x documents given as text, files, or a file against a git ref; each change is classified as breaking, warning, non-breaking or info, with abreakingflag and a semver suggestion.Validate JSON Schemas and data (
validate_json_schema): check a schema against its meta-schema (drafts 4, 6, 7, 2019-09, 2020-12, or auto from$schema) and optionally validate an instance against it, with instance path, schema path and line details.Track quota: responses include
quota_remainingwhen the marketplace reports it, and errors explain key refusal, quota limits, or bad input with next steps.Use local files safely: files are read only when a path is given, restricted to .yaml/.yml/*.json inside the working directory (or
SPECWISE_MCP_ROOT), and uploaded only for that request.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Specwise MCP Server check openapi.yaml for breaking changes against main"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Specwise MCP server
Let your coding agent check an API contract: validate an OpenAPI document, find the breaking changes between two versions (also against git), and validate JSON Schemas and data.
The server is open source (MIT). It calls the Specwise API, which is paid, with a free plan.
You use your own key, from RapidAPI or api.market.
Every tool call is one request on your plan.
The free Basic plan has 15 requests a month, with a hard limit, so it never runs up a bill.
1. Get a key
Related MCP server: OpenAPI Contract Guard MCP
2. Add the server to your MCP client
The server runs locally over stdio with uv. Put your key in its environment.
JSON configuration (Claude Desktop, Cursor, VS Code and most clients):
{
"mcpServers": {
"specwise": {
"command": "uvx",
"args": ["--from", "bytestay-specwise-mcp", "specwise-mcp"],
"env": { "RAPIDAPI_KEY": "your-rapidapi-key" }
}
}
}Claude Code:
claude mcp add specwise --env RAPIDAPI_KEY=your-rapidapi-key -- uvx --from bytestay-specwise-mcp specwise-mcpEnvironment
variable | meaning |
| your RapidAPI key |
| your api.market key, used when |
|
|
Up to 0.2.7 the setting was HFL_MARKETPLACE. The old name still works, with a one-line notice on stderr.
Without a key the server still starts. The first tool call then explains where to get one.
Also listed on Glama:
3. Tools
tool | what it does |
| every error with its JSON Pointer, line and column, plus lint warnings (OpenAPI 3.x and Swagger 2.0) |
| each change between two OpenAPI 3.x versions is breaking, warning, non-breaking or info, with a semver suggestion |
| checks the schema against its meta-schema and, if given, the data against the schema |
diff_openapi takes the two versions in one of three ways:
baseandrevisionas text;base_pathandrevision_pathas files;revision_pathwithbase_git_ref. For example, after editing a spec:revision_path="openapi.yaml", base_git_ref="main".
Every tool returns the API's JSON response.
When the marketplace reports it,
quota_remainingis added: the requests left on your plan this month.Errors are explained in plain words, with what to do next:
key refused, with the link to subscribe;
quota reached, with the plans;
input the API couldn't process, with the API's reason.
Privacy
Local files are read only when a tool is given their path, and are uploaded to the API for that one request. Only files inside the working directory (or the folder in
SPECWISE_MCP_ROOT) are read, symlinks that leave it are refused, and only*.yaml,*.ymland*.jsonare accepted.The API processes inputs in memory and doesn't store them. See the privacy policy.
Your key is only sent to the marketplace you chose.
Limits
Documents up to about 900 KiB each.
External
$refs are not fetched. Bundle multi-file specs first (redocly bundle).The diff needs OpenAPI 3.x; Swagger 2.0 can be validated, not diffed.
The server needs Python 3.10+ (uv installs it for you).
Development
uv venv && uv pip install -e ".[dev]"
.venv/bin/pytest # unit tests, no network; 100% coverage required
.venv/bin/ruff check src tests scriptsscripts/e2e_stdio.py specwise runs the server over stdio, as a client would, and calls its tools against the real API. It needs RAPIDAPI_KEY or API_MARKET_KEY.
History
Formerly Hybrid Forge Lab. This repository continues hybridforgelab/specwise-mcp under the ByteStay name since November 2026, so the older commits come from there.
Licence
MIT. Specwise itself is a paid API with a free plan, run by ByteStay.
Available Tools
3 toolsdiff_openapiARead-onlyIdempotent
Compare two OpenAPI 3.x documents. Each change is breaking, warning, non-breaking or info; breaking says
whether any is breaking, and semver suggests the version bump.
Typical use after editing a spec: revision_path="openapi.yaml", base_git_ref="main".
Inputs: base, revision, base_path, base_git_ref, +1 more.
validate_json_schemaARead-onlyIdempotent
Check a JSON Schema against its meta-schema and, if given, validate data against it. Every error has the instance path, the schema path and, for text input, the line.
Inputs: draft, schema, instance, schema_path, +1 more.
validate_openapiARead-onlyIdempotent
Validate an OpenAPI 3.0/3.1/3.2 or Swagger 2.0 document. Returns every error (not just the first) with its JSON Pointer, line and column, plus lint warnings.
Inputs: spec, spec_path.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool targets a clearly distinct artifact and action: validating OpenAPI documents, diffing two OpenAPI documents, and validating JSON Schema (optionally with data). The two validation tools split cleanly along the OpenAPI vs JSON Schema boundary, so an agent can select without confusion.
All three names are snake_case verb_noun (validate_openapi, diff_openapi, validate_json_schema) and the noun unambiguously identifies the target format. The verb set is small and used consistently.
Three tools is a tight, well-scoped surface for a spec validation/diff server where every tool earns its place. It is on the thin side — a single additional capability would make it feel more complete without being heavy.
Core validation and diffing are covered, including error locations and semver guidance, but common spec workflow operations are absent: dereferencing/bundling, format conversion (Swagger 2.0 to OpenAPI 3.x), and lint-only or fix modes. Agents can still work around these gaps, but lifecycle coverage is partial.
Maintenance
Related MCP Connectors
Detect breaking changes, generate changelogs, diff, and validate OpenAPI specs.
Deterministic validation for AI-generated artifacts: JSON Schema, OpenAPI response, SQL syntax.
Validate OpenAPI and JSON Schema, convert specs, curl to code, JSONPath, and free test data.
Convert, lint and generate LLM tool schemas for OpenAI, Anthropic, Gemini and MCP
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceValidates OpenAPI documents, JSON Schemas, and JSON payloads. Also compares OpenAPI specs and displays breaking changes.-
- AlicenseAqualityDmaintenanceEnables AI clients to validate OpenAPI specs, compare versions, detect breaking changes, and generate changelogs.4MIT
- AlicenseBqualityBmaintenanceLocal OpenAPI contract checks and breaking-change detection between spec versions for AI coding agents.2295 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables agents to analyze OpenAPI contracts for deterministic integration risks, plan auth, sync, action, and webhook candidates, and diff contract versions for likely breaking changes through read-only tools.MIT