Skip to main content
Glama
rog0x
by rog0x

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

Install Server
A
license - permissive license
A
quality
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

  • A
    license
    A
    quality
    C
    maintenance
    Detects 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.
    11
    15
    MIT
  • A
    license
    Not graded
    quality
    A
    maintenance
    Enables AI assistants to generate TypeScript types, Zod schemas, TypeBox, and JSON Schema from any API endpoint or JSON.
    7
    MIT

View all related MCP servers

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)

View all MCP Connectors

Latest Blog Posts

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