schema-tools
mcp-schema-tools
为 AI 代理提供 Schema 验证和生成工具的 MCP 服务器。
工具
generate_json_schema
从示例 JSON 数据生成 JSON Schema。推断类型、必填字段、格式(email、date、URI、UUID),并从多个示例中检测枚举模式。
generate_typescript
从 JSON 数据或 JSON Schema 生成 TypeScript 接口和类型。处理嵌套对象、数组、可选字段、枚举和联合类型。
validate_schema
根据 JSON Schema 验证数据,并提供详细的错误消息,包括 JSON 路径、预期类型、实际值以及违反的约束关键字。
mock_from_schema
从 JSON Schema 生成逼真的模拟数据。智能字段名检测可生成上下文相关的值:email 字段获得有效的电子邮件地址,name 字段获得逼真的姓名,phone 字段获得格式化号码,等等。
diff_schemas
比较两个 JSON Schema,找出新增、删除和更改的字段。识别类型更改、约束更改,并将每个差异分类为破坏性变更或非破坏性变更,以进行向后兼容性分析。
Related MCP server: mock-mcp
设置
npm install
npm run build与 Claude Desktop 配合使用
添加到你的 claude_desktop_config.json:
{
"mcpServers": {
"schema-tools": {
"command": "node",
"args": ["path/to/mcp-schema-tools/dist/index.js"]
}
}
}许可证
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityCmaintenanceDetects schema mismatches between data producers and consumers through static analysis, supporting extraction, comparison, code generation, and automated validation with watch mode for MCP tools, APIs, and service contracts.1115MIT
- AlicenseAqualityCmaintenanceGenerates schema-compliant mock data from OpenAPI JSON Schema definitions using AI, enabling seamless testing without manual fixtures.6229MIT
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to generate TypeScript types, Zod schemas, TypeBox, and JSON Schema from any API endpoint or JSON.7MIT
- FlicenseNot gradedqualityBmaintenanceValidates OpenAPI documents, JSON Schemas, and JSON payloads. Also compares OpenAPI specs and displays breaking changes.
Related MCP Connectors
Generate a typed SDK, CLI, and MCP server from any OpenAPI or GraphQL spec, and keep them current.
Deploy production REST APIs from JSON schemas in seconds. Manage projects, schemas, and deployments.
JSON Schema catalog (SchemaStore.org)
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/rog0x/mcp-schema-tools'
If you have feedback or need assistance with the MCP directory API, please join our Discord server