Zod MCP Server

MCP server for deterministic mock generation and API contract scaffolding using Zod schemas

Local serverstdioTypeScript

What is the Zod MCP Server?

MCP server for deterministic mock generation and API contract scaffolding using Zod schemas

What it actually does

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.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
generate_valid_mockschema_code, count?
generate_mock_variantsschema_code, count?, seed?
generate_boundary_violationsschema_code
generate_exhaustive_union_violationsschema_code
introspect_schemaschema_code
read_schema_from_filefile_path, export_name?
detect_schema_driftzod_file_path, schema_export_name, openapi_file_path, openapi_schema_name?
evaluate_schema_evolutionschema_file_path, schema_export_name, old_schema_content?
scaffold_api_contract_testframework, base_url, endpoint, method, schema_code, test_name?
suggest_contract_fixschema_code, payload

How to install the Zod MCP Server

{
  "mcpServers": {
    "zod-forge": {
      "command": "zod-contract-mock-forge-mcp"
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Frequently asked questions

MCP server for deterministic mock generation and API contract scaffolding using Zod schemas Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.