Skip to main content
Glama
nain-mcp-validator

nain-mcp-validator

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.

Language: English Versión en Español Protocol Python Validation License

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-validator

Until then, run it straight from the repository:

uvx --from git+https://github.com/Nain9Dev/nain-mcp-validator nain-mcp-validator

MCP 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 -v

3. 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 tools
generate_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

    A3.7/5.0

    Scored across 3 tools

    Disambiguation5/5

    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.

    Naming Consistency5/5

    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.

    Tool Count5/5

    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.

    Completeness4/5

    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

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to validate deliverables (JSON, ZIP, PDF, DOCX) against signed contracts, generating verifiable receipts with Ed25519 signatures.
      -
    • A
      license
      A
      quality
      C
      maintenance
      Enables 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.
      36
      48 npm
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables 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.
      28
      PolyForm Noncommercial 1.0.0
    • A
      license
      B
      quality
      C
      maintenance
      Gives 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.
      3
      MIT