Skip to content
MCP server
Registry

sdcvalidator-ts MCP Server

Validate and recover SDC4 Governed Data Records in TypeScript, conforming to sdcvalidator.

sdcvalidator-ts scores 63 (Good), licensed Apache-2.0 and written in TypeScript. It installs as a local process. It does not declare tools yet. Filed under Databases. GitHub shows 0 stars. Package registries report about 135 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.

by semanticdatacharterApache-2.0TypeScript0 stars
Trust score
63Good
Trust score 63 of 100, Good

Good trust

63 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: apache-2.0.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 63 comes from

22 + 20 + 0 + 10 + 4 + 7 = 63. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity0 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 0 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs7 / 10

A real summary, a README with depth, listed tools.

Docs: 7 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "semanticdatacharter-sdcvalidator-ts": {      "command": "npx",      "args": [        "-y",        "sdcvalidator-ts@4.1.0"      ]    }  }}

Environment variables

This server does not declare environment variables.

Tools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.

About

sdcvalidator-ts

SDC4 validation in TypeScript. It validates Governed Data Records against their published SDC4 models and recovers semantic errors with ISO 21090 ExceptionalValues, giving the same results as sdcvalidator, the reference implementation, on its conformance suite.

Conforms to: sdcvalidator 4.6.3 (all 151 cases of its conformance suite). CI runs that release's suite, pinned by tag.

It runs in Node (20 or later), Deno (including Supabase Edge Functions) and browsers. You supply the model and record text, so it reads no files and makes no network requests.

import { SDC4Validator, REFERENCE_MODEL_URL } from 'sdcvalidator-ts';

const validator = new SDC4Validator({
  text: modelXsd,                       // the model's published XSD
  resolve: (location) => sdc4Xsd,       // the reference model it includes (REFERENCE_MODEL_URL)
});

const result = validator.validate(recordXml);
// { valid, structural: [...], semantic: [{ path, ev, kind, constraint, message }, ...] }

const recovered = validator.recover(recordXml);
// { ok, recoveries: [{ path, code, name, inserted }], unrecoverable: [...], record, text }
// Throws StructuralValidationError if the record has structural errors.

MCP server

The package includes an MCP server, so agents can call it directly. It speaks JSON-RPC 2.0 over stdio and runs on Node; it reads the files you name.

npx sdcvalidator-ts mcp
ToolWhat it does
validate_instancePass or fail, with error counts
validate_and_reportEvery error: path, tier, the constraint that failed, the ExceptionalValue code
recover_instanceThe recovered record and each value covered; a structural error rejects it
check_schema_complianceWhether a schema follows SDC4 principles: restriction, never extension

Each tool takes schema_path and instance_path (except the compliance check, which takes only the schema), plus an optional reference_path. The model's xsd:include of the reference model is fetched from its URL once and cached. With reference_path, it is read from that local copy instead, so the server works offline.

It is registered in the MCP registry as io.github.SemanticDataCharter/sdcvalidator-ts.

Also listed on mcprush.

What "the same results" means

The conformance suite compares, for every case:

  • the verdict;
  • structural and semantic errors by path;
  • the ExceptionalValue code for each semantic error;
  • the recovery outcome;
  • the recovered record, compared as a tree with comments ignored.

Error messages are not compared. Errors are classified by the constraint that failed, never by message wording.

The ExceptionalValue codes are the reference's (sdcvalidator 4.6.3):

  • OTH: a value outside its enumeration.
  • INV: a value that is not of its type, or that breaks any other facet (pattern, length, range, digits, a built-in type's own range), a fixed value or an assertion.
  • NA: character data where only elements are allowed.
  • No code: an error on a structural element (label, vtb, vte, ...). It cannot be recovered.

When sdcvalidator's mapping changes, the suite's expectations change, and this library follows before its next release.

The XSD subset

SDC4 schemas use a narrow part of XSD 1.1, and this library implements that part:

  • Elements: global and local, with ref, occurrence, fixed, abstract and substitution groups.
  • Complex types: complex and simple content, restriction and extension, sequence and choice.
  • Simple types: restriction (with the enumeration, pattern, length, range, digits and whiteSpace facets) and list; about forty built-in types.
  • xsd:assert: evaluated with fontoxpath, inherited by derived types.
  • xsd:include.

A construct outside the subset raises UnsupportedSchemaError naming it. It is never ignored.

DOCTYPE and entity declarations are refused before parsing, so no external entity is ever resolved.

Reading a model

The schema reader the validator uses is exported, for tools that generate from a published model:

import { Schema, SDC4_NS } from 'sdcvalidator-ts';

const schema = new Schema({ text: modelXsd, resolve: () => sdc4Xsd });
const root = schema.element(`{${SDC4_NS}}dm-${ctId}`);
// root.type().content: the model's particles, each with its element, minOccurs and maxOccurs.
// A component's ComplexType carries `base` (the reference-model type it restricts) and `appinfo`
// (its rdf:Description: label, semantic links).

Development

npm install
npm run typecheck
npm test     # needs the conformance suite: a sibling sdcvalidator checkout, or CONFORMANCE_DIR
npm run build

Dependencies are pinned exactly: @xmldom/xmldom 0.9.12 (parsing) and fontoxpath 3.34.0 (XPath 3.1, for assertions).

License

Apache-2.0.

Frequently asked questions

What is sdcvalidator-ts MCP Server?

Validate and recover SDC4 Governed Data Records in TypeScript, conforming to sdcvalidator.

How do I install sdcvalidator-ts MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. sdcvalidator-ts MCP Server runs locally from the npm package sdcvalidator-ts with the command npx -y sdcvalidator-ts@4.1.0.

Is sdcvalidator-ts MCP Server free and open source?

Yes. sdcvalidator-ts MCP Server is released under the Apache-2.0 license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does sdcvalidator-ts MCP Server support remote (HTTP) connections?

No remote endpoint is listed for sdcvalidator-ts MCP Server. It runs locally on your machine over stdio, started by your MCP client.

How is sdcvalidator-ts MCP Server's trust score calculated?

sdcvalidator-ts MCP Server scores 63 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server