JSON Schema Toolkit
Command-line JSON Schema validation, lint, diff, bundling and codegen, also as MCP server
JSON Schema Toolkit is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- CLI, API, Linux
- Runs
- Locally
- Version
- 0.22.0
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add json-schema-toolkit -- npx -y json-schema-toolkitAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"json-schema-toolkit": {
"command": "npx",
"args": [
"-y",
"json-schema-toolkit"
]
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"json-schema-toolkit": {
"command": "npx",
"args": [
"-y",
"json-schema-toolkit"
]
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"json-schema-toolkit": {
"command": "npx",
"args": [
"-y",
"json-schema-toolkit"
]
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.json
{
"mcpServers": {
"json-schema-toolkit": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"json-schema-toolkit"
]
}
}
}Or put the same entry in .mcp.json at your workspace root to share it.
Add with the CLI
Run in a terminal
codex mcp add json-schema-toolkit -- npx -y json-schema-toolkitOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.json-schema-toolkit]
command = "npx"
args = ["-y", "json-schema-toolkit"]Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"json-schema-toolkit": {
"command": "npx",
"args": [
"-y",
"json-schema-toolkit"
]
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "json-schema-toolkit": { "command": "npx", "args": [ "-y", "json-schema-toolkit" ] } } }Or run: gemini mcp add -s user json-schema-toolkit npx -- -y json-schema-toolkit
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "json-schema-toolkit": { "command": "npx", "args": [ "-y", "json-schema-toolkit" ] } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.json
{ "mcpServers": { "json-schema-toolkit": { "command": "npx", "args": [ "-y", "json-schema-toolkit" ] } } }On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.
Cline
Add to cline_mcp_settings.json
{ "mcpServers": { "json-schema-toolkit": { "command": "npx", "args": [ "-y", "json-schema-toolkit" ] } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.json
{ "context_servers": { "json-schema-toolkit": { "command": "npx", "args": [ "-y", "json-schema-toolkit" ] } } }Open it with zed: open settings file. Merge context_servers into the settings you already have.
JetBrains AI Assistant and Junie
AI Assistant
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "json-schema-toolkit": { "command": "npx", "args": [ "-y", "json-schema-toolkit" ] } } }Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "json-schema-toolkit": { "command": "npx", "args": [ "-y", "json-schema-toolkit" ] } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "json-schema-toolkit": { "command": "npx", "args": [ "-y", "json-schema-toolkit" ] } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
About JSON Schema Toolkit
Runs the validation and schema engine behind a popular VS Code JSON Schema extension from a terminal, so the same checks can run in CI pipelines, pre-commit hooks or scripts. Commands cover validating JSON, JSONC, JSONL, YAML and TOML data against a schema, linting schema quality, and comparing two schema versions with a compatibility verdict that can fail a build.
Beyond checks, it bundles multi-file schemas into a single document, migrates schemas between drafts such as draft-07 and 2020-12, infers a schema from sample data, generates sample instances, and produces typed source code for several languages. Output can be switched to JSON for machine parsing, and exit codes are stable for scripting.
The package can also run as a Model Context Protocol server over stdio, letting AI assistants call the same schema tools. It suits backend and API teams that maintain schemas and want them checked automatically rather than by hand.
What it does
- Schema validation for many formats
- Checks JSON, JSONC, JSONL, YAML and TOML files against a draft-aware schema.
- Compatibility-gated schema diff
- Classifies changes between two schema versions and can fail a build on breaking changes.
- Schema linting
- Flags missing descriptions, unknown keywords and duplicate enum values.
- Bundling and draft migration
- Merges external references into one schema and converts between JSON Schema drafts.
- Type and sample generation
- Emits typed source in ten languages and creates valid sample instances from a schema.
- Stdio MCP server mode
- Exposes the same schema tools to MCP-compatible AI clients over stdio.
Good for
- Failing a CI build when an API schema change breaks backward compatibility
- Validating a directory of configuration files against their inline schema bindings
- Generating TypeScript, Go or other typed models from a JSON Schema
- Bundling a multi-file schema into one document before publishing
- Giving an AI assistant access to schema validation and diff tools
Pricing
Open source
MIT licensed, free to use.
JSON Schema Toolkit FAQ
How do I install JSON Schema Toolkit?
Install globally with npm install -g json-schema-toolkit, then run jstk --help, or run it without installing via npx json-schema-toolkit --help.
Does JSON Schema Toolkit work with YAML and TOML?
Yes, the validate command accepts JSON, JSONC, JSONL, YAML and TOML data files.
What do the diff exit codes mean?
Exit code 1 signals a failed compatibility check, and 2 means compatibility is unknown when run with --check --strict.
How do I use JSON Schema Toolkit as an MCP server?
Add a server entry with command npx and arguments -y json-schema-toolkit mcp to your MCP client configuration.
Is JSON Schema Toolkit free?
Yes. JSON Schema Toolkit is open source, so you can use and self-host it for free.
How do I add JSON Schema Toolkit to Claude Code?
Run this command in your terminal: claude mcp add json-schema-toolkit -- npx -y json-schema-toolkit
What are the best alternatives to JSON Schema Toolkit?
The closest alternatives to JSON Schema Toolkit are Schema, schema-mcp, Json, JSON Schema Tools and Schema Validate.
Where this comes from
- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.
