OpenAPI Zod MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
OpenAPI Zod MCP Server
Point an AI at an OpenAPI spec, pick an endpoint, and get a 100% correct Zod v4 schema written directly to disk. Zero hallucinations. Zero token costs.
Recorded with a half-full context window on a large project, using a weaker model β the agent is already under pressure, but the schema generation remains perfect.
π€― Why use this instead of just asking Claude/Cursor?
LLMs are notoriously bad at inferring strict Zod schemas. They hallucinate field names, mess up nesting, and introduce subtle type bugs that only surface at runtime. Furthermore, pasting a swagger file into chat eats up 5,000β20,000 input tokens, and generating the schema burns hundreds of output tokens.
openapi-zod-mcp bypasses the model entirely for codegen.
The LLM simply acts as an orchestrator. It triggers the MCP tool, and the tool deterministically parses the spec and writes the exact Zod schema directly to your disk. The schema never passes through the LLM token stream.
π The Guarantees
π« No Hallucinations: Deterministic parsing. Same spec + endpoint = identical output, every time.
πΈ Token-Free Generation: The LLM only sees
"success: wrote PetSchema...". Save thousands of tokens per session.β‘ Blazing Fast: Generates schemas in ~50β200ms (vs. 5β30+ seconds of LLM typing) β up to 600x faster.
π‘οΈ No
undefinedhell: Optional fields safely use.nullable().optional().default(null).π Fully Readonly: All objects and arrays carry
.readonly()by default.
Related MCP server: openapi-mcp-proxy
π Quick Start: MCP Usage (Recommended)
Integrate directly with Claude Desktop, Cursor, or any MCP-compatible client. The AI can browse your API specs via list_endpoints and write schemas via generate_schema.
Cursor / VS Code (.vscode/mcp.json)
{
"servers": {
"openapi-zod-mcp": {
"type": "stdio",
"command": "npx",
"args": ["openapi-zod-mcp"]
}
}
}Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
This server cannot be deployed
Maintenance
Related MCP Connectors
Generate a typed SDK, CLI, and MCP server from any OpenAPI or GraphQL spec, and keep them current.
Convert, lint and generate LLM tool schemas for OpenAI, Anthropic, Gemini and MCP
MCP server (stdio): lint OpenAPI specs with Spectral via the AgentForge API
Point Gecko at an OpenAPI spec; get first-call-correct, auth-hidden agent tools.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA MCP server that exposes OpenAPI schema information to LLMs like Claude. This server allows an LLM to explore and understand large OpenAPI schemas through a set of specialized tools, without needing to load the whole schema into the context50MIT
- AlicenseAqualityDmaintenanceAn MCP server that provides tools for exploring large OpenAPI schemas without loading entire schemas into LLM context. Perfect for discovering and analyzing endpoints, data models, and API structure efficiently.914MIT
- AlicenseNot gradedqualityDmaintenanceExposes OpenAPI specifications as MCP tools, enabling AI assistants to explore and understand API structures, endpoints, schemas, and documentation through semantic queries.25 npmMIT
- AlicenseAqualityBmaintenanceMCP server that helps AI agents explore OpenAPI specs, search endpoints, and generate TypeScript types.781 npm10MIT