nain-mcp-validator
Deterministic MCP validation server for 3D asset and content integrity checks.
Validate triangular mesh invariants (C1–C10), including watertightness, 2-manifoldness, quantum sliver threshold, and normal winding, with optional expected genus and body count.
Verify content-addressed artifacts or specifications against expected SHA-256 digests.
Generate standardized Markdown conformance reports with fail-closed verdicts.
Run as a standalone JSON-RPC over stdio MCP server with no network access.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@nain-mcp-validator validate this STL mesh against C1-C10 invariants and give me a conformance report"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
nain-mcp-validator
Standalone Model Context Protocol (MCP) server providing deterministic 3D asset validation (checks C1-C10), content-addressed artifact verification (SHA-256), and fail-closed conformance reporting for AI engineering agents.
mcp-name: io.github.Nain9Dev/nain-mcp-validator
Install and run
The server speaks JSON-RPC over stdio and has no network access. Once the package is on PyPI:
uvx nain-mcp-validatorUntil then, run it straight from the repository:
uvx --from git+https://github.com/Nain9Dev/nain-mcp-validator nain-mcp-validatorMCP client configuration:
{
"mcpServers": {
"nain-mcp-validator": {
"command": "uvx",
"args": ["nain-mcp-validator"]
}
}
}Related MCP server: rupa3d
1. Overview
nain-mcp-validator solves the reliability gap when AI agents generate CAD geometry, meshes, or engineering specifications. Instead of relying on probabilistic text inspection, it equips agents with deterministic validation tools:
validate_mesh_invariants: Topological validation enforcing watertight closure, 2-manifold boundaries, outward normal consistency, and the quantum sliver threshold ($10^{-12}\text{ m}^2$).verify_content_digest: Cryptographic verification of SHA-256 content hashes.generate_conformance_report: Produces standardized markdown conformance audits with a fail-closed verdict.
2. Quickstart & Testing
# Run pytest verification suite
pytest -v3. Integration with AI Clients
Add the server to your Claude Desktop or Cursor configuration:
{
"mcpServers": {
"nain-validator": {
"command": "python",
"args": ["-m", "nain_mcp_validator.server"],
"cwd": "/path/to/nain-mcp-validator"
}
}
}Author: Aitor Nain Mendoza Vallejo
Standards: NainDev Engineering Handbook
Available Tools
3 toolsgenerate_conformance_reportB
Generates a standardized Markdown dual-contract conformance report from mesh validation results with fail-closed summary.
Inputs: faces (required), vertices (required), asset_name (required).
validate_mesh_invariantsB
Deterministic validation of 3D triangular mesh invariants (checks C1-C10) including watertightness, 2-manifoldness, quantum sliver threshold, and normal winding.
Inputs: faces (required), vertices (required), genus, bodies.
verify_content_digestB
Cryptographic content-addressing validation ensuring an artifact or specification matches its immutable SHA-256 digest.
Inputs: content (required), expected_sha256 (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
The three tools target clearly distinct operations: mesh-invariant validation, cryptographic digest verification, and conformance-report generation. There is no meaningful overlap, so an agent can select the correct tool from the task context.
All tool names follow a consistent snake_case verb_noun pattern: validate_mesh_invariants, verify_content_digest, generate_conformance_report. The action verbs are specific and predictable.
Three tools is well-scoped for a narrow validator service. Each tool maps to a distinct phase—mesh validation, digest verification, and reporting—with no redundant entries.
The surface covers the core validation lifecycle: mesh checks, content-digest verification, and report generation. A minor gap remains around a single composite dual-contract validation operation or including digest results directly in the report, but agents can orchestrate the existing tools.
Maintenance
Related MCP Connectors
Deterministic PASS/FAIL deliverable checks with objective evidence and repair instructions.
Deterministic validation for AI-generated artifacts: JSON Schema, OpenAPI response, SQL syntax.
Deterministic fact verification for AI agents — checksums & curated data, not guesses.
Tamper-evident SHA-256 hash-chained decision notary for EU AI Act, NIST AI RMF & SOC2.
Related MCP Servers
- FlicenseNot gradedqualityBmaintenanceEnables AI agents to validate deliverables (JSON, ZIP, PDF, DOCX) against signed contracts, generating verifiable receipts with Ed25519 signatures.-
- AlicenseAqualityCmaintenanceEnables AI agents and MCP clients to perform 3D asset creation and verification: exact b-rep CAD, GLB validation with embedded certificates, mesh inspection, and physics scenes, with most tools running without Blender.3648 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to convert raw STL mesh files into production-grade STEP AP242 solid B-Rep models and compact semantic CAD Features JSON, with sub-second deterministic processing and high mathematical fidelity.28PolyForm Noncommercial 1.0.0
- AlicenseBqualityCmaintenanceGives headless CAD agents a deterministic, dependency-free STL audit that checks manifoldness, plate grounding, single-shell structure, wall thickness, and normal orientation, returning a printable verdict with a critic score. Enables agents to gate and iteratively repair generated meshes before slicing or printing.3MIT