Universal schema compiler (SQL/Prisma to Zod, TypeScript, Pydantic) and realistic synthetic mock API data generator for MCP.
⚡ Schema Bridge MCP Server & CLI
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
> **Model Context Protocol (MCP) Server & CLI for Instant Schema Conversion & Mock API Generation.**
> Effortlessly compile SQL DDL, Prisma schemas, and JSON into **Zod validation schemas**, **TypeScript interfaces**, and **Python Pydantic v2 models**, plus generate **synthetic mock datasets** in seconds.
---
🌟 Why Schema Bridge?
Converting database schemas into API validation rules, TypeScript types, and synthetic testing data is repetitive, tedious, and error-prone.
schema-bridge-mcp gives **Claude Desktop**, **Cursor**, **Command Code**, and **Cline** native superpowers to automate schema translations and mock generation on demand.
---
🚀 Quick Setup (MCP Stdio)
1. Cursor (.cursor/mcp.json)
2. Claude Desktop (claude_desktop_config.json)
---
🛠️ MCP Tools Exposed
| Tool | Parameters | Description |
| :--- | :--- | :--- |
| schema_convert | source_schema: string, target_format: 'zod' \| 'typescript' \| 'pydantic' | Ingests SQL DDL (CREATE TABLE), Prisma schemas, or JSON and converts to production Zod schemas, TypeScript types, or Pydantic v2 models. |
| schema_generate_mock | source_schema: string, count?: number | Generates realistic, contextual synthetic mock datasets (UUIDs, names, emails, dates, prices, statuses) strictly respecting your field types. |
| schema_validate | payload: string, schema: string | Compares runtime JSON payloads against database schemas and flags missing fields or mismatched types instantly. |
---
💻 Standalone Terminal CLI Usage
---
📦 Pro Distribution & Power Bundle
* 🔄 **Download Compiled Zero-Config Bundle on Gumroad** ($5.00+ Pay-What-You-Want)
* 🎮 **Download on itch.io** ($5.00+ Pay-What-You-Want)
* 🎁 **Get the 2-in-1 AI Developer Power Bundle** (Includes schema-bridge-mcp + mcp-smart-git at 20% off)
---
📄 License