@mukundakatta/validate-mcp
v0.1.1
Published
MCP server: validate JSON against a JSON Schema (draft-07) with detailed error paths.
Maintainers
Readme
validate-mcp
MCP server: validate JSON data against a JSON Schema. Backed by ajv + ajv-formats. Returns every error (not just the first) with a JSON-pointer path so the model can fix the offending field.
Tool
validate
{
"schema": {
"type": "object",
"properties": { "name": { "type": "string" }, "age": { "type": "integer" } },
"required": ["name"]
},
"data": { "age": "thirty" }
}→
{
"valid": false,
"errors": [
{ "path": "", "keyword": "required", "message": "must have required property 'name'", "schema_path": "#/required" },
{ "path": "/age", "keyword": "type", "message": "must be integer", "schema_path": "#/properties/age/type" }
]
}Supports draft-07 / 2019-09 / 2020-12 schemas and the standard formats
(email, uri, uuid, date-time, etc.) via ajv-formats.
Configure
{ "mcpServers": { "validate": { "command": "npx", "args": ["-y", "@mukundakatta/validate-mcp"] } } }License
MIT.
