Skip to main content
Glama
schema-tools
by rog0x

mcp-schema-tools

AI 에이전트를 위한 스키마 검증 및 생성 도구를 제공하는 MCP 서버입니다.

도구

generate_json_schema

샘플 JSON 데이터에서 JSON Schema를 생성합니다. 타입, 필수 필드, 형식(이메일, 날짜, URI, UUID)을 추론하고 여러 예제에서 enum 패턴을 감지합니다.

generate_typescript

JSON 데이터 또는 JSON Schema에서 TypeScript 인터페이스와 타입을 생성합니다. 중첩 객체, 배열, 선택적 필드, enum, 유니온 타입을 처리합니다.

validate_schema

JSON Schema에 대해 데이터를 검증하고 JSON 경로, 예상 타입, 실제 값, 위반된 제약 조건 키워드를 포함한 상세한 오류 메시지를 제공합니다.

mock_from_schema

JSON Schema에서 현실적인 목 데이터를 생성합니다. 스마트 필드 이름 감지를 통해 상황에 맞는 값을 생성합니다: 이메일 필드는 유효한 이메일을, 이름 필드는 현실적인 이름을, 전화 필드는 형식화된 번호를 받는 식입니다.

diff_schemas

두 JSON Schema를 비교하여 추가, 제거, 변경된 필드를 찾습니다. 타입 변경, 제약 조건 변경을 식별하고 각 차이를 하위 호환성 분석을 위해 호환 여부(breaking/non-breaking)로 분류합니다.

Related MCP server: apitype

설정

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

Available Tools

5 tools
diff_schemasA

Compare two JSON Schemas and identify all differences: added/removed/changed fields, type changes, constraint changes (min/max, patterns, enums). Classifies each change as breaking or non-breaking for backwards compatibility analysis.

Inputs: new_schema (required), old_schema (required).

generate_json_schemaA

Generate a JSON Schema from one or more sample JSON values. Infers types, required fields, formats (email, date, URI, UUID), and detects enum patterns from multiple examples.

Inputs: samples (required), title, detect_enums.

generate_typescriptA

Generate TypeScript interfaces and types from JSON data or a JSON Schema. Handles nested objects, arrays, optional fields, enums, union types, and Record types.

Inputs: json, schema, root_name.

mock_from_schemaA

Generate realistic mock data from a JSON Schema. Uses smart field-name detection to produce contextual values: email fields get valid emails, name fields get realistic names, dates get ISO strings, etc. Supports all JSON Schema types and constraints.

Inputs: schema (required), seed, count.

validate_schemaA

Validate data against a JSON Schema. Returns detailed error messages with JSON path, expected type, actual value, and the violated keyword (type, required, format, pattern, minimum, etc.).

Inputs: data (required), schema (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 5 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: generation from data, generation from schema, validation, mocking, and diffing. No overlap or ambiguity between tool responsibilities, so an agent should reliably select the correct tool for a given task.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern (generate_, validate_, mock_, diff_). The verbs are specific and descriptive, and the noun consistently refers to the primary artifact (schema or types). No mixed conventions or vague naming.

    Tool Count5/5

    With exactly 5 tools covering the core schema lifecycle, the count is tight and focused. Each tool earns its place, and the number is within the ideal range for a utility server without being overly minimal or bloated.

    Completeness5/5

    The set covers the major schema operations: creating schemas from data, generating types for coding, validating data, generating mocks, and comparing schemas for evolution. Together they form a coherent, end-to-end toolkit with no obvious dead ends or missing critical operations.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      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
      21 npm
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI assistants to generate TypeScript types, Zod schemas, TypeBox, and JSON Schema from any API endpoint or JSON.
      2 npm
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables schema conversion from SQL/Prisma/JSON to Zod, TypeScript, and Pydantic, and generates realistic synthetic mock data.
      3
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables validating JSON/JSONC, getting/setting values with jq-like paths, pretty-printing or minifying, validating against Ajv JSON Schema, and diffing local files or inline strings without network calls.
      8
      MIT