Zod Contract Mock Forge MCP server
MCP server for deterministic mock generation and API contract scaffolding using Zod schemas
0 stars44 downloads/wk
Reviews
Write oneNobody has reviewed Zod Contract Mock Forge yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Zod Contract Mock Forge tools (10)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
detect_schema_driftCompare a Zod schema in a TypeScript file against an OpenAPI spec — finds silent divergence.
evaluate_schema_evolutionDetect breaking changes when a Zod schema is tightened — before tests run.
generate_boundary_violationsGenerate intentionally invalid payloads based on a Zod schema — for negative testing.
generate_exhaustive_union_violationsGenerate violation payloads for every branch of a z.union() or z.discriminatedUnion() schema.
generate_mock_variantsGenerate N structurally valid but value-diverse mocks from a Zod schema — for property-based testing.
generate_valid_mockGenerate valid mock data from a Zod schema string.
introspect_schemaConvert a Zod schema string to JSON Schema for LLM understanding.
read_schema_from_fileRead a Zod schema directly from a TypeScript or JavaScript file.
scaffold_api_contract_testGenerate an API contract test or mock boilerplate for Playwright, Jest, Vitest, or MSW.
suggest_contract_fixValidate a JSON payload against a Zod schema and suggest fixes for each violation.
Public scan report
scanner v0.1.9 · 2026-09-27 · same rubric, same numbers if you re-run it
- Code scan4 source files scanned8/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitylocal package, no credentials required12/15
- Maintenancelast push 131 days ago8/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
Findings (2)
- highShell command built from a string (injection risk)
exec.shell-concatdist/index.js: …FilePath)); const headContent = execSync(`git show HEAD:${relPath}`, { cwd: repoRoot }).toString()… - mediumeval / new Function used
exec.evaldist/index.js: … .trim(); const fn = new Function('z', `return ${cleanCode}`); con…
How Zod Contract Mock Forge compares
Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 55/100
- higher than 10% of 48,273 servers
- Tools
- 10
- the typical server has 7
- Tools that change things
- 0%
- typical: 0%. Fewer write tools means less an agent can break
- Downloads a week
- 44
- more than 38% of 11,915 servers with a package
What its tools let an agent do: 5 read · 4 create · 1 run or deploy
Install Zod Contract Mock Forge in Claude Code, Cursor or VS Code
Runs npx -y zod-contract-mock-forge-mcp on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add zod-contract-mock-forge-mcp -- npx -y zod-contract-mock-forge-mcp
What the publisher says
From the Zod Contract Mock Forge repository's README, as published. We do not edit it. Read it on GitHub
zod-contract-mock-forge-mcp
An MCP server that turns Zod schemas into mocks, violations, and contract tests — so your AI agent can reason about API contracts without manually crafting payloads.
The Problem
Zod schemas are runtime code. An AI agent cannot execute them, introspect their constraints, or generate valid/invalid payloads without this layer. The agent also cannot detect when the schema and the OpenAPI docs silently diverged, or whether a schema change breaks existing test fixtures.
Tools
Mock generation
Violation generation
Schema analysis
Contract testing
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Zod Contract Mock Forge: common questions
- Is Zod Contract Mock Forge MCP server safe?
- With care: it is graded C, so read the findings first (55/100). Read the Zod Contract Mock Forge safety report
- How do I install Zod Contract Mock Forge?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Zod Contract Mock Forge need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is Zod Contract Mock Forge maintained?
- The last commit was 167 days ago (2026-05-19). The latest release is v0.2.0.
- How does Zod Contract Mock Forge compare with other MCP servers?
- safety score 55/100 (higher than 10% of 48,273 servers); tools 10 (the typical server has 7); tools that change things 0% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.