Skip to content
MCP server

JSON Schema Tools

Validate JSON against a schema with Ajv, infer schemas from samples and diff two schemas

Runs locallyStatus and history
Install
Pricing
Open source
Platforms
CLI, Linux, macOS
Runs
Locally
Version
0.3.0
Listing updated
2 days ago

About JSON Schema Tools

JSON Schema Tools is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.

The diff tool is the distinctive piece: it lists every change between two schemas with its path, old and new values and an impact of breaking, compatible or review, judged from the point of view of documents that were valid under the earlier schema. That helps when deciding whether an API contract change will break consumers.

Validation supports JSON Schema drafts 07, 2019-09 and 2020-12 through Ajv, checks formats such as email, uri, date-time and uuid, and returns up to 200 errors with JSON Pointer paths. Schema inference builds a draft 2020-12 schema from sample documents, with unioned types, required keys present in every sample and optional enums. Draft-04 and draft-06 schemas are rejected, and Ajv runs non-strict so unknown keywords do not fail.

It makes no network requests, so remote $ref targets are not fetched, reads no files, and caps schemas and documents at 2 MB. It ships as a pinned Docker image over stdio, MIT licensed.

Install

Run in a terminal

claude mcp add mcp-json-schema-tools -- docker run -i --rm ghcr.io/basitalisandhu/mcp-json-schema-tools:0.3.0

Add to claude_desktop_config.json

{
  "mcpServers": {
    "mcp-json-schema-tools": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/basitalisandhu/mcp-json-schema-tools:0.3.0"
      ]
    }
  }
}
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "mcp-json-schema-tools": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/basitalisandhu/mcp-json-schema-tools:0.3.0"
      ]
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

{
  "servers": {
    "mcp-json-schema-tools": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/basitalisandhu/mcp-json-schema-tools:0.3.0"
      ]
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mcp-json-schema-tools": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/basitalisandhu/mcp-json-schema-tools:0.3.0"
      ]
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "mcp-json-schema-tools": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/basitalisandhu/mcp-json-schema-tools:0.3.0"
      ]
    }
  }
}

Tools this server provides (3)

Taken from the project documentation; the running server may differ.

validate_json
Validate data against a schema.
infer_schema
Infer a schema from samples.
diff_schemas
Diff two schemas with impact per change.

What it does

Ajv validation
Checks data against drafts 07, 2019-09 and 2020-12.
Schema inference
Builds a 2020-12 schema from sample documents.
Schema diff
Classifies each change as breaking, compatible or review.
Detailed errors
Returns pointer path, keyword and message for up to 200 errors.
Format checks
Validates email, uri, date-time, uuid and more.
No network or files
Remote refs are not fetched; nothing is read from disk.

Good for

  • Generate a first schema from example API responses
  • Check whether a schema change breaks existing documents
  • Find which field fails validation in a payload
  • Review a schema pull request for compatibility

Pricing

Open source

MIT licensed

Prices change. Check basitalisandhu.github.io before you buy.

JSON Schema Tools FAQ

Which drafts are supported?

Draft 07, 2019-09 and 2020-12; draft-04 and draft-06 are rejected.

Does it fetch remote $ref schemas?

No. The README says remote $ref targets are not fetched.

What size limits apply?

Schemas and documents are capped at 2 MB.

How is it run?

As a pinned Docker image over stdio.

Is JSON Schema Tools free?

Yes. JSON Schema Tools is open source, so you can use and self-host it for free.

How do I add JSON Schema Tools to Claude Code?

Run this command in your terminal: claude mcp add mcp-json-schema-tools -- docker run -i --rm ghcr.io/basitalisandhu/mcp-json-schema-tools:0.3.0

What are the best alternatives to JSON Schema Tools?

The closest alternatives to JSON Schema Tools are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

Alternatives to JSON Schema Tools

  1. REA

    MCP server

    CLI and MCP server that lets coding agents reverse engineer apps and binaries

    Runs locally
    • Open source
    • 464K GitHub stars
    • Developer tools
  2. Codebase Memory

    MCP server

    Local MCP server that builds a code knowledge graph for AI coding agents

    Runs locally
    • Open source
    • 48.7K GitHub stars
    • Knowledge and memory
  3. GitHub

    MCP server

    Official MCP server connecting AI assistants to GitHub repos, issues and workflows

    Not checked yet
    • Remote
    • Open source
    • 34.5K GitHub stars
    • Developer tools
  4. MCP toolkit giving coding agents symbol-level code retrieval and editing

    Runs locally
    • Open source
    • 31.5K GitHub stars
    • Developer tools
  5. XERJ

    MCP server

    Local search engine for AI agents with cited answers over your code and docs

    Runs locally
    • Open source
    • 19.2K GitHub stars
    • Knowledge and memory
  6. Ouroboros

    MCP server

    Spec-first layer that pins requirements and verifies results of AI coding agent work

    Runs locally
    • Open source
    • 6.4K GitHub stars
    • Developer tools